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 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.

  • Score 93
  • 12 stars
  • 33k a week
  • MIT
  • Updated

Install Pi MCP Extension

Built from the published package, never by AI.

claude mcp add pi-mcp-extension -- npx -y pi-mcp-extension

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

Step-by-step: install Pi MCP Extension 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-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

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 Extension

All alternatives →

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.

Pi MCP Extension Install

Add to stack

Loading.