Products / AI infrastructure
TurboMCP
TurboMCP is a Rust SDK for the Model Context Protocol, covering both the server and the client. The latest generation, v4 (currently 4.0.0-alpha.5), is a ground-up rewrite in public alpha: a single #[server] macro derives schemas and capabilities, one handler serves three protocol revisions, and middleware is plain tower. The stable line is v3 (3.6.0). v4 is a prerelease and its APIs may change before 4.0.0.
cargo add turbomcp@4.0.0-alpha.5- 3
- MCP revisions served (2025-06-18, 2025-11-25, 2026-07-28)
- 3
- Transports in v4 (stdio, Streamable HTTP, WebSocket)
- 13
- Published crates in the v4 workspace
- 1.88
- Minimum supported Rust version (edition 2024)
- 4.0.0-alpha.5
- Latest v4 release (alpha)
- 3.6.0
- Latest stable v3 release
Features
Built for production
One macro defines a server
#[server] over an impl block turns #[tool], #[resource] and #[prompt] methods into a wired MCP server. Schemas are generated from Rust signatures, and advertised capabilities are derived from the markers present, so they cannot drift from the implementation.
Three protocol revisions, one handler
The same server answers 2025-06-18, 2025-11-25 and 2026-07-28. Handlers use version-neutral types, version-specific wire shapes are generated from each revision's frozen schema, and you can pin the set with #[server(protocols(...))]. The 2024-11-05 and 2025-03-26 revisions are not served.
Server and client
A typed Client runs the handshake, negotiates the version and speaks the same neutral API. Interoperability is tested in both directions against the official Rust SDK (rmcp), and over Streamable HTTP against the official TypeScript, Python and Go SDKs.
Transports
stdio (default), Streamable HTTP on axum, and WebSocket as a route on the same HTTP endpoint. v4 does not carry over v3's TCP and Unix socket transports.
Composition and visibility
Composite mounts servers under a prefix or flat, and with_visibility decides per caller which components exist at all. A hidden component is refused exactly as one that never existed.
Tower middleware
The dispatcher is a tower::Service, so cross-cutting concerns are ordinary tower Layers that see every method on every transport.
Auth, limits and observability
OAuth 2.1 on both halves (resource-server bearer validation, and the client authorization-code and PKCE flow), identity-keyed rate limiting, OpenTelemetry tracing and metrics, response caching, and bidirectional elicitation. Each is opt-in behind a feature flag.
Conformance tested in CI
Both halves are scored against the official MCP conformance suite: as a server, 236 checks with 231 passing, 0 failing and 5 informational; as a client, 488 distinct successful scenario and check pairs with zero failures, using hash-pinned fixture corrections. The project states this is compatibility evidence, not a performance claim.
no_std foundation
turbomcp-core, the codec and turbomcp-protocol build no_std for wasm32-unknown-unknown, checked on every gate run.
In code
See it work
use turbomcp::prelude::*;
#[derive(Clone)]
struct Hello;
#[server(name = "hello", version = "1.0.0")]
impl Hello {
/// Say hello to someone.
#[tool(description = "Say hello to someone")]
async fn hello(&self, name: String) -> McpResult<String> {
Ok(format!("Hello, {name}!"))
}
}
#[tokio::main]
async fn main() -> Result<(), turbomcp::ProtocolError> {
// Logs MUST go to stderr: stdout carries the MCP protocol framing.
Hello.run_stdio().await
}// Cargo.toml: turbomcp = { version = "4.0.0-alpha.5", features = ["http"] }
Calc.into_server()
.serve(Http::bind(addr).config(HttpConfig::new()))
.await?;use turbomcp::prelude::*;
use turbomcp::{Composite, Implementation};
// Weather, News and Health are ordinary #[server] impls.
let gateway = Composite::new(Implementation::new("gateway", "1.0.0"))
.mount("weather", Weather.into_server())? // weather__forecast
.mount("news", News.into_server())? // news__forecast
.mount_flat(Health.into_server())?; // ping keeps its own nameVersions and support
v4 (4.x, branch main) is the latest generation and is in alpha. The current release is 4.0.0-alpha.5. Per VERSIONING.md, a prerelease may break API against the prerelease before it; the compatibility promise starts at 4.0.0. Stable 4.0.0 is gated on audit remediation, public API review, reproducible performance measurements and deployment feedback, and the roadmap gives no dates.
v3 (3.x, branch v3.x) is the stable line, currently 3.6.0. It is maintained for bug fixes and low-risk additions, and VERSIONING.md says it will receive security fixes for at least six months after 4.0.0 is released. New features land on 4.x.
Choose v3 for production workloads today, particularly if you need the TCP, Unix socket or gRPC transports, DPoP, or the 2024-11-05 and 2025-03-26 protocol revisions, none of which v4 serves. Choose the v4 alpha for new work that can tolerate API changes between prereleases, and report what is unergonomic or broken. The macro surface is intentionally source-compatible with v3 for the common case; see crates/turbomcp/MIGRATION.md in the repository.
v4 workspace
The v4 workspace publishes 13 crates, and the turbomcp facade re-exports what most users need.
- `turbomcp`: main SDK facade, prelude and examples - `turbomcp-macros`: #[server], #[tool], #[resource], #[prompt] - `turbomcp-core`: no_std foundation (errors, versions, JSON-RPC, wire codec) - `turbomcp-protocol`: neutral types, date-versioned wire shapes, version dispatch - `turbomcp-service`: the tower-shaped protocol seam, transport trait, stdio transport - `turbomcp-server`: handler registry, dispatcher, ServerBuilder, graceful shutdown - `turbomcp-client`: typed client with version negotiation - `turbomcp-transport-http`: Streamable HTTP (server and client) and WebSocket - `turbomcp-auth`: OAuth 2.1 resource-server auth - `turbomcp-telemetry`: OpenTelemetry tracing - `turbomcp-ext-tasks`: Tasks extension - `turbomcp-proxy`: embeddable gateway (on main, not yet in a release) - `turbomcp-cli`: the turbomcp command (on main, not yet in a release)
The roadmap says package boundaries must be settled before 4.0.0, so the crate set may change.
Latest posts
The release notes for each alpha are on the Epistates blog: the v4 announcement (alpha.1), the 2026-07-28 wire and client conformance work (alphas 2 and 3), and the definitive status post for alpha.5.
Working with Epistates
Epistates offers enterprise support and custom MCP server development built on TurboMCP. Use the contact page to discuss your requirements.
Common questions
What is the latest version of TurboMCP?
The latest generation is v4, currently 4.0.0-alpha.5 (released 2026-09-13). It is a prerelease for community testing, and APIs may change before 4.0.0. The latest stable release is v3, currently 3.6.0.
Should I use v3 or v4?
Use v3 for production today. It is the stable line and is maintained for bug fixes and low-risk additions. Use the v4 alpha for new work that can tolerate API changes between prereleases, and report issues. A v4 prerelease may break API against the prerelease before it.
How long will v3 be supported?
VERSIONING.md says 3.x is maintained for bug fixes and low-risk additions, and will get security fixes for at least six months after 4.0.0 is released. New features land on 4.x.
When will 4.0.0 stable ship?
There is no date. The roadmap says stable requires the security and lifecycle regressions to stay green, reproducible performance measurements, public API review and deployment feedback. Passing conformance alone is not treated as sufficient.
Which MCP protocol revisions does v4 support?
2025-06-18, 2025-11-25 and 2026-07-28, from one handler, each generated from its frozen upstream schema. It does not serve 2024-11-05 or 2025-03-26; for those the project points to the official Rust SDK, rmcp.
Which transports does v4 support?
stdio, Streamable HTTP and WebSocket. v3's TCP and Unix socket transports, gRPC and DPoP were not ported to v4.
How hard is migrating from v3 to v4?
The macro surface (#[server], #[tool], #[resource], #[prompt]) is intentionally source-compatible for the common case. Differences include McpError::invalid_params replacing invalid_request, a distinct context type per RPC, derived capabilities, and tower layers replacing McpMiddleware. See crates/turbomcp/MIGRATION.md in the repository.
How does TurboMCP relate to the official Rust SDK, rmcp?
rmcp is the official SDK and the project's reasonable default recommendation; TurboMCP is tested against it in both directions. The project does not claim performance superiority over any other SDK. Its distinguishing APIs are macro-derived capabilities, typed per-RPC contexts, composition, caller-specific visibility and tower middleware.
Is TurboMCP open source?
Yes, it is MIT licensed. Epistates also offers enterprise support and custom MCP server development; use the contact page.
Writing
Read more
TurboMCP v3.6.0: The Current Release of the Supported v3 Line
TurboMCP 3.6.0 fixes Client::connect_tcp, dropped TCP and Unix messages, three security gaps, and trims a default build from 199 to 175 crates. v3 stays the maintained line while v4 is in alpha.
TurboMCP v3.5.0: Spec-Correct Progress, Bidirectional WebSocket, and a Full Conformance Audit
TurboMCP 3.5.0 fixes progress reporting, opens completions, subscriptions and logging to macro servers, makes WebSocket bidirectional, and closes sixteen broken MUSTs found in a spec audit.
TurboMCP v3.4.0: Handler Errors, Structured Output, and Server Instructions Reach the Wire
TurboMCP 3.4.0 closes seven gaps where information a handler held was discarded before the client saw it: tool error kinds, structured error data, structuredContent, instructions, and prompt errors.
TurboMCP v4.0.0-alpha.5: Where v4 Stands Today
Alphas 4 and 5 harden security and lifecycle behavior after the v4 audit. This post also covers unreleased work on main, the remaining gaps to 4.0.0 stable, and how v3 and v4 are supported. v4 is alpha and APIs may change.
TurboMCP v3.2.0 and v3.3.0: Streamable HTTP Fixes, Valid Tool Schemas, and a Full Dependency Refresh
TurboMCP 3.2.0 fixes Streamable HTTP hangs, CRLF SSE parsing and a reconnect storm. 3.3.0 fixes #[tool] schemas that strict clients rejected and clears six RUSTSEC advisories.
TurboMCP v4.0.0-alpha.3: The Client Gets Measured, and the 2026-07-28 Wire Gets Fixed
Alphas 2 and 3 re-generate the 2026-07-28 wire from the frozen schema, add flat composition, and fix client defects found by scoring it against the official conformance suite. v4 is still alpha and APIs may change.
Putting TurboMCP to work?
We help teams design, build and operate production systems on this stack.