MCPR is a Rust implementation of Anthropic's Model Context Protocol, providing tools and libraries for connecting AI assistants to data sources. It offers schema definitions, transport layers, and CLI tools
A Rust implementation of Anthropic's Model Context Protocol (MCP), an open standard for connecting AI assistants to data sources and tools.
Important Notice: Version 0.2.0 has been yanked. Use version 0.2.3 or later.
The GitHub Tools example demonstrates an MCP client-server application interacting with GitHub repositories.
Add mcpr = "0.2.3"
to your Cargo.toml
. Install CLI tools globally with cargo install mcpr
.
Provides code snippets for high-level client and server implementations using StdioTransport
.
MCPR includes a project generator accessible via the CLI. Projects include client/server implementations and test scripts. Local development allows switching between crates.io and local versions.
Supports StdioTransport
and SSETransport
. WebSocket support is planned.
Provides instructions for generating and testing projects with stdio and SSE transports, including troubleshooting tips.
Fork, create a feature branch, commit, push, and open a pull request.
MIT License.
conikeec/mcpr
March 13, 2025
March 28, 2025
Rust