Pi MCP Adapter
MCP server by nicobailon Verified · npm:pi-mcp-adapter
Pi MCP Adapter lets the Pi coding agent use MCP servers without loading every tool definition into context. It starts servers only when they are called and stops them after 10 idle minutes. It is for Pi users who want many MCP servers without the token cost.
Install Pi MCP Adapter
Built from the published package, never by AI.
claude mcp add pi-mcp-adapter -- npx -y pi-mcp-adapterRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pi-mcp-adapter": {
"args": [
"-y",
"pi-mcp-adapter"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"pi-mcp-adapter": {
"args": [
"-y",
"pi-mcp-adapter"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pi-mcp-adapter": {
"args": [
"-y",
"pi-mcp-adapter"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pi-mcp-adapter -- npx -y pi-mcp-adapter{
"mcpServers": {
"pi-mcp-adapter": {
"args": [
"-y",
"pi-mcp-adapter"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add pi-mcp-adapter npx -y pi-mcp-adapterGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the pi-mcp-adapter block.
About
Pi MCP Adapter is an extension for the Pi coding agent that connects it to MCP (Model Context Protocol) servers. Instead of adding every tool definition to the model's context, it exposes one proxy tool, mcp, and the agent searches for and calls tools on demand. The source says a single MCP server can otherwise use 10k+ tokens. Servers are lazy by default, so they connect only when one of their tools is called. By default, a server stops after 10 idle minutes. The adapter reads standard MCP config files such as .mcp.json, can import configs from Cursor, Claude Code, Codex and VS Code, and stores OAuth tokens in the OS keychain. It is for Pi users who want to run many MCP servers without paying for idle ones.
Written from the project's README and checked against it.
Tools it gives your assistant
mcpOne proxy tool that gives the agent access to tools on configured MCP servers, at about 200 tokens.mcp({ search })Finds tools by name, words or regex. Semantic search is available with a classifier model in Pi.mcp({ tool, args })Calls a named MCP tool with the arguments the agent provides.mcp({ tool, args, extract })Returns only the named values from a long tool result. The full result is saved to a file.mcp({ action: "install", url })Connects a server from its URL and checks its tools in the current session./mcp-adapter setupOpens an overlay that imports host configs, adds presets and previews file changes before writing./mcp-auth <server>Signs in to an OAuth MCP server./mcpManages servers that are already configured.
What you need
- Pi coding agent
- Pi installed with pi install npm:pi-mcp-adapter
- A classifier model in Pi, such as Jev through OpenRouter, for semantic search
Try asking
- Search for a tool that can take a screenshot of a page.
- Install the MCP server at this URL and check its tools.
- Sign in to my OAuth MCP server and list its available tools.
Good to know
- Semantic tool search needs a classifier model configured in Pi.
- Background Tasks need a server that supports MCP Tasks and "protocolVersion": "auto".
- A stopped server starts again on its next call, which takes 0.1 to 0.3 s for a small local server.
- Servers that must keep state between calls need "lifecycle": "lazy-keep-alive".
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Pi MCP Adapter
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Pi MCP Adapter: common questions
How is this different from Pi's built-in MCP support?
The adapter starts servers only when they are used and stops them after 10 idle minutes. The built-in starts every enabled server and keeps it running for the whole session. Installing the adapter turns the built-in MCP off in Pi's settings.
Where are OAuth tokens stored?
The source says OAuth tokens go in the OS keychain by default. An encrypted file is an opt-in choice.
Does it work with existing MCP configs?
Yes. The adapter reads standard files such as .mcp.json and ~/.config/mcp/mcp.json. It can also import host configs from Cursor, Claude Code, Codex and VS Code.
How do I install Pi MCP Adapter?
In Claude Code run claude mcp add pi-mcp-adapter -- npx -y pi-mcp-adapter. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Pi MCP Adapter the official server?
Pi MCP Adapter is published by npm:pi-mcp-adapter from its verified domain in the official MCP Registry.
Is Pi MCP Adapter free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Pi MCP Adapter safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Pi MCP Adapter?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Pi MCP Adapter work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
