Skip to content
Jeffrie Budde edited this page Nov 25, 2025 · 2 revisions

FastRMCP Wiki

FastRMCP is a Rust-first Model Context Protocol (MCP) framework inspired by Python’s fastmcp, with a type-safe, macro-driven API to build servers quickly.

Why FastRMCP

  • Rust-first ergonomics: fastrmcp::prelude::* + #[tool], #[resource], #[prompt] macros
  • Production-ready transports: STDIO, SSE, WebSocket (HTTP/1.1 + HTTP/2)
  • Batteries included: registry auto-registration, state, lifecycle hooks, middleware, subscriptions
  • Zero-cost abstractions: async Tokio runtime, serde-based schemas, compile-time checks
  • CLI scaffolding: fastrmcp new <name> with templates for stdio, SSE, WebSocket, middleware, subscriptions, complete

Key Features

  • Tools, resources (with URI templates), and prompts auto-registered via inventory
  • Context with logging, progress notifications, client/server metadata injection
  • State container for typed shared data
  • Built-in middleware (logging, auth, rate limit) + custom middleware trait
  • Resource subscriptions and server-driven notifications
  • Web transport helpers with connectionId handling for SSE/WS clients

Quick Links

Back to Home

Clone this wiki locally