An MCP server costs the same whether you call it or not
Connecting an MCP server to a coding agent is not buying an option that bills when you use it. Its tool definitions are written into the prompt and re-read on every request, whether the agent calls them or not. On one workstation that came to about 68,000 tokens of prompt, 26,000 of them tool definitions from 20 connected servers, for a question the developer typed in 2 tokens and that called no tool at all.
This post works through three questions.
What a connected MCP server actually consumes, and where it sits in the prompt.
What that comes to in money, per developer and across a team, with the formula so you can put your own numbers in.
And which levers reduce it, which is where the intuitive answers turn out to be wrong.
The measurements come from Claude Code, and the mechanism applies to any agent that declares its tools in a cached prompt.
The short version
Declared tool definitions are billed on every request, whether or not the agent calls a tool.
At Sonnet list prices, 1,000 tokens of declared tools cost about $0.67 per developer per month.
A catalog of 25,000 tokens costs roughly $17 per developer per month, which is about $20,000 a year across 100 developers, before anybody calls a tool.
The number of servers tells you nothing. Two servers covering one vendor's platform differed by a factor of 6 in what they declare.
On the machine I measured, 83% of those tokens came from connectors enabled on the developer's own account, which no managed settings file controls.
Only the declared surface is cached, so editing a tool description rewrites the prefix at 40 times the read price while changing what a server returns costs nothing.

One request, no tool called. The 2 tokens the developer typed are inside the floor segment.
1,000 tokens of declared tools cost $0.67 per developer per month
Reading a cached prefix costs $0.10 per million tokens on the Sonnet 5.5 list price, and writing it with a 1 hour time to live costs $4.00 per million. I checked both against Anthropic's own /cost output. The text a developer types is charged at $2.00 per million, which is rounding error next to the prefix.
The monthly cost of permanently declared tool definitions, per developer, is then:
tokens x requests_per_day x working_days x 0.10/1,000,000
+ tokens x cold_starts_per_day x working_days x 4.00/1,000,000Put 25,000 tokens of tool definitions, 200 requests a day, 21 working days and 3 cold starts a day into that formula. The result is $16.80 per developer per month, two thirds of it cache reads. Across 100 developers that is $20,160 a year, before anybody calls a tool.
The useful form is the unit rate: $0.67 per 1,000 declared tokens per developer per month. Request volume is the assumption that moves it most, so measure it over a week rather than estimate it. Everything after this section is rounded.

The unit is declared text, not the number of servers
Twenty servers is not a useful figure, and neither is five. The price follows the volume of text each server declares: tool names, tool descriptions, parameter schemas and the server's own instruction block. A different set of 20 could cost a tenth of what mine did.
The spread inside one configuration was about 6 to 1, and it tracked design rather than the size of the provider. The Azure MCP server sits at the economical end: it puts the whole Azure CLI behind 74 tools for roughly 1,700 measured tokens, grouping commands behind high level entry points instead of exposing one tool per command. The Vercel connector sits at the other end, declaring 290 tools on its own.
That 290 is cheaper than it sounds. Past a certain tool count Claude Code enters only the tool names in the prefix and loads each schema on demand, at a few dozen tokens per declared tool here. At that rate Vercel works out to around 11,000 tokens against Azure's 1,700, which is where the 6 to 1 comes from.
So put the declared token footprint on the MCP evaluation sheet, next to the authentication model and the data residency question. It takes one command to measure, and it is the only figure in this post that is a property of the server rather than of your usage. A server that declares 300 tools is publishing an API surface rather than a job.
A new session rewrites the tool definitions at 40 times the read price
Prompt caching is content addressed: the same configuration gives the same prompt total across fresh processes, and two runs of the same trivial prompt landed within 2 tokens of each other. That stability locates the cache boundary. I changed only the MCP server set between two runs. The read segment stayed at about 27,000 tokens both times, while the written segment grew from roughly 14,600 to roughly 41,000, so the whole difference landed below the boundary with the tool definitions and the fixed instructions stayed above it.

