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.