pi-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pi-mcplist my configured MCP servers and start the stopped ones"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pi-mcp
Lightweight MCP server management extension for Pi. It manages standard MCP configuration files and exposes configured servers to the agent through a single gateway tool, without bundling a full Pi MCP adapter.
Commands
/mcp— list configured MCP servers with their runtime status and start them on demand./mcp-add— open a wizard for adding a local command or remote HTTP server, including environment variables and authentication./mcp-configure— update an existing server's environment variables, bearer authentication, working directory, HTTP headers, and autostart behavior./mcp-remove— choose and remove a server from the project or global config.
The add wizard writes either the project .mcp.json or the user-global
~/.config/mcp/mcp.json, then reloads Pi. Project entries take precedence over
global entries with the same name.
Connections are started lazily: tools are discovered and cached for five
minutes, and a failed operation is retried once by reconnecting. Bearer tokens
can be stored in the config or read from an environment variable, and $VAR
and ${VAR} references in environment values are expanded at launch.
Related MCP server: mcp-unify
Starting servers
Servers with autostart: true connect when Pi starts. Everything else stays
stopped until it is needed, so unused servers never spawn a process:
start one yourself from
/mcp, orlet the agent request one.
list_serversshows stopped servers, and the agent must callstart— which asks you to confirm — before it can use their tools.
The gateway workflow the agent follows is: list_servers → start
(when stopped) → list_tools → describe (optional) → call.
Command servers accept any executable and arguments, including for example:
uvx mcp-server-git --repository /path/to/repo
npx -y @modelcontextprotocol/server-filesystem /tmp
pnpm dlx @modelcontextprotocol/server-memory
pipx run mcp-server-fetchOnly add commands and URLs you trust: command servers run with the permissions of the Pi process, and remote servers may receive data from MCP requests.
Architecture
extensions/
main.ts entrypoint: commands, tool, lifecycle hooks
helpers/ side effects (config I/O, MCP runtime, autostart)
ui/ interactive menus, editors, and wizards
utils/ pure domain logic and formattingEach directory has a README describing its modules. extensions/utils/ is
kept deterministic and free of I/O so it can be unit tested directly.
Installation
# Latest
pi install git:github.com/walruskhan/pi-mcp
# Tagged versioned
pi install git:github.com/walruskhan/pi-mcp@v0.1.0Development
Prerequisites: Devbox. It provides Node.js,
pnpm, Just, and detect-secrets. Enter the shell with devbox shell, or prefix
commands with devbox run --.
just install-hooks # configure the versioned Git hooks
just check # check TypeScript syntax
just lint # run Biome
just test # run Node's test runner
just pi # run Pi with the local extensionThe package's Pi metadata points at extensions/main.ts, so it can also be
loaded from the repository root with:
pi -e ./extensions/main.tsPublish
git init
git add .
git commit -m "Initial Pi extension"
git branch -M main
git remote add origin git@github.com:walruskhan/pi-mcp.git
git push -u origin mainCreate a version tag:
# View tagged versions
git tag
git tag v0.1.0
git push origin v0.1.0Users can then install tagged version:
pi install git:github.com/walruskhan/pi-mcp@v0.1.0This server cannot be deployed
Maintenance
Related MCP Connectors
The MCP server that finds MCP servers. Aggregates Official Registry, Glama, and Smithery.
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables centralized management and unified interface for multiple child MCP servers (filesystem, sqlite, etc.), allowing users to discover, launch, and execute tools across different MCP servers through a single gateway.-
- AlicenseNot gradedqualityCmaintenanceUnifies multiple MCP servers behind a single endpoint with lazy loading, auto-cleanup, Python plugins, and role-based filtering.2MIT
- FlicenseAqualityDmaintenanceUniversal MCP proxy server that discovers, searches, and executes tools across all configured MCP servers from a single entry point.7-
- AlicenseNot gradedqualityBmaintenanceA plugin gateway that serves local MCP servers over HTTP as independent endpoints, avoiding child-process leaks by calling server factories in-process.MIT