SuperAPIAI Directory

turbomcp

github.com · AI developer platforms

MCP SDK for Rust.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsAPI

About this tool

Purpose: TurboMCP is a Rust SDK for the Model Context Protocol (MCP), covering both the server and client halves of the protocol, with the goal of being macro-driven, zero-boilerplate, and strictly spec-compliant.

Main capabilities: Annotate an impl block with #[server] to turn #[tool] / #[resource] / #[prompt] methods into a fully wired MCP server; the macro generates schema derivation code, and capability declarations are derived from the markers, avoiding drift from the implementation. The same handler can answer the three protocol revisions 2025-06-18, 2025-11-25, and 2026-07-28; handlers use version-neutral types, version differences are handled through conversions, and a fixed set can be specified with #[server(protocols("2025-11-25", …))]. The unified transport-layer builder supports stdio (default), Streamable HTTP (axum), and WebSocket, for example MyServer.run_stdio() or .into_server().layer(…).serve(Http::bind(addr)). The client provides a typed Client that performs the handshake, negotiates the version, and uses the same neutral API. Production features include OAuth 2.1, per-identity rate limiting, OpenTelemetry tracing and metrics, progress/logging, subscriptions, response caching (SEP-2549), and bidirectional elicitation, all opted into via feature flags.

Usage: The SDK is a Cargo workspace, the turbomcp facade re-exports the commonly used parts, and a typical dependency only needs turbomcp. Requires Edition 2024, MSRV 1.88.

Applicable scenarios: Scenarios that need a Rust implementation of an MCP server or client, cross-protocol-version compatibility, and interoperability with the official Rust/TypeScript/Python/Go SDKs.

Limitations: The current 4.0.0-alpha.5 is a community test pre-release, and the stable line is 3.x; it does not serve the 2024-11-05 and 2025-03-26 revisions; compliance and interoperability tests are compatibility evidence and do not mean performance is better than other SDKs; the limitations of deployment and migration and the security contract must be checked in the relevant documentation.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools