Skip to content

Administer

MCP server

Ask CostReveal what your spend is for from Claude Code, Codex, Cursor, Visual Studio Code, ChatGPT and other AI tools, signed in as you.

CostReveal's MCP server lets your own AI tools read what the dashboard shows: spend by any dimension, what drove a change, forecasts, anomalies and, for each anomaly, what moved below the service and what changed around it. A coding agent with your repository open can take an anomaly's movements and changes and read its own history for the commit. CostReveal answers only about figures and changes, and never reads your code.

The server follows the Model Context Protocol at its current revision, 2026-07-28, and the 2025 revisions before it, which many clients still use:

https://api.costreveal.com/api/v1/mcp

Which AI tools

AI toolConnects throughSkills that walk it through the evidence
Claude CodeCostReveal's plugin, costreveal-agentsYes
CodexCostReveal's plugin, costreveal-agentsYes
Cursor, Visual Studio Code, ChatGPT and any other MCP clientThe MCP server itself, signed in with OAuthNo; every tool answers the same
Scripts and pipelinesThe API, with a read only keyNot applicable

The MCP server carries everything that matters: signing in as you, your role and your part of each project, and every tool. The plugin adds only skills, which take a question through the tools in the same order every time, ending at the commit, in the two coding agents whose plugins can carry them. Every other tool reads the tools' own descriptions and chooses them itself.

Connecting

Add the server to your AI tool by its address. The first time it connects, the tool opens CostReveal in your browser and asks you to approve it, signed in as usual; it then reads as you, with your role and only the projects, or the part of a project, you may see, and changes nothing. Approving names the organization it reads, which you may change there if you belong to more than one.

Claude Code

Install CostReveal's plugin, which adds the server and skills that walk Claude Code through CostReveal's evidence:

/plugin marketplace add CostReveal/costreveal-agents
/plugin install costreveal@costreveal

Then run /mcp in Claude Code and choose costreveal to sign in. To add the server alone, without the skills:

claude mcp add --transport http costreveal https://api.costreveal.com/api/v1/mcp

The plugin, which Codex installs too, adds skills that each take a question through the tools below: investigating a spike to the commit, explaining a month's change, the anomalies to look at, forecasts and budgets, what spend goes to, attribution coverage, savings, unit costs and margin, Kubernetes efficiency, and the cost context of a pull request. In Claude Code each runs as /costreveal:<skill>, and either agent uses them on its own when you ask. The plugin is open source, under the Apache License 2.0, at CostReveal/costreveal-agents.

Cursor

In ~/.cursor/mcp.json, or .cursor/mcp.json in a repository, then sign in when Cursor asks:

{
  "mcpServers": {
    "costreveal": { "url": "https://api.costreveal.com/api/v1/mcp" }
  }
}

Visual Studio Code

In .vscode/mcp.json, then choose Start above the server and sign in:

{
  "servers": {
    "costreveal": { "type": "http", "url": "https://api.costreveal.com/api/v1/mcp" }
  }
}

Codex

Install CostReveal's plugin, the same one Claude Code installs, with its skills:

codex plugin marketplace add CostReveal/costreveal-agents

Then run codex, open /plugins and install costreveal, and sign in with codex mcp login costreveal.

ChatGPT

Add https://api.costreveal.com/api/v1/mcp as a custom connector, with OAuth, where your ChatGPT plan offers them, and sign in when ChatGPT asks. ChatGPT answers from the same tools in a conversation; it has no repository to look for a commit in.

Any other client that supports remote MCP servers with OAuth connects the same way: CostReveal publishes its OAuth metadata where the specification says, accepts a client by its metadata document, and lets an older client register itself.

With an API key

For a script or a tool that cannot sign in, create a Read only key for the project in Settings, API keys and send it as a header; see API keys. The tool reads the key's project. A Read and write key connects too, and still only reads through the server; a Send data only key cannot connect.

claude mcp add --transport http costreveal https://api.costreveal.com/api/v1/mcp \
  --header "Authorization: Bearer crm_..."

Connected apps

Your account, Security, Connected apps lists every app you approved, the organization it reads, who published it and when it last read, and disconnects any of them at once. An organization's owners and admins see every app connected to it under Settings, Security, and may disconnect any. An app's access lasts while you use it: it is refreshed as it reads, and ends 30 days after it last did. Leaving an organization, or being suspended from it, stops your apps reading it at once. Approving and disconnecting are recorded in the audit log.

An app that names itself by its own published address shows that address, which vouches for its name; one that registered itself shows Self registered, and the approval page says nothing vouches for its name.

Tools

Each tool reads exactly what its endpoint reads, with the same parameters, the same checks and the same answer: list_projects as GET /projects, and every other tool as its endpoint under Reading costs. Every tool only reads.

ToolWhat it answers
list_projectsThe projects it may read
get_overviewA month's spend, how much is explained, unknown and not yet invoiced, and reconciliation
explore_costsSpend by a dimension, then by a second, filtered, compared with another month
explain_changeWhat drove the change from the month compared with
get_business_costsCost per feature, customer and user
get_marginRevenue beside cost, by customer, once Stripe is connected
get_unit_costsEach unit cost's month, the month before, its trend and each owner's figure
list_metricsEach business metric, and the days it holds values for
get_insightsThe month's forecast, the next month's, and anomalies, with where each stands
get_anomaly_driversWhat drove an anomaly, divided exactly by every dimension
get_anomaly_movementsWhat moved below the service: usage types and resources, more use or a higher price
get_anomaly_changesWhat changed around an anomaly, from each cloud's own records and the cluster's
get_savingsSavings each cloud recommends and clusters' idle capacity
list_budgetsEach budget, its spend so far, its state and its forecast
get_kubernetes_costsEach cluster's bill, its workloads, idle capacity and unmeasured days

Amounts are decimal strings, exact as billed, and every figure carries its basis, as everywhere in CostReveal. A call the API refuses, such as an unknown dimension, is answered with what to correct, so the AI tool can call again.

Tracing a spike to a commit

Ask your coding agent, in the repository the spike's service runs from, something like: "Read CostReveal's anomalies for this month, and for the largest, what moved and what changed; then find the commit in this repository that explains it." The agent calls get_insights, then get_anomaly_movements and get_anomaly_changes for that anomaly, and reads the repository's history around the day with its own tools. What changed is evidence matched to the spike by rules, never stated as its cause, and so is the commit the agent proposes.

Limits and security

  • Each call counts against the plan's limit a minute: an app's calls for the person who approved it, and a key's for the organization's keys together; see Rate limits.
  • An app's tokens are accepted by the MCP server alone, never by the rest of the API, and are kept by CostReveal only as hashes. A refresh token is replaced each time it is used, and one used twice ends the app's access.
  • The server keeps no session: each request is answered on its own, as the rest of the API is.
  • A request from a page of another site is refused, so no website can reach the server through a browser.