Overview of the Rust MCP SDK
mainThe rust-mcp-sdk is a high-performance, asynchronous Rust toolkit designed for building MCP servers and MCP clients. It ensures 100% conformance to the official Model Context Protocol (MCP) test suites and supports the 2025-11-25 protocol specification.
Core Capabilities
- Servers: Expose tools (executable functions), resources (readable data), and prompts (interaction templates).
- Clients: Connect to servers to discover capabilities and invoke them.
Key Features
- Transport Support: Stdio, Streamable HTTP, and backward-compatible SSE.
- Framework Integration: Native support for
AxumandActix-web, or a 'BYO-server' mode for existing applications. - Developer Experience: Procedural macros (
mcp_tool,tool_box!,mcp_elicit) for automatic schema generation from Rust structs. - Security & Production Readiness: OAuth 2.1 support (DCR, PKCE, token refresh), DNS rebinding protection, resumability, health checks, and telemetry hooks.