
pmcp
Gateway that lets AI coding assistants use many MCP tools without loading them all up
The repository was last updated 3 days ago and is published under MIT.
pmcp is an open-source MCP server for developer tools. It is available on CLI, API, Self-hosted, Linux, macOS and Windows.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- GitHub stars
- 24
- Last commit
- Language
- Python
- License
- MIT
Similar MCP servers
About pmcp
PMCP sits between an AI coding assistant and the external MCP servers it connects to, so the assistant sees a small fixed set of gateway tools instead of every downstream tool definition. Downstream servers stay dormant until a tool is first used, which keeps context usage low when many integrations are configured.
An assistant can search a catalog of tools, describe a tool's schema on demand, and invoke it through a single gateway endpoint. Servers from a manifest of 90+ entries can be provisioned while the session is running, without restarting the client. Lifecycle controls let an operator connect, disconnect or restart individual servers.
It is aimed at developers and teams who run assistants such as Claude Code with many connected tools and hit context limits. The gateway runs locally over stdio or as a shared HTTP service, with optional bearer or OAuth resource-server authentication for shared deployments.
Tools this server provides (7)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 2 of 7 tools read data; 5 names don't say.
From the server's own tool labels and tool names; not verified by us.
- gateway.catalog_searchName suggests: reads
- Search available tools and return compact capability cards.
- gateway.describeName suggests: reads
- Get detailed schema and metadata for a specific tool.
- gateway.invoke
- Call a downstream tool with argument validation.
- gateway.refresh
- Reload backend configs and reconnect servers.
- gateway.health
- Get gateway and server health status.
- gateway.request_capability
- Match a natural language capability request to CLI guidance or server candidates.
- gateway.provision
- Install and start MCP servers on demand.
What it does
- On-demand tool loading
- Downstream servers connect lazily on first use, so unused tool schemas never enter the assistant's context.
- Single gateway connection
- The client connects to one server that exposes a fixed set of meta-tools for search, describe and invoke.
- Runtime server provisioning
- Servers from a manifest can be installed and started during a session without restarting the assistant.
- Policy and output guardrails
- Allow and deny rules, output size caps and optional secret redaction apply to tool traffic.
- Shared HTTP service mode
- One gateway instance can serve several clients, with bearer token or OAuth resource-server authentication.
- Capability matching
- Natural language requests are matched to installed CLIs or MCP server candidates without an API key.
Good for
- Reduce token overhead for an assistant configured with dozens of MCP servers
- Add a new integration such as GitHub or a database to a running coding session
- Share one gateway between several developer sessions or clients on a team host
- Let an assistant pick between a native CLI and an MCP server for a given task
Pricing
Open source
Open source under the MIT license.
pmcp FAQ
How do I install PMCP?
It can be installed with uv (uv pip install pmcp), run directly with uvx pmcp, or installed with pip install pmcp.
Which clients are supported?
The README gives configuration examples for Claude, OpenCode, Codex CLI and Gemini CLI, and states that PMCP works with any MCP-compatible client.
Does PMCP need an API key?
Capability matching needs no API key. Individual downstream servers may require their own credentials, such as GitHub's personal access token.
Is the HTTP transport secure by default?
No. The HTTP transport is unauthenticated by default and binds to 127.0.0.1, so an auth mode and a TLS reverse proxy are needed for any wider exposure.
Is pmcp free?
Yes. pmcp is open source, so you can use and self-host it for free.
What are the best alternatives to pmcp?
The closest alternatives to pmcp are Perforce Agentic Gateway, Ncp, MCP Gateway, MCPJungle and McpMux.
Where this comes from
- Description: written from the project's README.


