MCP servers are the hot new plumbing for Claude Code. Drop in a GitHub server and your agent can open pull requests. Add a filesystem server and it reads your repo structure. The demos look magical. What nobody demos is the receipt.

The cost is not in the API calls the tools make. It is in the tools themselves.

Every time you register an MCP server, you are not just adding a capability. You are adding a block of text to your context window, and that block gets billed on every single turn. Whether the agent uses the tool or not, you pay for its existence. The meter starts running the moment the server connects.

Paying Rent on Tools You Never Touch

Here is the mechanic that gets glossed over. Each tool definition in an MCP server ships with a name, a description, and a JSON schema telling the model what arguments the tool expects. That entire payload gets injected into the system context at the start of every turn. The model needs to see the full catalog so it can decide whether to call a tool, but you are the one footing the bill for that visibility.

The overhead per tool is not trivial. In practice, a single tool definition consumes between 80 and 150 tokens. That means a modest server exposing ten tools quietly eats 800 to 1,500 tokens before you have typed a single sentence. You are not paying for compute. You are paying for the privilege of having the option.

I ran the numbers across a standard 20-turn session to see exactly how this compounds.

With no MCP servers loaded, the overhead is zero. The context window contains only your conversation.

Load a custom minimal server with three tightly scoped tools, and the tax is 180 tokens per turn. Across 20 turns, that is 3,600 tokens gone. Not a disaster, but real money.

The popular filesystem server, which exposes seven tools, pushes that to 640 tokens per turn. Over the same session, you have burned 12,800 tokens just maintaining the connection. You have not read a file yet. You have not listed a directory. You have merely kept the server on the menu.

Then there is the GitHub server. With 26 tools registered, it dumps 3,100 tokens into every turn. After 20 back-and-forth messages, the overhead totals 62,000 tokens. At Sonnet 4 pricing, that is $0.19 in pure context tax. You paid nineteen cents for overhead before the agent even considered creating an issue.

That figure feels small in isolation. It is not.

The Overnight Agent Problem

Where this stings is in long-running autonomous loops. If you are using Claude Code as an agent that iterates on its own, that per-turn tax multiplies brutally. An agent running overnight across 2,000 turns with the GitHub server loaded does not pay 62,000 tokens in overhead. It pays 6.2 million.

That is $18.60 spent on literally nothing productive. The agent might have slept through the night without touching a single GitHub tool. It might have worked entirely inside local files. You still get charged for all 26 GitHub tool definitions on every one of those 2,000 turns because they were registered in the session.

The critical point to internalize is that you pay for registered tools, not called tools. The model does not check which tools it actually uses and then discount your bill. If the server is connected, its full manifest is re-introduced into context each cycle. This is a per-turn tax on potential, not on action.

For developers running iterative coding agents, test harnesses, or batch review jobs, this is a silent budget killer. A human conversation of 20 turns is light. An agentic loop of 200 or 2,000 turns is where the math turns punitive.

How to Keep Costs Under Control

MCP is genuinely useful. You should use it. But treat it like a utility you switch on for the job at hand, not a permanent fixture you bolt onto every session.

Scope Configs to the Project and Task

Do not load every server into your global Claude Code configuration by default. Build project-scoped MCP configs that match the work you are actually doing. If you are refactoring a local module, you probably need the filesystem server and nothing else. If you are triaging issues, load the GitHub server for that specific task and disconnect it when you switch back to local development.

Think of it like leaving apps open on your phone. One or two is fine. Twenty running in the background drains the battery for no reason.

Prefer Servers with Fewer Tools

Tüm MCP sunucuları aynı disiplinle tasarlanmamıştır. Bazıları iki veya üç odaklanmış eylemden oluşan yalın bir arayüz sunar. Diğerleri ise, birçoğunu asla kullanmayacağınız 25 veya 30 araçtan oluşan geniş bir katalogla gelir. Üç araçlı bir sunucu tur başına size 180 token'a mal olabilirken, 26 araçlı bir sunucu 3.100 token'a mal olabilir. Bu, sizin için önemsiz olabilecek bir yetenek farkı için 17 katlık bir ek yük artışı demektir.

Bir sunucuyu kurmadan önce araç manifestosuna göz atın. Eğer bir düzine birbiriyle örtüşen işlem kaydediyorsa ve sizin sadece bir tanesine ihtiyacınız varsa; onu daha düşük bir konfigürasyonla çalıştırmayı, fork'lamayı veya daha ince bir wrapper yazmayı düşünün. Çıkartabileceğiniz her araç tanımı, gelecekteki her turda doğrudan ve kalıcı bir token tasarrufu sağlar.

Araç Açıklamalarını Kısaltın

Araç başına 80 ila 150 token aralığı bir doğa kanunu değildir. Bu, açıklamaların ve şemaların ne kadar ayrıntılı olduğuna bağlıdır. Şişirilmiş 400 token'lık bir açıklama, 80 token'lık bir açıklamanın beş katı kadar bağlam tüketir ve bu beş katlık ceza her bir turda uygulanır.

Güvendiğiniz sunucuları denetleyin. Eğer bir araç açıklaması pazarlama metni gibi okunuyorsa, onu yeniden yazın. Sıfatları atın. Şemayı netleştirmeyen örnekleri çıkarın. JSON'u sıkılaştırın. Modelin aracın ne yaptığını anlaması gerekir, ancak bir paragraf dolusu ön söz gerekmez. Araç tanımlarına kod gibi davranın: ne kadar kısa ve net olursa o kadar iyidir.

Asıl Çıkarılması Gereken Ders

MCP, Claude Code'un erişebileceği alanı genişletir. Ancak bunu bağlam pencerenizi bedavaya genişleterek yapmaz. Ek yük deterministiktir, tekrarlanan bir durumdur ve araçların kullanılıp kullanılmamasından tamamen bağımsızdır.

Yalnızca mevcut görevinizin gerektirdiği sunucuları yükleyin. İşiniz bittiğinde onları bağlantısını kesin. Araç sayılarını ve açıklama uzunluklarını, diğer tüm bağımlılıkları denetlediğiniz gibi denetleyin. Kural basittir: Eğer araç bu özel oturumda bir değer katmıyorsa, faturanıza token eklememelidir.

Kaynak ölçümler ve metodoloji: Claude Code'a MCP sunucuları ekledim — işte token maliyetleri

Daha fazla mühendislik incelemesi için GyaanSetu AI öğrenme topluluğuna katılın: t.me/GyaanSetuAi