Skip to main content
AI tools (MCP) are available on Growth and above.

What it does

CostOptix runs an MCP server. Any AI tool that speaks MCP can connect to it and use your cost data: cloud accounts, Kubernetes, hosts, AI coding tools, teams, budgets and recommendations, all in one place. The agent does the reasoning with your own AI tool, so MCP use does not count toward your CostOptix AI queries. Server URL:
If your organisation reaches CostOptix on its own domain, use that domain with the same path.

Connect

There are two ways to connect. Both act as one person and see only what that person can see.

Sign in

  1. Add https://costoptix.com/api/v1/mcp as a remote MCP server in your client.
  2. When the client asks you to sign in, a CostOptix page opens. Sign in if you aren’t already.
  3. Check the app name and the address you will be sent back to, then choose Allow.
Admins also see Also let it record decisions. Leave it unticked unless the agent should change things. See Decision tools. The consent page shows who published the app when the app proves it with a published metadata address. An app that registered itself shows as An app calling itself …, because anyone can register an app under any name. Only allow it when you started connecting that app yourself a moment ago.

API key

  1. Go to Settings → API Keys and create a key with AI tools (MCP) (mcp:read).
  2. Admins can also tick AI tools can act (MCP) (mcp:act) for the decision tools.
  3. Send the key in the Authorization: Bearer header.
Claude Code:
Other clients that support Streamable HTTP take the same URL and header. A key with only MCP permissions works on the MCP server and nowhere else. It cannot call the rest of the API.

Claude Code on the web

Cloud sessions load MCP servers from the repository’s .mcp.json, not from servers you added on your own machine:
Keep the key out of the file. Add it to the cloud environment as a network secret for costoptix.com, with header Authorization and prefix Bearer. See Anthropic’s cloud environments guide, then check with /mcp that the server shows as connected.

Tools

Reading data

Every connection gets these. Admins also get get_budgets (configured budgets), list_budget_proposals (suggested budgets and daily limits) and the per-person breakdown in get_llm_usage. Values in get_repository_ai_usage are at API list prices. They show what the work was worth, not what you are billed. Use get_llm_usage for billed cost by plan.

Data freshness

Cloud billing arrives late, so the most recent days of a cost result can be empty because they have not loaded yet, not because spend dropped. list_accounts and the tools that show recent spend (get_costs, get_costs_by_provider, get_service_resources, get_anomalies, get_budget_forecast, get_budgets, get_team_spend) include a data_freshness block: Results that cover the whole organisation give one data_through for the sources that are on time and list the ones behind in stale_sources. Agents are told to compare only days that have data and to say when a source is stale or failing to sync before explaining a change.

Decision tools

Available when an admin’s connection has decision rights: an approval with Also let it record decisions ticked, or a key with mcp:act. Rights are checked on every call, so they stop the moment the person is no longer an admin. Marking a recommendation done starts savings verification, so the agent gets the measured saving back later through list_recommendations. Every decision is in the audit log under the person’s name.
Cost data includes text you don’t control, such as resource names and tags from your clouds. That text can try to steer an agent. Give decision rights only to agents you supervise. A recommendation decision can be reversed by reopening it, and a budget created from a proposal can be deleted.

Partner tools

Admins of a partner organisation also get: Sources, teams and services are still set up inside the customer in the app. Customers added through MCP show in the customer’s audit log like any other.

Prompts

Clients that support MCP prompts show these as ready-made commands.

Examples

Agents can combine CostOptix with the other tools you connect:
  • “Price this Terraform plan before I open the pull request.”
  • “Which recommendations does my team own on the payments account? Fix the Kubernetes ones in this repo and open a PR.” After it merges, mark them done and let verification measure the saving.
  • “Turn every open recommendation over $100 a month into a Jira ticket for the owning team.”
  • “Run the cost review and post the three most urgent findings to #platform.”
  • “What has this repository cost in AI coding tools this month, and what did it produce?”

Limits

MCP tool calls have their own daily allowance, the same size as your API limit, counted separately so agents never use up your API calls. Connecting and listing tools does not count. The allowance resets at 00:00 UTC. When it runs out, the agent gets a message saying so.

Security

  • Acts as you. A connection sees what its person sees. Budgets and per-person AI usage need an admin.
  • Tokens. Sign-in uses OAuth 2.1 with PKCE. Access tokens last an hour and refresh tokens rotate on every use. A reused refresh token or code cuts off the whole connection.
  • Lifetime. A sign-in lasts 90 days, then the person approves the app again.
  • Disconnect any time. Admins can disconnect anyone’s apps in Settings → API Keys → Connected AI apps. It takes effect on the next call.
  • Audit. Connecting an app, disconnecting it and every decision are in the audit log.