# Pmcp

> Pmcp is an open-source MCP server for developer tools. Rust SDK and tooling for building Model Context Protocol servers and clients. It is available on CLI, API, Linux, macOS, Windows and Web.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Linux, macOS, Windows, Web
- **Repository:** https://github.com/paiml/rust-mcp-sdk
- **MCP Registry name:** io.github.paiml/pmcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The README presents PMCP as a Rust toolkit for building MCP servers, covering the pmcp crate, a cargo-pmcp CLI for scaffolding and testing, and a book and course for learning the protocol. It also describes config-driven servers that expose SQL databases, OpenAPI backends and governed Excel workbooks as MCP tools from a TOML file or compiled bundle, without writing Rust.

The project supports stdio, Streamable HTTP/SSE, WebSocket and WASM transports, plus typed tool definitions with JSON schema generated from Rust types. Recent releases add support for both the 2025-11-25 and 2026-07-28 protocol versions, negotiated per request, along with an agent loop crate, MCP Apps widgets and a conformance test suite.

The SDK suits Rust developers who want to build production MCP servers and teams who need to expose internal data to AI clients. The README's performance figures are its own benchmarks against the TypeScript SDK and are not independently verified.

## Features

- **Typed tool definitions:** Tool arguments and outputs derive JSON schemas automatically from Rust types using schemars.
- **Multiple transports:** Servers can run over stdio, Streamable HTTP with SSE, WebSocket, or WASM targets such as Cloudflare Workers.
- **Config-driven servers:** SQL and OpenAPI backends can be exposed as MCP servers from a config.toml file without writing Rust.
- **Dual protocol era support:** One binary answers both MCP 2025-11-25 and 2026-07-28 clients, negotiated per request.
- **OAuth and middleware:** Includes OAuth 2.0 context pass-through, bearer tokens, and Tower middleware for DNS rebinding protection and CORS.
- **Scaffolding and testing CLI:** cargo-pmcp scaffolds workspaces, runs dev mode, generates scenario tests and load tests.

## Good for

- Building a Rust MCP server that exposes internal APIs to AI assistants
- Putting a SQL database behind MCP with curated tools and a restricted query mode
- Testing an existing MCP server for protocol compliance in CI
- Deploying an MCP server to AWS Lambda, Google Cloud Run or Cloudflare Workers
- Building an agent that acts as an MCP client using the pmcp-agent crate

## FAQ

### What license is PMCP released under?

The README states that the project is licensed under the MIT License.

### How do I add the SDK to a Rust project?

The README shows adding pmcp = "2.0" along with tokio, serde and schemars to Cargo.toml, and lists pmcp 2.9 as the latest version in the SDK section.

### Can I create a server without writing Rust code?

Yes for SQL and OpenAPI backends and Excel workbooks. The README says these are built from a config.toml or compiled bundle using prebuilt binaries installed with cargo install.

### Which MCP protocol versions are supported?

The README says the server can speak both 2025-11-25 (v1) and 2026-07-28 (v2), with the version negotiated per request. Servers must opt in to v2 explicitly, since the default accept-list is v1-only.

### 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 python-sdk, MCP Ts Template, Pforge, MCP Server Template and MCP Foundry — Build, Test & Publish MCP Servers.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.

## Alternatives

- [python-sdk](https://ai-powered.com/mcp/python-sdk): python-sdk is an open-source MCP server for developer tools.
- [MCP Ts Template](https://ai-powered.com/mcp/mcp-ts-template): MCP Ts Template is an open-source MCP server for developer tools.
- [Pforge](https://ai-powered.com/mcp/pforge): Pforge is an open-source MCP server for developer tools.
- [MCP Server Template](https://ai-powered.com/mcp/mcp-server-template): MCP Server Template is an open-source MCP server for developer tools.
- [MCP Foundry — Build, Test & Publish MCP Servers](https://ai-powered.com/mcp/mcp-foundry-build-test-and-publish-mcp-servers): MCP Foundry — Build, Test & Publish MCP Servers is a freemium MCP server for developer tools.
- [Crimson Crab MCP Template](https://ai-powered.com/mcp/crimson-crab-mcp-template): Crimson Crab MCP Template is an open-source MCP server for ai models and llm tooling.
- [Makefile MCP](https://ai-powered.com/mcp/makefile-mcp-2): Makefile MCP is an open-source MCP server for developer tools.
- [mcpls](https://ai-powered.com/mcp/mcpls): mcpls is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/pmcp-2
