Sachin Uppal

MJO · Essay 6

Cutting the cost of an MCP server

By Sachin Uppal · 26 November 2026 · 10 min read

MCP Journey Optimization (MJO), a term coined by Sachin Uppal, is the discipline of designing and measuring every step a person takes to find, connect, authorize, pay for and keep using a product inside an AI client such as Claude, ChatGPT, Gemini or an IDE over the Model Context Protocol.

An MCP server runs up two bills. One lands on the client: every tool you expose is read by the model on every turn. The other lands on you: the models, renders and lookups your server pays for when a tool is called. Both decide whether the journey is worth running.

Cost is not usually filed under journey design. I file it there because the same choices that make an MCP journey convert, fewer tools, plainer words, shorter results, a quote before spending, are the ones that make it cheap. A bloated server is slower to choose from, more often wrong, and more expensive at once. In MCP Journey Optimization, cost is the shadow of every stage.

This essay covers eight levers, with one worked illustration. The illustration uses made-up but plausible figures and says so. Where I state how a model provider counts tokens, it comes from Anthropic's documentation, linked inline; other clients count in their own ways, and I have left them out rather than guess.

Why every tool schema rides every turn

When a client offers your tools to a model, it sends their names, descriptions and input schemas with the request. Anthropic's tool use documentation is explicit about the bill: requests are priced on all input tokens "including in the tools parameter", and the extra tokens come from the tool definitions, from tool_use blocks and from tool_result blocks. On top of that, the API adds a tool-use system prompt of a few hundred tokens per request; the same page lists 286 tokens for Claude Opus 5.5 with automatic tool choice.

A conversation is a series of requests, and each one carries the tools again. So the size of your tool list is not paid once at connection. It is paid on every turn of every conversation in which your server is connected, whether or not your tools are used in that turn.

The cost is not only money. Anthropic's tool search documentation gives two reasons to keep the list small: context bloat (its example is a five-server setup that uses about 55,000 tokens in definitions before any work starts) and selection accuracy, which it says degrades once a model has more than 30 to 50 tools available. A wrong tool call is the most expensive kind: you pay for it, then pay again for the retry, and the person may not stay for the second try.

Whether a client loads every schema up front or searches them on demand is the client's choice, not yours. On the Claude API, a developer using the MCP connector can defer a whole server's tools so they load only when searched for. In a consumer chat client, assume your full list is in context and design for that.

1. Ship fewer tools

Most MCP servers start as a wrapper round an existing API, one tool per endpoint. That is the most expensive shape there is. Every endpoint becomes a schema the model reads on every turn and a choice it can get wrong.

Design tools around jobs a person asks for, not around your API. CrushedWithIt has a fast path, one tool that takes a prompt and returns a video, alongside the finer tools for longer work. Most requests need only the fast path. The finer tools earn their place because some people need them, not because the API has those endpoints.

A test I use: if two tools are usually called one after the other, they are probably one tool. If a tool is called by fewer than one journey in a hundred, it probably belongs behind a help tool or on a web page.

2. Short descriptions, and a help tool for the rest

A tool description has one job: let the model decide whether to call this tool, with what. It is not the place for your manual. Put in it the verb, the object, the side effect (spends, sends, goes live), the price if any, and the one rule the model must not break. Leave out the history, the edge cases and the marketing.

The guidance you cut still has to live somewhere. Move it to a single help tool, or an MCP resource, that the model reads when it needs to. A help tool costs its own short definition on every turn and its full text only when called. Long descriptions cost their full text every turn.

Server instructions are a middle ground: a short paragraph sent once at connection that sets the rules for the whole server. CrushedWithIt, HomeSignal and SpendSignal each use one for their non-negotiables: one approval for money, masked buyer data, recommendations only. Keep it to the rules that apply to every call.

3. Return compact results

A tool result does not disappear after the model reads it. It stays in the conversation, and every later request carries it again as input. A 6,000-token JSON dump returned on turn three is paid for on turns four, five and every turn after.

Return what the model needs to answer and to call the next tool: one sentence it can repeat, the ids it will need, and links for anything large. Put the full object behind a link or a follow-up tool. Paginate lists and say how many more there are. For anything a person will look at rather than read, a video, a chart, a lead list, return the link, not the content.

This is also better copy. A model handed a short line repeats it accurately. A model handed a large object summarises it, and summaries drift.

4. Route your own model calls by difficulty

The second bill is your own. Many MCP servers call models server-side: to write a script, plan a job, classify a request, format a result. Not every one of those steps needs your strongest model.

Split the work by difficulty. Classification, extraction, titles and formatting usually run well on a small, fast model. The core job, the script a person will judge your product by, gets the best model you can afford. Measure quality on each step before and after the switch; a cheaper step that produces more retries is not cheaper.

The same thinking applies to non-model costs. CrushedWithIt sends parts of a video with nobody on camera to the cheapest suitable model and reserves the expensive one for the parts that need it. The person gets one quote for the whole job; the routing is the server's business.

