Rust MCP SDK 是 AI Skill Hub 本期精选MCP工具之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
高性能MCP工具包,用于构建MCP服务器和客户端
Rust MCP SDK 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
高性能MCP工具包,用于构建MCP服务器和客户端
Rust MCP SDK 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/rust-mcp-stack/rust-mcp-sdk
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"rust-mcp-sdk": {
"command": "npx",
"args": ["-y", "rust-mcp-sdk"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Rust MCP SDK 执行以下任务... Claude: [自动调用 Rust MCP SDK MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"rust_mcp_sdk": {
"command": "npx",
"args": ["-y", "rust-mcp-sdk"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img width="200" src="assets/rust-mcp-sdk.png" alt="Rust MCP SDK" width="300"> </p>
<img alt="crates.io" src="https://img.shields.io/crates/v/rust-mcp-sdk?style=for-the-badge&logo=rust&color=FE965D" height="22"> <img alt="docs.rs" src="https://img.shields.io/badge/docs.rs-rust_mcp_SDK-0ECDAB?style=for-the-badge&logo=docs.rs" height="22"> <img alt="build status" src="https://img.shields.io/github/actions/workflow/status/rust-mcp-stack/rust-mcp-sdk/ci.yml?style=for-the-badge" height="22"> <img alt="conformance" src="https://img.shields.io/badge/conformance-2026--07--28%20100%25-green?style=for-the-badge" height="22">
A high-performance, asynchronous Rust toolkit for building MCP servers and clients.
Documentation · Tutorials · Examples · Upgrade Guide · Changelog <br/> Contributing · Report a bug · Request a Feature
</div>
This SDK fully implements the MCP 2026-07-28 stateless protocol and passes 100% of official MCP conformance tests (110/110 server, 440/440 client).
rust-mcp-sdk provides the necessary components for developing both servers and clients in the MCP ecosystem. It leverages the rust-mcp-schema crate for type-safe schema objects and includes powerful procedural macros.
Focus on your application logic, rust-mcp-sdk handles the protocol, transports, and the rest.
⚠️ Version notice: This isrust-mcp-sdk2.x, implementing the new MCP 2026-07-28 (stateless) specification. For the previous MCP 2025-11-25 specification, userust-mcp-sdk1.x:See the upgrade guide to migrate from 1.x to 2.0.> rust-mcp-sdk = "1" >
Version matrix: | SDK version | Protocol | Branch | |---|---|---| | 2.0 | MCP 2026-07-28 (stateless) |main| | 1.x (LTS) | MCP 2025-11-25 |release-1.x| Upgrading? See the upgrade guide.
Key Features - MCP 2026-07-28 (stateless protocol) - 100% MCP Conformance - server 110/110, client 440/440 on 2026-07-28 - Transports: Stdio, Streamable HTTP, and backward-compatible SSE support - Framework Agnostic: Axum, Actix, and BYO Server integrations - MRTR (Mid-Request Turn-Around) for server→client input requests - Response cache (SEP-2549) with principal-scoped privacy + auto-pagination - Per-request _meta with RequestContext - Multi-client concurrency - DNS Rebinding Protection - Message Observer (Telemetry & Monitoring) - HTTP Health Checks (for load balancers & container orchestration) - OAuth Authentication for MCP Servers - Remote Oauth Provider - Keycloak Provider (via rust-mcp-extra) - WorkOS Authkit Provider (via rust-mcp-extra) - Scalekit Authkit Provider (via rust-mcp-extra) - OAuth Authentication for MCP Clients (metadata discovery, CIMD, PKCE, token refresh, pluggable storage) - Issuer-bound credentials (SEP-2352), strict iss validation (SEP-2468)
server: Activates MCP server capabilitiesclient: Activates MCP client capabilitiesmacros: Procedural macros for Tool, Elicit, Resource structuressse: Server-Sent Events (SSE) transportstreamable-http: Streamable HTTP transportstdio: Standard input/output (stdio) transportauth: OAuth authentication support for MCP serverstls-no-provider: TLS without a crypto providerAll features are enabled by default:
[dependencies]
rust-mcp-sdk = "2.0.0"
[dependencies]
rust-mcp-sdk = { version = "2.0.0", default-features = false, features = ["server", "macros", "stdio"] }
[dependencies]
rust-mcp-sdk = { version = "2.0.0", default-features = false, features = ["client", "stdio"] }
Add to your Cargo.toml:
[dependencies]
rust-mcp-sdk = "2.0.0" # Check crates.io for the latest version
For more examples (stdio, Streamable HTTP, clients, auth, etc.), see the examples/ directory.
👉 For step-by-step tutorials (server, client, HTTP deployment, OAuth, and more), see the documentation site.
See the hello-world-mcp-server-stdio example running in the MCP Inspector:
<img src="assets/examples/hello-world-mcp-server.gif" alt="hello world mcp server in rust" width="800" />
Axum server is highly customizable through AxumServerOptions:
let server = create_axum_server(
server_details,
handler.to_mcp_server_handler(),
AxumServerOptions {
host: "127.0.0.1".to_string(),
port: 8080,
auth: Some(Arc::new(auth_provider)), // enable authentication
health_endpoint: Some("/health".into()), // health check
sse_support: true, // backward-compat SSE
..Default::default()
},
);
server.start().await?;
An optional HTTP health check endpoint for load balancers and container orchestration:
let server = create_axum_server(
server_details,
handler.to_mcp_server_handler(),
AxumServerOptions {
host: "127.0.0.1".into(),
health_endpoint: Some("/health".into()),
..Default::default()
},
);
| Name | Description | Link | |
|---|---|---|---|
| <a href="https://rust-mcp-stack.github.io/rust-mcp-filesystem"><img src="https://raw.githubusercontent.com/rust-mcp-stack/rust-mcp-filesystem/refs/heads/main/docs/_media/rust-mcp-filesystem.png" width="64"/></a> | [Rust MCP Filesystem](https://rust-mcp-stack.github.io/rust-mcp-filesystem) | Fast, async MCP server enabling high-performance, modern filesystem operations with advanced features. | [GitHub](https://github.com/rust-mcp-stack/rust-mcp-filesystem) |
| <a href="https://rust-mcp-stack.github.io/mcp-discovery"><img src="https://raw.githubusercontent.com/rust-mcp-stack/mcp-discovery/refs/heads/main/docs/_media/mcp-discovery-logo.png" width="64"/></a> | [MCP Discovery](https://rust-mcp-stack.github.io/mcp-discovery) | A lightweight command-line tool for discovering and documenting MCP Server capabilities. | [GitHub](https://github.com/rust-mcp-stack/mcp-discovery) |
| <a href="https://github.com/EricLBuehler/mistral.rs"><img src="https://avatars.githubusercontent.com/u/65165915?s=64" width="64"/></a> | [mistral.rs](https://github.com/EricLBuehler/mistral.rs) | Blazingly fast LLM inference. | [GitHub](https://github.com/EricLBuehler/mistral.rs) |
| <a href="https://github.com/moonrepo/moon"><img src="https://avatars.githubusercontent.com/u/102833400?s=64" width="64"/></a> | [moon](https://github.com/moonrepo/moon) | moon is a repository management, organization, orchestration, and notification tool for the web ecosystem, written in Rust. | [GitHub](https://github.com/moonrepo/moon) |
| <a href="https://github.com/Dicklesworthstone/destructive_command_guard"><img src="https://github.com/Dicklesworthstone.png?size=64" width="64"/></a> | [destructive_command_guard](https://github.com/Dicklesworthstone/destructive_command_guard) | The Destructive Command Guard (dcg) is for blocking dangerous git and shell commands from being executed by agents. - Dicklesworthstone/destructive_command_guard | [GitHub](https://github.com/Dicklesworthstone/destructive_command_guard) |
| <a href="https://github.com/KingOfBugbounty/enumrust"><img src="https://github.com/KingOfBugbounty.png?size=64" width="64"/></a> | [enumrust](https://github.com/KingOfBugbounty/enumrust) | Subdomain Enumerator and Simple Crawler. Contribute to KingOfBugbounty/enumrust development by creating an account on GitHub. | [GitHub](https://github.com/KingOfBugbounty/enumrust) |
| <a href="https://github.com/bearcove/tracey"><img src="https://github.com/bearcove.png?size=64" width="64"/></a> | [tracey](https://github.com/bearcove/tracey) | CLI, Web, LSP, and MCP toolkit to measure spec coverage in Rust codebases - bearcove/tracey | [GitHub](https://github.com/bearcove/tracey) |
| <a href="https://github.com/azw413/Glass"><img src="https://github.com/azw413.png?size=64" width="64"/></a> | [Glass](https://github.com/azw413/Glass) | Glass - a fast and free IDA Pro alternative. Contribute to azw413/Glass development by creating an account on GitHub. | [GitHub](https://github.com/azw413/Glass) |
| <a href="https://github.com/skanehira/ghost"><img src="https://github.com/skanehira.png?size=64" width="64"/></a> | [ghost](https://github.com/skanehira/ghost) | Simple background process manager for Unix systems - skanehira/ghost | [GitHub](https://github.com/skanehira/ghost) |
| <a href="https://github.com/paiml/aprender"><img src="https://github.com/paiml.png?size=64" width="64"/></a> | [aprender](https://github.com/paiml/aprender) | Next Generation Machine Learning, Statistics and Deep Learning in PURE Rust - paiml/aprender | [GitHub](https://github.com/paiml/aprender) |
| <a href="https://github.com/mpsm/mcp-cpp"><img src="https://github.com/mpsm.png?size=64" width="64"/></a> | [mcp-cpp](https://github.com/mpsm/mcp-cpp) | MCP server tailored to work with large C/C++ codebases - mpsm/mcp-cpp | [GitHub](https://github.com/mpsm/mcp-cpp) |
| <a href="https://github.com/ProjectViVy/agent-diva"><img src="https://github.com/ProjectViVy.png?size=64" width="64"/></a> | [agent-diva](https://github.com/ProjectViVy/agent-diva) | Next Generation AI Agent(AKA:nanobot-rs-pro). Contribute to ProjectViVy/agent-diva development by creating an account on GitHub. | [GitHub](https://github.com/ProjectViVy/agent-diva) |
| <a href="https://github.com/Vaiz/rust-mcp-server"><img src="https://avatars.githubusercontent.com/u/4908982?s=64" width="64"/></a> | [rust-mcp-server](https://github.com/Vaiz/rust-mcp-server) | rust-mcp-server allows the model to perform actions on your behalf, such as building, testing, and analyzing your Rust code. | [GitHub](https://github.com/Vaiz/rust-mcp-server) |
| <a href="https://github.com/cortesi/ruskel"><img src="https://github.com/cortesi.png?size=64" width="64"/></a> | [ruskel](https://github.com/cortesi/ruskel) | Ruskel generates skeletonized outlines of Rust crates. - cortesi/ruskel | [GitHub](https://github.com/cortesi/ruskel) |
| <a href="https://github.com/snailwei/ai-agent"><img src="https://github.com/snailwei.png?size=64" width="64"/></a> | [ai-agent](https://github.com/snailwei/ai-agent) | Idiomatic agent sdk inspired by the claude code source leak. - snailwei/ai-agent | [GitHub](https://github.com/snailwei/ai-agent) |
| <a href="https://github.com/LepistaBioinformatics/mycelium"><img src="https://github.com/LepistaBioinformatics.png?size=64" width="64"/></a> | [mycelium](https://github.com/LepistaBioinformatics/mycelium) | Mycelium API Gateway, the ultimate solution for secure, flexible, and multi-tenant API management - LepistaBioinformatics/mycelium | [GitHub](https://github.com/LepistaBioinformatics/mycelium) |
| <a href="https://github.com/FalkorDB/text-to-cypher"><img src="https://avatars.githubusercontent.com/u/140048192?s=64" width="64"/></a> | [text-to-cypher](https://github.com/FalkorDB/text-to-cypher) | A high-performance Rust-based API service that translates natural language text to Cypher queries for graph databases. | [GitHub](https://github.com/FalkorDB/text-to-cypher) |
| <a href="https://github.com/zen8labs/lunex"><img src="https://github.com/zen8labs.png?size=64" width="64"/></a> | [lunex](https://github.com/zen8labs/lunex) | All-in-One Workspace AI. Contribute to zen8labs/lunex development by creating an account on GitHub. | [GitHub](https://github.com/zen8labs/lunex) |
| <a href="https://github.com/angreal/angreal"><img src="https://avatars.githubusercontent.com/u/45580675?s=64" width="64"/></a> | [angreal](https://github.com/angreal/angreal) | Angreal provides a way to template the structure of projects and a way of executing methods for interacting with that project in a consistent manner. | [GitHub](https://github.com/angreal/angreal) |
The SDK is completely framework-agnostic. If you are using a different HTTP framework (like Rocket, Salvo, or Warp), you can build a custom integration by adapting your framework's native Request/Response types to the SDK's core HTTP handling logic.
See the Custom HTTP Framework Integration Guide for architectural details.
高性能的MCP工具包,适合构建服务器和客户端
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,Rust MCP SDK 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | rust-mcp-sdk |
| 原始描述 | 开源MCP工具:A high-performance, asynchronous toolkit for building MCP servers and clients in。⭐179 · Rust |
| Topics | mcprustasync |
| GitHub | https://github.com/rust-mcp-stack/rust-mcp-sdk |
| License | MIT |
| 语言 | Rust |
收录时间:2026-06-20 · 更新时间:2026-06-22 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端