-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Jeffrie Budde edited this page Nov 25, 2025
·
2 revisions
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.
- 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
- 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
- Getting Started — install, first tool/resource/prompt, run over STDIO
- Tools, Resources, Prompts — macro usage, schemas, return types
- Transports Guide — STDIO, SSE, WebSocket, connectionId tips
- Middleware Cookbook — built-ins and custom middleware patterns
- Subscriptions & Notifications — subscribe/unsubscribe + server updates
- Examples — walkthroughs of every example project
- CLI docs:
fastrmcp-cli/README.mdin the repo - Main README:
README.mdin the repo