<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/stop-polluting-context---let-users-disable-individual-mcp-tools-3fhe5k1na" -->

---
title: Stop Polluting Context - Let Users Disable Individual...
description: MCP servers expose many tools that consume significant context window tokens — often 32k+ tokens just for tool descriptions before any code is written. The...
canonical: https://daily.dev/posts/stop-polluting-context---let-users-disable-individual-mcp-tools-3fhe5k1na
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Stop Polluting Context - Let Users Disable Individual MCP Tools | daily.dev
og:description: MCP servers expose many tools that consume significant context window tokens — often 32k+ tokens just for tool descriptions before any code is written. The...
og:url: https://daily.dev/posts/stop-polluting-context---let-users-disable-individual-mcp-tools-3fhe5k1na
og:image: https://api.daily.dev/og/posts/3FhE5k1NA.png
og:image:alt: Stop Polluting Context - Let Users Disable Individual MCP Tools
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Stop Polluting Context - Let Users Disable Individual MCP Tools

**[Sam McLeod](https://daily.dev/sources/smcleod)** · 5 min read · 0 upvotes · 0 comments

## Summary

MCP servers expose many tools that consume significant context window tokens — often 32k+ tokens just for tool descriptions before any code is written. The post argues MCP server developers should implement selective tool disabling via environment variables, allowing users to exclude tools they don't need. This reduces token usage, improves model reliability (less context rot), shrinks attack surface, and enables compliance controls. Two implementation patterns are shown: simple conditional registration (Python) and registry-based runtime filtering (Go). GitHub's MCP server is called out as the worst offender, consuming 46k tokens across 91 tools with no disable mechanism.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://smcleod.net/2025/08/stop-polluting-context-let-users-disable-individual-mcp-tools/>

## Similar posts on daily.dev

- [Context Engineering for MCP Servers](https://daily.dev/posts/context-engineering-for-mcp-servers-4wx9ee6ee) · Daily Dose of Data Science \| Avi Chawla \| Substack · 2 upvotes · 0 comments
- [One MCP server used 18,000 tokens before doing anything. Here’s the workaround.](https://daily.dev/posts/one-mcp-server-used-18-000-tokens-before-doing-anything-here-s-the-workaround--z0ugekuke) · The New Stack · 1 upvotes · 0 comments
- [Your MCP Server Is Eating Your Context Window. There's a Simpler Way](https://daily.dev/posts/your-mcp-server-is-eating-your-context-window-there-s-a-simpler-way-vhhujbvmb) · Hacker News · 2 upvotes · 1 comments
- [10 strategies to reduce MCP token bloat](https://daily.dev/posts/10-strategies-to-reduce-mcp-token-bloat-nzmx3qvsg) · The New Stack · 2 upvotes · 0 comments

---

Tags: [#ai-coding](https://daily.dev/tags/ai-coding), [#context-engineering](https://daily.dev/tags/context-engineering), [#llm](https://daily.dev/tags/llm), [#mcp](https://daily.dev/tags/mcp)

[View this post on daily.dev](https://daily.dev/posts/stop-polluting-context---let-users-disable-individual-mcp-tools-3fhe5k1na)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Stop Polluting Context - Let Users Disable Individual MCP Tools","url":"https://daily.dev/posts/stop-polluting-context---let-users-disable-individual-mcp-tools-3fhe5k1na","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/stop-polluting-context---let-users-disable-individual-mcp-tools-3fhe5k1na"},"datePublished":"2026-03-31T12:28:52.084Z","dateModified":"2026-10-14T02:33:44.784Z","description":"MCP servers expose many tools that consume significant context window tokens — often 32k+ tokens just for tool descriptions before any code is written. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9652e8b3ec854c7182447511a20dd93a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9652e8b3ec854c7182447511a20dd93a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Sam McLeod","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Sam McLeod","logo":"https://media.daily.dev/image/upload/s---ERPerFg--/f_auto,q_auto/v1774960030/logos/smcleod?_a=BAMAMiWQ0","url":"https://daily.dev/sources/smcleod"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/stop-polluting-context---let-users-disable-individual-mcp-tools-3fhe5k1na","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-coding,context-engineering,llm,mcp","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sam McLeod","item":"https://daily.dev/sources/smcleod"},{"@type":"ListItem","position":3,"name":"Stop Polluting Context - Let Users Disable Individual MCP Tools"}]}
```

