PMCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Host to bind HTTP transport. Only used when transport is 'http'. | 127.0.0.1 |
| port | No | Port to bind HTTP transport. Only used when transport is 'http'. | 3344 |
| debug | No | Enable debug logging. Set to 'true' or 'false'. | false |
| transport | No | Transport mode: 'stdio' or 'http'. Default is 'stdio'. | stdio |
| PMCP_CONFIG | No | Path to a custom config file. Can also be set via --config. | |
| PMCP_LOCK_DIR | No | Directory for the singleton lock file. Defaults to ~/.pmcp. Can also be set via --lock-dir. | |
| PMCP_AUTH_TOKEN | No | Bearer token for HTTP transport authentication. Can also be set via --auth-token. | |
| PMCP_RATE_LIMIT | No | Rate limit for HTTP transport, e.g., '10/second'. Applied per source IP. | |
| PMCP_LEGACY_MANIFEST_AUTOSTART | No | Set to '1' to enable legacy manifest autostart behavior. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
MCP Gateway: no downstream server is connected yet.
This is normal. Downstream servers are lazy by default and start on first use; the gateway's own tools are available right now and are how you reach them:
gateway.catalog_search - find a capability across all known servers
gateway.describe - full schema for one tool before calling it
gateway.invoke - call a downstream tool (connects its server if needed)
gateway.request_capability - describe a need in plain language; recommends a local CLI or a server to provision (it starts nothing; gateway.provision does)
Provisionable categories: Provisionable (107 servers): browser automation (playwright, puppeteer +4); scraping/search (brightdata, brave-search +7); APIs (github, gitlab +6); databases (postgres, sqlite +7); developer tools (context7, git +8); cloud/storage (google-drive, filesystem +7); CRM & sales (hubspot, salesforce); payments (stripe, xero +1); project management (jira, confluence +4); design & media (figma, miro +3); monitoring (datadog, grafana +2); CMS & content (airtable, contentful +3); communication (twilio, mailgun +1)
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| gateway.auth_connectB | Store credentials for a server and make them available to provisioning. Use this when gateway.provision reports missing authentication. |
| gateway.cancelA | Cancel a pending tool invocation. By default, refuses to cancel healthy requests (recent heartbeat). Use force=true to cancel anyway. Use gateway.list_pending first to see request IDs and health status. |
| gateway.catalog_searchA | Search for available tools across all connected MCP servers. Returns compact capability cards without full schemas. Use filters to narrow results by server, tags, or risk level. Set include_offline=true to also include cached tools of offline servers and, with a query, provisionable manifest servers not yet started. This is the primary tool discovery entry point. |
| gateway.config_statusA | Show read-only effective configuration and startup policy status with source attribution and non-secret diagnostics. |
| gateway.connect_serverC | Connect or start a known downstream MCP server by name. Resolves configured, provisioned manifest, and registered discovered servers. |
| gateway.describeA | Get detailed information about a specific tool, including its arguments and constraints. Use this before invoking a tool to understand its requirements. |
| gateway.disconnect_serverA | Disconnect a running downstream MCP server without changing persistent config. Refuses by default when that server has pending requests; set force=true to cancel them. |
| gateway.get_startup_policyA | Return persisted autoStart and legacy disableAutoStart entries grouped by config source. |
| gateway.healthA | Get the health status of the gateway and all connected MCP servers. Shows server status, tool counts, and last refresh time. |
| gateway.invokeA | Invoke a tool on a downstream MCP server. Arguments are validated against the tool schema before execution. Output is automatically truncated if too large. |
| gateway.list_pendingA | List all pending tool invocations with health status. Shows elapsed time, heartbeat age, and current state for each request. Use this to monitor long-running operations before deciding to cancel. |
| gateway.provisionA | Provision (install and start) a specific MCP server from the manifest. Use this after reviewing candidates from gateway.request_capability. Returns immediately with a job_id for tracking. Poll gateway.provision_status to check progress. Use gateway.request_capability instead if you don't know the exact server name. |
| gateway.provision_statusA | Check the status of a running server installation. Use after gateway.provision returns a job_id. Returns progress percentage, output log, and final tools when complete. |
| gateway.refreshA | Reload backend MCP server configurations and reconnect. Use this when new MCP servers have been configured or to recover from connection errors. Refuses by default while downstream requests are pending; set force=true to cancel them. |
| gateway.register_discovered_serverA | Register an externally-discovered MCP server package so it can be provisioned. Call this after gateway.search_registry to register the chosen package, then call gateway.provision to install and start it. Registration pins the version resolved from npm; gateway.provision refuses it until an operator approves that exact version (pmcp trust approve-package) or package policy allows it. |
| gateway.request_capabilityA | Recommend the right tool for a task — describe what you need in natural language. Examples: 'scrape a website', 'search Slack messages', 'query Postgres', 'browse the web'. Matches against installed CLIs and 90+ provisionable MCP servers and returns ranked candidates; it does NOT start anything — call gateway.provision to actually install/start the recommended server. Prefer this over gateway.provision when you don't already know the exact server name. |
| gateway.restart_serverA | Restart a known downstream MCP server without changing persistent config. Refuses by default when that server has pending requests; set force=true to cancel them. |
| gateway.search_registryA | Search the public MCP Registry for external servers not in the local manifest. Use this when gateway.request_capability returns not_available. Returns package names and metadata; call gateway.register_discovered_server then gateway.provision to install. Provisioning a discovered package needs an operator to approve its exact version first (pmcp trust approve-package) unless package policy allows it. |
| gateway.set_startup_policyB | Preview or explicitly apply an autoStart add/remove/set operation against one selected config source or path. |
| gateway.submit_feedbackA | Prepare a PMCP feedback issue for GitHub. Returns an exact preview payload and a browser URL an operator can open. pmcp posts nothing itself unless the operator has enabled submission ( |
| gateway.sync_environmentA | Sync environment information from the host. Detects the platform (mac/wsl/linux/windows) and probes for installed CLIs. This information is used to prefer CLIs over MCP servers when matching capabilities. |
| gateway.tasks_cancelA | Cancel a downstream MCP task by opaque task ID. Only a task PMCP has recorded (from gateway.invoke with task, gateway.tasks_list, gateway.tasks_get or gateway.tasks_result) can be cancelled; an already-finished task is reported without a downstream call. Use gateway.cancel only for PMCP request IDs from gateway.list_pending. |
| gateway.tasks_getC | Get current status for one downstream MCP task. |
| gateway.tasks_listB | List brokered downstream MCP tasks. MCP task IDs are opaque downstream task identifiers, not PMCP request IDs. |
| gateway.tasks_resultB | Fetch a downstream MCP task result and apply the same output redaction and truncation options as gateway.invoke. |
| gateway.update_serverA | Update a subordinate MCP server package to latest version and restart it so the new version is actually running. Call this to check for and apply an update -- the gateway does not volunteer update notices, so nothing will prompt you. Refuses a server whose config pins a version, and a server registered with gateway.register_discovered_server. Refuses to restart by default when the server has pending requests; set force=true to cancel them. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Code Execution Guide | Comprehensive guide for using PMCP with code execution patterns |
TDQS
Scored across 26 tools
Most tools have clearly distinct purposes, and descriptions explicitly disambiguate close pairs such as cancel vs. tasks_cancel and connect_server vs. provision. However, discovery tools (catalog_search, request_capability, search_registry) and async/config tools (list_pending vs. tasks_list, config_status vs. get_startup_policy) still have overlapping conceptual boundaries.
All tools use the gateway.<snake_case> prefix, but the internal pattern is mixed: verb_noun (connect_server, submit_feedback), noun_verb (catalog_search, tasks_cancel), and noun_status (config_status, provision_status) coexist. The names are readable but not fully predictable as a set.
At 26 tools the surface is heavy, just above the 25+ threshold, though the gateway legitimately spans discovery, provisioning, server lifecycle, task brokering, policy/config, and feedback. Many tools earn their place, but some task/config operations could likely be consolidated.
The surface covers server lifecycle (connect, disconnect, restart, update, provision), discovery, invocation, task management, pending requests, config/policy, and feedback. Minor gaps remain, such as no explicit uninstall/remove-server or list-servers tool, and package approval is handled externally via CLI rather than through a tool.