A cold start is therefore not free. The segment above the boundary survives a process exit, and the tool definitions below it are written again at $4.00 per million, about 6 cents for one cold start here. Once a session is running they are read rather than written.
Editing the configuration has the same effect, and it reaches everyone at once. Add one server, enable one plugin or edit the shared instruction file, and every developer writes the new prefix on their next request. Rebuilding 26,000 tokens costs about 10 cents per developer, so one change across 100 developers is around $10 before a single question has been asked.
What counts as a change is narrower than it sounds. The cache key is the text of the prefix, and the only thing in it is the declared surface. What a server returns when something calls it is not: results arrive below the cached segment, so changing the data a server serves leaves the key untouched.
That decides who should slow down. A team governing 20 servers across 100 machines pays around $40 for 4 configuration changes a month, plus a slower first request for everybody each time, so that catalog deserves a release cadence and a changelog. The author of a single server faces different arithmetic: rewriting a 1,300 token footprint costs about half a cent per user, under 30 cents per user per year even at a release a week. Batch the changes that touch the declared surface, and ship content as often as you like.
83% of the tool tokens came from servers in no file on the machine
On the workstation I measured, MCP servers arrived from 4 places:
the user level configuration file,
the installed plugins,
plugins synchronized from the claude.ai account,
and an API call the agent makes at startup asking Anthropic which connectors are enabled on the developer's own account. That call returned 25 declared servers, 16 of which connected, and none of them appear in any file on the machine.