5. Cache per account

Two kinds of caching matter. The first is prompt caching on your server-side model calls. If every call starts with the same long system prompt, a rulebook, a style guide, a tool list, cache it. Anthropic's prompt caching documentation sets the terms:

The practical rules follow. Put what never changes first and what changes per request last. Do not put timestamps, request ids or the account name in the cached prefix. And do not edit tool definitions casually: each change throws the cache away.

The second kind is caching results. If the same account asks for the same expensive lookup twice in an hour, return the stored answer. Key every result cache by account, never globally, so one customer's data can never answer another's request.

6. Cap spend against looping agents

A person stops when something looks wrong. An agent may not. It retries a failing call, rephrases and retries again, or runs a task in a loop that was meant to run once. On a server where calls cost money, that is a bill with no ceiling.

Put the ceiling in the server, not in the hope that the model behaves:

  1. A cap on every spending call. The figure the person agreed to travels with the request, and the server refuses above it. I describe this as part of the sale in Selling inside a chat.
  2. Per-account limits per hour and per day, set conservatively for new accounts.
  3. Idempotency. A repeated request with the same key returns the first result instead of running again.
  4. Repeat detection. The same failing call several times in a short window gets a refusal that tells the model to stop and ask the person.
  5. A breaker for the whole service, so a fault in one place cannot spend without limit across every account.

7. Gate expensive work behind a quote

A quote gate is a rule that no expensive action runs without an accepted quote. The quote tool is free and quick. The expensive tool takes the quoted figure, or a quote id, and refuses without one.

The gate saves money in two ways. It stops accidental spending, because a model cannot start an expensive job by mistake. And it filters intent: a person who sees a price and says no has cost you a cheap quote rather than an expensive render. It also happens to be the right journey, because people trust a server that tells them the price first.

A worked illustration

This is an illustration, not our data. The figures are assumptions chosen to show the arithmetic. Put your own in. Token counts are in base input-token equivalents, so the result holds whatever your price per token.

The client-side bill: tool definitions

Assume a server with 40 tools averaging 300 tokens of definition each, and a trimmed version with 10 tools averaging 150 tokens. Assume a 15-turn conversation with the server connected, and ignore any caching the client may do.

AssumptionBloatedTrimmed
Tools × tokens each40 × 300 = 12,00010 × 150 = 1,500
Carried over 15 turns180,00022,500

The trimmed server carries one eighth of the definitions. Add results: a 6,000-token result kept for ten later turns is 60,000 tokens carried; a 300-token line with a link is 3,000.

The server-side bill: a cached system prompt

Assume your server writes scripts with a model call that starts with an 8,000-token system prompt (rules and style), plus 500 tokens unique to each request. Assume 200 calls, each arriving within five minutes of the last so the cache stays warm, on a model with the standard 0.1 times read price and 1.25 times 5-minute write price.

CalculationInput-token equivalents
Without caching200 × (8,000 + 500)1,700,000
Cache write, once8,000 × 1.2510,000
Cache reads199 × 8,000 × 0.1159,200
Uncached part200 × 500100,000
With caching269,200

Under these assumptions, input cost falls to about 16 per cent of the uncached figure. Output tokens are unchanged. If calls arrive further apart than the cache lifetime, each gap costs a fresh write, and the saving shrinks; that is worth checking against your real traffic before you count on it.

8. Measure cost per activated user

Cost per call is the wrong denominator. A server can be cheap per call and still expensive per customer, if most of its calls come from people who never got anything useful.

The number I use is cost per activated user: total serving cost over a period (your model calls, providers, infrastructure) divided by the number of people who reached First value, stage five of the seven MJO stages, in that period. It rises when people connect and fail, and falls when the first call works. It ties cost to the journey rather than to the server.

To compute it, log per tool call: the account, the client, the tool, the server-side tokens in and out, any provider cost, the size of the result returned, and whether the call succeeded. The MJO event schema has the fields. I will publish our own figures once we have measured them properly; I would rather show nothing than a number I cannot stand behind.

A checklist

LeverCheck
Fewer toolsEvery tool maps to a job a person asks for
Short descriptionsEach says verb, object, side effect, price, one rule
Help toolLong guidance lives in one tool or resource
Compact resultsOne line, ids, links; lists paginated
Model routingRoutine steps on a small model, quality measured
CachingStable prefix first; result caches keyed by account
Spend capsPer call, per account, idempotent, repeat-aware
Quote gateNo expensive action without an accepted quote
MeasurementCost per activated user, per client, every week

Most of these make the journey better as well as cheaper. That is the point of treating cost as part of MJO rather than as an engineering afterthought.

Keep reading: the MJO definition, framework and FAQ, or the next essay, Designing for a screen you don't own.

Cite as: Uppal, S. (2026). Cutting the cost of an MCP server. sachinuppal.com.