GitHub repo

nicobailon/pi-mcp-adapter

TypeScript Tracked since 2026-01-19 Updated 2026-07-16 View source ↗

#571 of 783 by Stars among GitHub repos

1.0k Stars

Token-efficient MCP adapter for Pi coding agent

About

Use MCP servers with Pi without burning your context window.

Mario wrote about why you might not need MCP. The problem: tool definitions are verbose. A single MCP server can burn 10k+ tokens, and you're paying that cost whether you use those tools or not. Connect a few servers and you've burned half your context window before the conversation starts.

His take: skip MCP entirely, write simple CLI tools instead.

But the MCP ecosystem has useful stuff - databases, browsers, APIs. This adapter gives you access without the bloat. One proxy tool (200 tokens) instead of hundreds. The agent discovers what it needs on-demand. Servers only start when you actually use them.

The adapter reads…

Excerpted from github.com/nicobailon/pi-mcp-adapter

Latest metrics

Stars 1.0k 2026-07-16
Forks 194 2026-07-16
Commits 150 2026-07-16
Releases 35 2026-07-16
Watchers 2 2026-07-16
Open issues 41 2026-07-16
Open PRs 26 2026-07-16