ClaudeMap

MCP Rust SDK

Official Rust SDK for building MCP servers and clients, published by modelcontextprotocol.

SDKs & Toolingofficialsdkrustmcp

Idiomatic Rust client/server for MCP with tokio-async transport support, schema-derived type generation, and first-class stdio + Streamable HTTP transports. Used in production by Cloudflare and several community projects.

What it does

  • Official Rust MCP SDK (RMCP) built on the tokio async runtime
  • Procedural macros generate tool implementations — a dedicated rmcp-macros crate ships #[tool], #[tool_router] and #[tool_handler] to handle all the wiring
  • Tools-only servers can use #[tool_router(server_handler)] and skip the separate ServerHandler impl
  • Covers long-running tool invocations (Tasks) and stateless Streamable HTTP alongside stdio

When to use it

The official pick for shipping an MCP server out of a Rust service — the macros keep tool registration close to plain functions instead of builder chains.

Getting started

cargo add rmcp --features server

# or track main directly:
cargo add rmcp --features server --git https://github.com/modelcontextprotocol/rust-sdk --branch main

Things to know

The tokio async runtime is the base the SDK is built on — non-async Rust codebases will need tokio in the integration path.

Repository

modelcontextprotocol/rust-sdk

Charted

Related on the map

  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation
  • Extract your own local chat history from ten AI coding assistants into one normalized JSONL — for fine-tuning, analytics, or backing up years of conversations. Standard library only.

    • cli
    • data-export
    • jsonl
    • backup