Pi MCP Server

MCP (Model Context Protocol) adapter extension for Pi coding agent

Remote serverstreamable-httpTypeScript

What is the Pi MCP server?

Pi MCP server exists for a simple reason — assistants are far more useful when they can act on Pi directly instead of describing what you should do. MCP (Model Context Protocol) adapter extension for Pi coding agent.

What you get

Use MCP servers with Pi without burning your context window.

What the assistant can call

Once Pi is connected, these are the calls the assistant has available:

  • File — Purpose
  • Field — Description
  • args — Command arguments
  • socket — Explicit rmcp-mux Unix-domain socket path; supports ${VAR}, $env:VAR, and ~ expansion and is mutually exclusive with command and url
  • env — Environment variables; supports ${VAR} and $env:VAR interpolation. A value beginning with ! runs a command when the stdio server connects; use !! for
  • cwd — Working directory; supports ${VAR}, $env:VAR, and ~ expansion
  • url — HTTP endpoint (StreamableHTTP with SSE fallback); supports raw ${VAR} and $env:VAR interpolation, and missing URL variables fail before any request
  • headers — HTTP headers; supports ${VAR} and $env:VAR interpolation. A value beginning with ! runs a command when the HTTP server connects or OAuth
  • auth — "bearer" or "oauth"
  • oauth.grantType — "authorization_code" (default) or "client_credentials" for non-interactive machine auth
  • oauth.clientId — Pre-registered OAuth client ID; dynamic registration is used when omitted
  • oauth.clientSecret — OAuth client secret for confidential clients; a value beginning with ! runs a command when OAuth authenticates, while !! escapes a literal leading !

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Choosing this one

Among the browser automation options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Pi's toolset — File, Field, args and 11 more — is a fair guide to whether it matches your workflow. It is maintained by nicopreme; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Pi.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the pi mcp server does with a few real requests.

Available tools

ToolWhat it does
FilePurpose
FieldDescription
argsCommand arguments
socketExplicit rmcp-mux Unix-domain socket path; supports ${VAR}, $env:VAR, and ~ expansion and is mutually exclusive with command and url
envEnvironment variables; supports ${VAR} and $env:VAR interpolation. A value beginning with ! runs a command when the stdio server connects; use !! for a literal leading !.
cwdWorking directory; supports ${VAR}, $env:VAR, and ~ expansion
urlHTTP endpoint (StreamableHTTP with SSE fallback); supports raw ${VAR} and $env:VAR interpolation, and missing URL variables fail before any request is sent
headersHTTP headers; supports ${VAR} and $env:VAR interpolation. A value beginning with ! runs a command when the HTTP server connects or OAuth authenticates; use !! for a literal leading !.
auth"bearer" or "oauth"
oauth.grantType"authorization_code" (default) or "client_credentials" for non-interactive machine auth
oauth.clientIdPre-registered OAuth client ID; dynamic registration is used when omitted
oauth.clientSecretOAuth client secret for confidential clients; a value beginning with ! runs a command when OAuth authenticates, while !! escapes a literal leading !
oauth.scopeRequested OAuth scopes
oauth.redirectUriExact localhost redirect URI for browser OAuth, including port and path, for providers that pre-register callbacks

How to install the Pi MCP server

{
  "mcpServers": {
    "chrome-devtools": {
      "command": "npx",
      "args": ["-y", "chrome-devtools-mcp@1.6.0"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Pi to File.
  • Use Pi to Field.
  • Use Pi to args.

Frequently asked questions

It connects Pi to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (File, Field, args, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Pi directly.