Skip to content
PluginStats

pi-mcp-extension weekly downloads statistics

By irahardianto · npm · MCP servers

MCP (Model Context Protocol) client extension for the Pi coding agent — connect Pi to any MCP server

View on npm Stale · Oct 18, 2026

pi-mcp-extension has 104,764 recorded weekly downloads on npm, an increase of 444% over the past 30 days, ranking #469 of 2,391 tracked listings.

Weekly downloads
104,764
Official API · Oct 18, 2026
7-day growth
-2.8%
-3K weekly downloads
30-day growth
+444%
+85.5K weekly downloads
90-day growth
+6624%
+103.2K weekly downloads
Rank
#469
Among tracked npm listings

About pi-mcp-extension

pi-mcp-extension

npm version license OpenSSF Scorecard

Connect Pi to any MCP server. Supabase, DeepSource, Playwright, Context7, filesystem, databases — if it speaks MCP, Pi can use it.

pi-mcp-extension is a production-ready Model Context Protocol client extension for the Pi coding agent. It manages server connections, discovers tools, and bridges them into Pi so the LLM can call them directly.

Features

  • Multi-transport — stdio subprocesses, streamable-http (including "http" and URL-only shorthand), and legacy sse out of the box
  • Auto-discovery — Paginated tools/list with cursor following (MCP 2025-03-26 spec)
  • Live tool refresh — notifications/tools/list_changed triggers re-discovery without restart
  • Clean cancellation — AbortSignal propagation via notifications/cancelled
  • Smart reconnection — Fixed delay retry schedule (1s → 3s → 5s → 10s → 30s), configurable max retries, and automatic recovery when a server transport closes unexpectedly
  • Health checks — Opt-in periodic pings to detect stale connections
  • Safe process lifecycle — Child PID tracking (StdioClientTransport.pid) with safety-net SIGKILL for orphaned subprocesses
  • Stable tool names — Sanitized, collision-avoiding names (max 64 chars) that stay constant across reconnects
  • No tool churn — Activate/deactivate pattern ensures tools don't flicker during reconnection
  • Layered config & trust boundary — Global <agent dir>/mcp.json, project .pi/mcp.json (loaded only in trusted projects via ctx.isProjectTrusted()), and Pi 1.x extension-registered servers (pi.registerMcpServer())
  • Rich tool results & annotations — MCP image content passthrough (ImageContent), plus readOnlyHint, destructiveHint, idempotentHint, openWorldHint surfaced in tool descriptions
  • On-demand agent tools & commands — mcp_status and mcp_connect agent tools plus /mcp, /mcp:start, /mcp:stop, and /mcp:auth slash commands with server-name autocomplete
  • Structured error handling — Distinct error codes for config, connection, protocol, and tool-level failures
  • OAuth 2.1 — Browser and headless/SSH authorization with PKCE, protected-resource discovery, Dynamic Client Registration, startup prompts for eager servers, cross-process lock recovery, token refresh, and secure local persistence (see OAUTH.md)

Installation

pi install npm:pi-mcp-extension

Or try without installing:

pi -e npm:pi-mcp-extension

Quick Start

  1. Install the extension:

    pi install npm:pi-mcp-extension
    
  2. (Pi 1.x) Disable Pi's built-in mcp extension so Pi does not warn that both extensions are enabled at the same time — either run pi config and uncheck mcp under Built-in extensions, or add "extensions": ["-builtin:mcp"] to ~/.pi/agent/settings.json:

    {
      "extensions": [
        "-builtin:mcp"
      ]
    }
    
  3. Create a config file at ~/.pi/agent/mcp.json (global) or .pi/mcp.json (project-level):

    {
      "mcpServers": {
        "supabase": {
          "transport": "streamable-http",
          "url": "https://mcp.supabase.com/mcp",
          "lifecycle": "eager"
        }
      }
    }
    
  4. Start Pi — your MCP tools are ready. Use /mcp to check server status.

