Pi MCP Extension
MCP server by irahardianto Verified · npm:pi-mcp-extension
Connects the Pi coding agent to MCP servers over stdio, SSE and Streamable HTTP. It discovers each server's tools and makes them callable by the language model, with OAuth 2.1 support for remote servers. Built for Pi users who want servers such as Supabase or Playwright available in their sessions.
Install Pi MCP Extension
Built from the published package, never by AI.
claude mcp add pi-mcp-extension -- npx -y pi-mcp-extensionRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"pi-mcp-extension": {
"args": [
"-y",
"pi-mcp-extension"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"pi-mcp-extension": {
"args": [
"-y",
"pi-mcp-extension"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"pi-mcp-extension": {
"args": [
"-y",
"pi-mcp-extension"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add pi-mcp-extension -- npx -y pi-mcp-extension{
"mcpServers": {
"pi-mcp-extension": {
"args": [
"-y",
"pi-mcp-extension"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add pi-mcp-extension npx -y pi-mcp-extensionGemini 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-extension block.
About
pi-mcp-extension is a Model Context Protocol client extension for the Pi coding agent. It manages connections to MCP servers, discovers their tools, and bridges those tools into Pi so the language model can call them directly. Supported transports are stdio, streamable-http and legacy sse. Servers can be set in a global mcp.json, a project .pi/mcp.json, or registered by other Pi 1.x extensions.
The extension reconnects with a fixed retry schedule and refreshes tools when a server sends tools/list_changed. Progress notifications keep long tool calls alive past the request timeout. OAuth 2.1 with PKCE and Dynamic Client Registration is available for remote servers. It is aimed at developers who use Pi and want MCP servers such as Supabase, DeepSource, Playwright or Context7 inside their coding sessions.
Written from the project's README and checked against it.
Tools it gives your assistant
mcp_statusReports the status of configured MCP servers.mcp_connectConnects to a configured MCP server on demand.mcp_list_resourcesLists resources exposed by an MCP server.mcp_read_resourceReads a resource exposed by an MCP server.mcp_<server>_<tool>Server tools bridged into Pi under a prefixed name, callable by the model.
What you need
- Node.js 22+
- Pi coding agent
Try asking
- Show the status of all my MCP servers.
- Connect to my context7 server and list its tools.
- List the resources my filesystem MCP server exposes.
Good to know
- Pi 1.x warns when the built-in mcp extension is also enabled.
- Project .pi/mcp.json is loaded only in trusted projects.
- A server that keeps reporting progress has no wall-clock time cap.
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 Extension
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 Extension: common questions
Does pi-mcp-extension support OAuth?
Yes. It supports OAuth 2.1 with PKCE and Dynamic Client Registration, with browser and headless or SSH authorization.
Which MCP transports does it support?
It supports stdio subprocesses, streamable-http including URL-only shorthand, and legacy sse.
Can long-running MCP tools be cancelled or kept alive?
Progress notifications from a server restart the per-request timeout, and cancellation is propagated with notifications/cancelled.
How do I install Pi MCP Extension?
In Claude Code run claude mcp add pi-mcp-extension -- npx -y pi-mcp-extension. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Pi MCP Extension the official server?
Pi MCP Extension is published by npm:pi-mcp-extension from its verified domain in the official MCP Registry.
Is Pi MCP Extension free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Pi MCP Extension safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality C. 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 Extension?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Pi MCP Extension 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.
