PMCP Server
An MCP server that exposes PMCP SDK capabilities as tools, resources, and prompts — enabling AI coding assistants to test, scaffold, and reference PMCP documentation through the MCP protocol.
Install
Pre-built binary (recommended)
Download the latest release for your platform:
# macOS (Apple Silicon)
# macOS (Intel)
# Linux (x86_64)
# Linux (ARM64)
# Windows (PowerShell)
cargo install
cargo binstall
From source
Usage
# Start on default port 8080
# Custom port and host
# With debug logging
RUST_LOG=debug
Environment variables: PMCP_SERVER_PORT, PMCP_SERVER_HOST.
Configure with AI clients
Claude Desktop
Add to claude_desktop_config.json:
Claude Code
What's included
Tools
| Tool | Description |
|---|---|
test_check |
Run MCP protocol compliance tests against a remote server |
test_generate |
Generate test scenarios from a server's discovered capabilities |
test_apps |
Validate MCP Apps metadata structure and cross-references |
scaffold |
Generate PMCP project templates (returns JSON, does not write files) |
schema_export |
Connect to a server and export tool/resource/prompt schemas as JSON or Rust types |
Resources (9 documentation URIs)
| URI | Content |
|---|---|
pmcp://docs/typed-tools |
TypedTool, TypedSyncTool, and TypedToolWithOutput patterns |
pmcp://docs/resources |
ResourceHandler trait, URI patterns, and static content |
pmcp://docs/prompts |
PromptHandler trait, PromptInfo metadata, and workflow prompts |
pmcp://docs/auth |
OAuth, API key, and JWT middleware configuration |
pmcp://docs/middleware |
Tool and protocol middleware composition |
pmcp://docs/mcp-apps |
Widget UIs, _meta emission, and host integration |
pmcp://docs/error-handling |
Error variants, Result patterns, and propagation |
pmcp://docs/cli |
cargo-pmcp commands: init, test, preview, deploy |
pmcp://docs/best-practices |
Tool design, resource organization, testing, deployment |
Prompts (7 guided workflows)
| Prompt | Description |
|---|---|
quickstart |
Step-by-step guide to create your first PMCP server |
create-mcp-server |
Set up a new PMCP workspace with scaffold templates |
add-tool |
Add a new tool to an existing server |
diagnose |
Diagnostic steps for a running MCP server |
setup-auth |
Configure OAuth, API key, or JWT authentication |
debug-protocol-error |
Debug MCP protocol and JSON-RPC errors |
migrate |
Migrate from TypeScript MCP SDK to PMCP (Rust) |
Deploy to the cloud
The PMCP server uses stateless streamable HTTP — pure HTTP POST/response with no WebSocket or long-lived connections — making it ideal for serverless deployment. Both options below operate well within their free tiers for low-traffic usage.
AWS Lambda
Deploy as a native ARM64 binary behind API Gateway using CDK:
# Prerequisites
# Initialize and deploy
This compiles the server to aarch64-unknown-linux-musl, wraps it with a Lambda adapter that translates API Gateway events to HTTP, and provisions the stack via CloudFormation. The free tier includes 1M requests/month and 400K GB-seconds.
After deployment, get your endpoint:
Then configure your AI client to use the deployed URL instead of localhost.
Google Cloud Run
Deploy as a container to Google's managed serverless platform:
# Prerequisites
# Install Docker: https://docs.docker.com/get-docker/
# Install gcloud: https://cloud.google.com/sdk/docs/install
# Initialize and deploy
This builds a Docker image with the server binary, pushes it to Google Container Registry, and deploys to Cloud Run. The free tier includes 2M requests/month and 360K GB-seconds.
Managing deployments
# View logs
# Run health check
# Tear down
License
MIT