Skip to main content
TensorCost runs a remote MCP server over HTTP. An assistant that supports remote MCP servers with custom headers can list your spend, budgets, recommendations, routing decisions and alerts, and answer questions about them.
The server speaks JSON-RPC 2.0 over HTTP POST (initialize, tools/list, tools/call, ping). It authenticates with a key in the X-MCP-Key header.

Create a key

1

Open Connect › API keys

Choose New MCP key and give it a name.
2

Copy the key and the config

The key starts with tc_mcp_ and is shown once. After you create it, the console also shows this client configuration:
3

Add it to your assistant

Use whatever your client calls a remote or HTTP MCP server, with the URL and the header above.
The key’s transport setting (http or stdio) is only a label. Every key works over HTTP at the URL above; there is no stdio package.
The server authenticates with the key header only. It does not offer OAuth sign-in, so a client that can connect to a remote server only through an OAuth flow cannot use it. Clients that run local stdio servers need a bridge that can pass a header to a remote server.

What a key can do

An MCP key inherits the roles of the person who created it, so it can reach tools that a REST API key cannot. Each key also carries scopes, which default to read-only, and a rate limit of 60 requests a minute. Tools that change things need a write scope.

Tools

Which tools you see depends on what your workspace has deployed. Ask the assistant for what you would ask the console: “What did we spend by model last week?”, “Which budgets are over 80 percent?”, “Show the last routing decisions that fell back.”