Configuration

Servers can be configured via JSON files or registered programmatically by other Pi 1.x extensions:

SourcePrecedence & Scope
.pi/mcp.jsonHighest — Project-level overrides per server and per explicitly stated setting. Loaded on session_start only when the project is trusted (ctx.isProjectTrusted()); never read at bootstrap or in untrusted projects.
~/.pi/agent/mcp.jsonGlobal — Applies to all projects (honors $PI_CODING_AGENT_DIR with ~ expansion when set: <agent dir>/mcp.json).
pi.registerMcpServer()Extension-registered — Discovered via pi.getMcpServers() and updated live on mcp_servers_change events when replacing builtin:mcp. Any server with the same name in mcp.json takes precedence.
Full Example
{
  "settings": {
    "toolPrefix": "mcp",         // Tools appear as mcp_<server>_<tool> (default: "mcp")
    "requestTimeoutMs": 30000,   // Per-request timeout in ms (default: 30000)
    "maxRetries": 5              // Max reconnection attempts, 0-10 (default: 5)
  },
  "mcpServers": {

    // ── HTTP-based servers ───────────────────────────────────────────────────
    "supabase": {
      "transport": "streamable-http",
      "url": "https://mcp.supabase.com/mcp",
      "auth": {
        "type": "oauth"
      },
      "lifecycle": "eager"
    },
    "deepsource": {
      "url": "https://mcp.deepsource.io/mcp", // "transport" defaults to "streamable-http" when "url" is set
      "lifecycle": "eager"
    },

    // ── Legacy SSE servers ───────────────────────────────────────────────────
    "legacy-server": {
      "transport": "sse",
      "url": "https://example.com/sse",
      "lifecycle": "lazy"
    },…

Description from the npm listing.

  • pi-package
  • mcp
  • model-context-protocol
  • pi
  • pi-extension
  • ai-agent
  • tool-bridge

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

pi-mcp-extension weekly downloads on npm, last 90 days: 104,764 weekly downloads as of Oct 18, 2026, +6624% over 90 days.pi-mcp-extensionWeekly downloads on npm · Last 90 days104,764downloads / week+6624% over 90 days020K40K60K80K100K120KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 23, 2026 – Oct 18, 2026 · 88 observations · Updated Oc…pluginstats.com
pi-mcp-extension weekly downloads on npm, last 90 days: 104,764 weekly downloads as of Oct 18, 2026, +6624% over 90 days.

7/30/90-day growth

pi-mcp-extension weekly downloads growth on npm: -2.8% over 7 days, +444% over 30 days, +6624% over 90 days.pi-mcp-extensionWeekly downloads growth on npm104,764downloads / week now7-day growth-3,007 weekly downloads-2.8%30-day growth+85,498 weekly downloads+444%90-day growth+103,206 weekly downloads+6624%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
pi-mcp-extension weekly downloads growth on npm: -2.8% over 7 days, +444% over 30 days, +6624% over 90 days.

Ranking history

pi-mcp-extension npm ranking history: currently #469 (by weekly downloads).pi-mcp-extensionnpm ranking · by weekly downloads · Last 90 days#469current rank#465#470#475#480#485#490Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
pi-mcp-extension npm ranking history: currently #469 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,195 shown · page 24, #9 (overall #469)
All npm: every listing in weekly downloads order

Listing placement

MCP servers300 listings · 15 pages · page 2, #18 (overall #38)
MCP servers: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for pi-mcp-extension
Date (UTC)Weekly downloadsChange vs. previous
104,764+32.1K
72,670-16.2K
88,912+12.9K
75,996-19.5K
95,517-19.3K
114,7820
114,782+7K
107,771+4.2K
103,612+2.5K
101,082+3.9K
97,222+6.6K
90,626+8.2K
82,448-13.6K
96,004—

Similar npm MCP servers plugins

All 20 pi-mcp-extension alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/pi-mcp-extension. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.