Skip to main content
Version: 1.1.0

Rust MCP SDK

A high-performance, asynchronous Rust toolkit for building MCP servers and MCP clients - with 100% conformance to the official MCP test suites.

crates.io docs.rs

What is MCP?โ€‹

The Model Context Protocol (MCP) is an open standard for connecting LLM applications to tools and data. It is a uniform way for AI applications (like Claude, ChatGPT, or your own agent) to discover and use capabilities you expose.

With MCP you can build:

  • Servers that expose tools (functions the LLM can call), resources (data the LLM can read), and prompts (reusable interaction templates)
  • Clients that connect to servers, discover their capabilities, and invoke them

rust-mcp-sdk handles the protocol, transports, session management, authentication, and schema generation - you focus on your application logic.

Why rust-mcp-sdk?โ€‹

โœ…100% MCP Conformance - passes all official server and client conformance tests
โœ…Latest protocol - MCP spec 2025-11-25
โœ…All transports - Stdio, Streamable HTTP, and backward-compatible SSE
โœ…Framework agnostic - native Axum & Actix-web integrations, plus BYO-server mode
โœ…Procedural macros - mcp_tool, tool_box!, mcp_elicit generate schemas from your structs
โœ…OAuth 2.1 - server and client auth with DCR, PKCE, token refresh, and ready-made providers
โœ…Production ready - DNS rebinding protection, resumability, health checks, tasks, telemetry hooks

Next stepโ€‹

๐Ÿ‘‰ Install the SDK and then follow the Quickstart.