Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 94
  • 1.7k stars
  • 390k a week
  • MIT
  • Updated

Install Pi MCP Adapter

Built from the published package, never by AI.

claude mcp add pi-mcp-adapter -- npx -y pi-mcp-adapter

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Pi MCP Adapter in Claude Code

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

A

No 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 →

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.

Pi MCP Adapter Install

Add to stack

Loading.