
MCP Rust SDK
by modelcontextprotocol
The official Rust SDK for building Model Context Protocol clients and servers with tokio async runtime.
What it does
This is the official SDK for implementing the Model Context Protocol (MCP) in Rust. It provides the core primitives needed to build both MCP clients and servers, ensuring high-performance, type-safe communication between AI agents and external data sources.
Tools
As an SDK, this repository does not expose a single tool but rather provides the framework to create tools. It includes macros like #[tool] and #[tool_router] that allow developers to quickly expose Rust functions as MCP tools with automatic JSON Schema generation.
Installation
Add the crate to your Cargo.toml:
rmcp = { version = "0.16.0", features = ["server"] }
Supported hosts
Confirmed for use with any MCP-compliant client, including Claude Desktop.
Quick install
cargo add rmcp --features serverInformation
- Pricing
- free
- Published
- 5/13/2026
- stars





