Skip to content

MCP Servers That Fit a Small Context Window: A Token Budget for Local Models

On a local model an MCP server costs context, not money. We measured tool definitions across the registry: 39% of servers fit a 4k window, 61% fit 8k, one in ten does not fit 32k. A budget table, costs of well-known servers, and a way to search by size.

Stork editorial team

The short version

On a local model the price of an MCP server is space, not money. Ollama gives you a 4,000-token context on most machines, and a single popular server can fill it before you type. We measured the tool definitions of every MCP server that would list them. 39% fit comfortably in a 4k context. 61% fit in 8k. One in ten does not fit in 32k. Below is the budget, the numbers for servers you have heard of, and a way to search by size.

On this page · 7 sections
  1. 01Why this hits local models first
  2. 02The budget
  3. 03What well-known servers cost
  4. 04Five ways to make tools fit
  5. 05Search by size
  6. 06What we did not measure
  7. 07Frequently asked questions

Why this hits local models first#

When a client connects to an MCP server it loads the definition of every tool, name, description and input schema, into the model's context. On a hosted model with 200,000 tokens you pay for that in cents. On a local model you pay in room, and there is much less of it.

  • Ollama's documentation sets the default context by video memory: 4k below 24 GiB, 32k from 24 to 48 GiB, 256k at 48 GiB and above. It recommends at least 64,000 tokens for agents and coding tools.
  • Ollama ships no MCP client of its own, so there is no built-in list of servers to pick from. This comparison of eight clients notes that Playwright's 25 tool definitions alone come to about 3,900 tokens.
  • The cost is paid on every turn, not once. A measurement on Ollama found about 57 prompt tokens for a tersely described tool and about 292 for a verbose one.

Context windows will grow, and this will matter less each year. Today, on the laptop most people actually have, it decides whether tools work at all.

Two calls. That is the integration.
A talking-head API at 20 cents a minute.
Send a photo and text or audio, get an MP4. Prepaid credits. Failed jobs are refunded in full.
Read the docsNo code? Make a photo talk

The budget#

A workable rule is to give tool definitions no more than a quarter of the window. The rest has to hold the system prompt, the conversation, and whatever the tools return.

Share of the MCP servers whose tool definitions we could list on November 16, 2026. One server at a time: connect two and you add their costs.
Context windowBudget for tool definitionsShare of MCP servers that fit on their own
4k1,000 tokens39%
8k2,000 tokens61%
16k4,000 tokens79%
32k8,000 tokens90%
  • 17% of servers come in under 500 tokens. You can run two of those in a 4k window.
  • The median server is about 1,400 tokens and lists 7 tools.
  • 8% are over 10,000 tokens. Those are out of reach below a 64k window.

What well-known servers cost#

Our own check of each server's public endpoint on November 16, 2026, except Playwright, which runs locally and is quoted from the source linked above. Estimated at 4 characters a token.
ServerToolsTool definitions, estimated tokensFits a 4k window?
Cloudflare documentation2250Yes
Exa (web search)2520Yes
Context7 (library docs)21,240Tight
Browser Use71,250Tight
Playwright25about 3,900 (measured by Octomind)No
Firecrawl34,200No

Two things stand out. The number of tools is a poor guide: Firecrawl lists three tools and costs more than Playwright's twenty-five, because its schemas are long. And many of the best-known servers, GitHub, Linear, Notion, Stripe, Supabase, will not show their tools to anyone who has not signed in, so nobody can tell you their cost in advance. We list them as "sign-in required" rather than guess.

Five ways to make tools fit#

  • Raise the window if you have the memory. In Ollama, set num_ctx on the model or the OLLAMA_CONTEXT_LENGTH environment variable. Every extra token of context costs memory, so this has a ceiling.
  • Connect one server per job. Costs add up. Two median servers are already 2,800 tokens.
  • Prefer the lighter server when two do the same job. Among the web search servers we measured, the lightest cost about 250 tokens and others several thousand.
  • Use a client that loads tools on demand, if yours can. Then only the tools in use take room.
  • Check the size before you install. That is the part that used to be impossible, and the reason we measured it.

Enjoying this? Get one like it in your inbox each morning.

one email a day · unsubscribe in two clicks · no third-party tracking

Search by size#

Every listing in Stork's MCP directory shows the estimated context cost of its tool definitions and the date we last checked it. To search by size from your own agent, connect it to this free MCP server, which needs no key:

https://mcp.stork.ai/mcp?tools=directory

It has five read-only tools and costs about 900 tokens itself. Ask for a server by task and set max_tool_tokens to your budget: 1000 for a 4k window, 2000 for 8k. Each result says how to connect, whether the endpoint answered our last check, what it costs, and what you give up by choosing it, for example a sign-in, or a publisher that is not the vendor. Disconnect it once you have found what you need and the room is yours again.

What we did not measure#

  • Servers that run on your machine. We check remote endpoints. A local package cannot be measured from outside.
  • Servers behind a sign-in. About a third of endpoints ask for an account before they list anything.
  • What tools return. A server with small definitions can still send back a very large result. Budget for that separately.
  • Whether a tool works. A check is a handshake and a tool listing. It never calls a tool.

The full results of the pass, including how many endpoints answered at all, are in this report.

Frequently asked questions#

How many MCP servers can I use with a 4k context?#

Usually one, and it has to be a light one. Keeping tool definitions to about 1,000 tokens leaves room for the conversation, and 39% of the servers we measured fit under that on their own. 17% are under 500 tokens, so two of those will fit.

Does Ollama support MCP?#

Ollama serves the model and accepts tool definitions, but it does not include an MCP client. You use a separate client that connects to MCP servers and passes their tools to Ollama.

Why do my local model's tools stop working after I add a server?#

The most common cause is that the tool definitions no longer fit in the context window along with the conversation. Check the size of the server's definitions against your window, raise the window if you have the memory, or switch to a lighter server.

Found this useful? Share it.

For builders

Want Stork to write one of these about your product?

Send us a URL. We use the product, form a view, and publish what we actually think — in 8 languages, with no copy approval on your side. That last part is what makes it worth quoting.

See how it works$199 · AI tools & software only

For builders

This page is doing a job for someone else’s tool.

AI agents read it. Buyers land on it. It answers in eight languages and over MCP. Your tool can have one like it — live in 24 hours.