modelcontextprotocol/rust-sdk
A Rust SDK for building servers and clients that implement the Model Context Protocol for AI tool and resource access.

This is the official Rust implementation of the Model Context Protocol (MCP), providing async runtime support via tokio. It includes a core protocol crate and a procedural macro crate for generating tool implementations. MCP is the protocol that enables AI models and agents to discover and invoke tools, access resources, handle prompts, manage sampling, and coordinate long-running tasks. The SDK is intended for developers building MCP-compatible servers that expose tools and capabilities to AI clients.
Frequently asked
- What is modelcontextprotocol/rust-sdk?
- A Rust SDK for building servers and clients that implement the Model Context Protocol for AI tool and resource access.
- Is rust-sdk open source?
- Yes — modelcontextprotocol/rust-sdk is an open-source project tracked on heatdrop.
- What language is rust-sdk written in?
- modelcontextprotocol/rust-sdk is primarily written in Rust.
- How popular is rust-sdk?
- modelcontextprotocol/rust-sdk has 3.7k stars on GitHub.
- Where can I find rust-sdk?
- modelcontextprotocol/rust-sdk is on GitHub at https://github.com/modelcontextprotocol/rust-sdk.