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:Connect
There are two ways to connect. Both act as one person and see only what that person can see.Sign in
- Add
https://costoptix.com/api/v1/mcpas a remote MCP server in your client. - When the client asks you to sign in, a CostOptix page opens. Sign in if you aren’t already.
- Check the app name and the address you will be sent back to, then choose Allow.
API key
- Go to Settings → API Keys and create a key with AI tools (MCP) (
mcp:read). - Admins can also tick AI tools can act (MCP) (
mcp:act) for the decision tools. - Send the key in the
Authorization: Bearerheader.
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:
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 withmcp: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.
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.