cd /news/developer-tools/mcporter-the-mcp-tax-collector-use-t… · home topics developer-tools article
[ARTICLE · art-54407] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

mcporter: The MCP Tax Collector (Use This Before Plugging Anything In)

Developer Nico Bailey created mcporter, a CLI tool that calls MCP servers directly from the command line without loading tool schemas into an agent's context window. The tool addresses context bloat caused by MCP servers dumping entire tool definitions into context, with Playwright MCP alone consuming 15,000 tokens. mcporter routes agent bash commands to MCP servers and returns results via stdout, preserving context for actual agent work.

read2 min views1 publishedJul 10, 2026

I wrote a whole post about why MCP is rotting your context window. The short version: every MCP server you connect dumps its entire tool schema into your context. Playwright MCP alone is 15,000 tokens of tool definitions before your agent does a single thing. Connect three or four servers and you've burned half your context on tool descriptions the agent will never use.

mcporter by Nico Bailey fixes this. It's a CLI that calls MCP tools directly from the command line, without tool schemas into your context window. Your agent runs a bash command, gets the result, moves on. No schema bloat. No context rot.

mcporter call playwright navigate --params '{"url": "http://localhost:3000"}'

mcporter tools @playwright/mcp

mcporter types @playwright/mcp > playwright-tools.d.ts

That's it. The agent writes a bash command, mcporter routes it to the MCP server, the result comes back as stdout. The 15,000 tokens of tool definitions never touch the context window.

Look, I've written extensively about MCP being a tax on your context. Most of the ecosystem has figured this out. Skills that wrap Python, TypeScript, bash, or CLIs have replaced a lot of what MCP was doing. The trend is clear: if you can call it from the command line, don't wire it through MCP.

But MCP isn't dead. There are still proper use cases. Tools that need bidirectional communication. Services that manage persistent state. Anything where the server needs to push updates to the client. For those, MCP is the right protocol. And for those, mcporter is how you use it without paying the context tax.

I use it daily. It's probably the tool I reach for most frequently after git and my editor. Any time I need to poke an MCP server, I reach for mcporter instead of connecting the server to my agent's MCP client. The savings compound across every session.

npm install -g mcporter

Then instead of adding MCP servers to your agent config, call them through mcporter in your scripts or skills. Your context window will thank you.

── more in #developer-tools 4 stories · sorted by recency
── more on @nico bailey 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/mcporter-the-mcp-tax…] indexed:0 read:2min 2026-07-10 ·