Epistates/turbomcp
A Rust SDK implementing both halves of MCP, server and client, with a macro-driven API, strict specification compliance and a passing official conformance suite.
The project "modelcontextprotocol/rust-sdk" is the official Rust SDK for the Model Context Protocol (MCP). It provides asynchronous client and server implementations using the Tokio runtime, supporting various transport layers. The SDK is designed to facilitate the development of MCP-compliant applications in Rust, offering core protocol implementations and procedural macros to generate RMCP tool implementations. The repository includes two main crates: "rmcp," which contains the core protocol implementation, and "rmcp-macros," which provides procedural macros for easier tool generation. The SDK supports building both clients and servers. Clients can be started asynchronously using Tokio, with examples demonstrating how to launch a client process. Servers can be constructed by building transport layers (e.g., using standard input/output streams) and services, then serving these services over the transport. The SDK provides handlers for both server and client sides to simplify service creation and interaction. Users can send requests and notifications to the server once it is running, and the SDK supports waiting for service shutdown or canceling the service. The SDK also integrates with OAuth for authentication and authorization, with documentation available for OAuth support. The project is well-documented, with examples provided to help users get started. It links to the MCP specification and schema, ensuring alignment with the protocol standards. Related projects, such as a containerd-based MCP server implementation, are also referenced. Overall, this SDK is a comprehensive toolset for developers looking to implement the Model Context Protocol in Rust, leveraging asynchronous programming paradigms and providing robust support for client-server communication within the MCP ecosystem.
https://github.com/modelcontextprotocol/rust-sdk
A Rust SDK implementing both halves of MCP, server and client, with a macro-driven API, strict specification compliance and a passing official conformance suite.
A Rust implementation of the Agent2Agent protocol built on hexagonal architecture, including a crate providing a bidirectional bridge between A2A and MCP.
Rust project template for building an MCP CLI server, with prompt, resource and tool handler modules wired on top of the rust-rpc-router JSON-RPC library and a --mcp flag to run over stdio.