Skip to main content
Version: 1.1.0

Examples Overview

Ready-to-run examples live in several crates:

Running Examplesโ€‹

# Clone the repo
git clone https://github.com/rust-mcp-stack/rust-mcp-sdk.git
cd rust-mcp-sdk

# Run a specific example (the repo root is a virtual workspace, so pass -p)
cargo run --example hello-world-mcp-server-stdio -p rust-mcp-sdk

Categoriesโ€‹

  • Servers - Stdio, Streamable HTTP, Core variants, health checks (rust-mcp-sdk)
  • Clients - Stdio, SSE, Streamable HTTP, Core variants (rust-mcp-sdk)
  • Auth - OAuth with DCR (rust-mcp-sdk); Keycloak, WorkOS, Scalekit (rust-mcp-extra)
  • BYO-Server - Embed MCP in existing Axum (rust-mcp-axum) or Actix (rust-mcp-actix) apps