A governance model built on a managed settings file therefore misses those 16. The managed file controls the plugins and the locally declared servers, not what a developer has connected to their own account, and those connectors carried about 22,000 of the 26,000 tokens.
So read the inventory from the agent's startup log rather than from its configuration. In Claude Code that is the --debug-file flag, and it also names which servers failed. A failed server still costs its declaration in the prefix, so record each server's connection status next to its token count.
The connector switch is machine wide, so 8 of 10 would break elsewhere
I got this wrong on my own configuration, which is why I am confident it is worth writing down. The arithmetic said the account level connectors were 83% of the cost, so turning off the ones with no role in a coding session looked like the obvious move. It is not, because of where the switch lives. In the Claude desktop application that state is stored locally, in a flat list keyed only by account identifier, with no key for the product surface it applies to. The application hosts more than one surface, so a connector turned off for the coding tool is, as far as the file's structure tells me, off in the others on the same machine.
Out of 10 connectors we went through, 2 were unnecessary everywhere and 8 were needed in at least one surface. A machine wide switch cannot express that, so the saving it offers is bought with capability somewhere else. Those 10 were one machine's, and I have not run the count with a client.
The transferable lesson, and it shows up in commitment work too: a cost analysis is finished when it names the lever, its blast radius and what it breaks. Here the amount was 83% and the lever turned out to be machine wide. I now write the blast radius into the recommendation itself.
What works at the right granularity is a profile per context: a coding profile, a data profile and an operations profile, each declaring the servers that task needs, selected at launch. In Claude Code that is --strict-mcp-config with one configuration file per profile, which ignores every other source including the account connectors. It has session scope, so it takes nothing from anyone else, and on my configuration it removed about 22,000 tokens from a coding session.
Measure tokens of declared tool definitions per developer first
For any team running coding agents, that is the figure to establish before the others, because the $0.67 rate is derived from it. In Claude Code, claude -p "ok" --output-format json returns the exact token usage of one request, cache reads and writes included. Run it once as configured, then again with --strict-mcp-config pointing at a file that declares no servers. The difference between the two prompt totals is what your tool definitions cost per request. Multiply by requests per developer per day, then by your seat count.
On the same workstation the entire instruction layer came to about 4,500 tokens: the shared memory file, 6 plugins and 108 skills. The tool definitions came to 26,000, nearly 6 times as much, so the knowledge you give an agent costs far less than the capabilities you leave connected.
The client is already optimizing for this
One caveat before anyone reorganizes a fleet on these numbers: the client is working on the same problem.
Prompt caching prices a re-read at a twentieth of fresh input, which is what makes a large permanent context affordable at all.
Deferred tool loading keeps a 290 tool catalog down to its names.
And the skill listing compacts itself once a machine carries enough of them.
The position of the cache boundary looks deliberate too: the fixed instruction layer sits above it and survives a process exit, so a cold start rewrites only what varies with the configuration.
None of those are levers a customer pulls. They arrive with the client and they are in nobody's settings file.
So the platform handles the mechanics and leaves one lever on your side: what you declare into it. How many servers, how much text each one brings, and who gets to decide.
Frequently asked questions
Does an MCP server cost money if the agent never calls its tools?
Yes. Every connected server's tool definitions are placed in the cached prefix of the prompt, and that prefix is read on every request. On the workstation I measured, 20 connected servers added about 26,000 tokens to a request that called no tool at all. The cost follows what is declared, not what is used.
How do you measure what MCP servers cost in Claude Code?
Run claude -p "ok" --output-format json once with your normal configuration, then once more with --strict-mcp-config pointing at a file that declares no servers. The response reports input tokens, cache read tokens and cache creation tokens. The difference between the two prompt totals is what your tool definitions cost per request.
How much do MCP tool definitions cost per developer per month?
At Sonnet list prices, and assuming 200 requests a day, 21 working days and 3 cold starts a day, 1,000 tokens of declared tool definitions cost $0.67 per developer per month. A catalog of 25,000 tokens costs about $17 per developer per month, or roughly $20,000 a year across 100 developers. Request volume is the assumption that moves the result most.
What makes one MCP server cost more than another?
The volume of text it declares, not the size of the service behind it. The Azure MCP server covers the whole Azure CLI with 74 tools for about 1,700 tokens of prefix, because it groups commands behind high level entry points. The Vercel connector declares 290 tools, which works out to around 11,000 tokens at the per tool rate measured on the same machine. Server count is the wrong unit; declared tokens is the right one, and you can measure it before adopting the server.
Why does changing the MCP configuration cost money?
The tool definitions sit below the cache boundary, so any change to them invalidates that segment and the next request rewrites it at $4.00 per million tokens, 40 times the read price. Rebuilding 26,000 tokens costs about 10 cents per developer, so one configuration change across 100 developers is around $10 before a single question has been asked.
Does shipping a new version of an MCP server cost its users money?
Only if the release changes the declared surface: a tool name, a tool description, a parameter schema or the server's instruction block. Those sit in the cached prefix, and rewriting a 1,300 token server costs about half a cent per user, once. Changing the data the server returns costs nothing, because results are not in the prefix. A weekly release cadence is under 30 cents per user per year, so keep the surface small and stable and let the content move.
Can a managed settings file control which MCP servers a developer connects?
Not all of them. A managed settings file controls the locally declared servers and the installed plugins. It does not control the connectors a developer has enabled on their own account, which the agent fetches from the provider at startup. On the machine I measured those account level connectors carried about 22,000 of the 26,000 tool definition tokens.
Should you turn MCP servers off to save tokens?
Only once you know what the switch reaches. An account level connector switch is machine wide, so turning one off to save a coding session can remove it from every other surface on that machine. A per context profile is the safer lever: a configuration file per profile, selected at launch, with session scope and no effect on anyone else.
About these measurements
All figures come from Claude Code 2.1.332 on a single Windows workstation in November 2026, measured in headless mode with the token usage the CLI reports per request, and priced at the Sonnet 5.5 list rates of $2.00 per million input tokens, $0.10 per million cache read tokens and $4.00 per million cache write tokens at a 1 hour time to live. One machine is a single data point: take the proportions as indicative and the mechanism as the finding. Figures outside the pricing section are rounded, and the team figures are that unit cost multiplied by a stated seat count, not an observation on a fleet.




.png)