rust-sdk

rust-sdk

Official Rust SDK for Model Context Protocol, supporting async runtime.

MCPDevOpen source
Type
MCP
Transport
stdio
Open source
Yes
GitHub Stars
★ 3.6k
Source
mcp-github

Overview

This is the official Rust SDK for Model Context Protocol (MCP), utilizing the tokio async runtime. The SDK enables developers to build MCP clients and servers, providing a rich set of tools and features to streamline development. With this SDK, AI systems gain the ability to interact with the MCP protocol, enabling more complex tasks. Suitable for developers integrating MCP functionality into Rust environments.

Capabilities

  • Supports async runtime
  • Provides client and server building tools
  • Supports tool definition and invocation
  • Generates JSON Schema
  • Supports OAuth authentication

Use cases

Building MCP clientsBuilding MCP serversDefining and invoking toolsHandling long-running tasks

Setup

Requires: Rust 环境tokioserde
Add the dependency to Cargo.toml:

[dependencies]
rmcp = { version = "0.16.0", features = ["server"] }

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

How do I migrate to version 1.x?

Refer to the migration guide for detailed steps.

What features does the SDK support?

Supports async runtime, tool definition, OAuth authentication, and more.

Related skills