Skip to main content
Version: 1.1.0 (latest)

HTTP Backend Overview

rust-mcp-sdk provides native integrations for two popular Rust HTTP frameworks:

BackendCrateFunction
Axumrust-mcp-axumcreate_axum_server()
Actix-webrust-mcp-actixcreate_actix_server()

Both backends support:

  • Streamable HTTP transport
  • SSE (backward-compatible)
  • Multi-client concurrency
  • Built-in DNS rebinding protection
  • Session management
  • Health check endpoints
  • Event stores (resumability)
  • Task stores
  • OAuth authentication

BYO-Serverโ€‹

Both backends offer a "Bring Your Own Server" mode - mount MCP routes onto your existing app router:

BackendFunction
Axummcp_routes(state, &mount_opts, http_handler)
Actixmcp_scope(state, http_handler, &mount_opts)