Serverdex · build · Rust
Build an MCP server in Rust
1. Install the Rust SDK
package: rmcpcargo add rmcp --features serverThe official SDK repository: modelcontextprotocol/rust-sdk.
2. The shape of a minimal server
start from this APIuse rmcp::{ServiceExt, transport::stdio};
// Annotate your type with #[tool_router] and #[tool(...)] methods, then:
let service = Calculator.serve(stdio()).await?;
service.waiting().await?;This is the starting API, not a full program — the complete, always-current walkthrough is the official quickstart. Define your tools, then connect a transport (stdio for local, HTTP for remote). Read on 1 December 2026; confirm the current version in the quickstart.
3. Real Rust MCP servers to learn from
most-starred in our index · open source
ADbx
t8y2Production-ready
Query databases from AI agents using connections configured in DBX.
Registry31k 6d agoApache-2.0
Ascreenpipe
screenpipeProduction-ready
Search your local screen recordings, audio transcripts, and computer activity from screenpipe.
Registry23k 6d agoOther
AXERJ
xerj-orgProduction-ready
The search engine for AI agents: cited answers from your local code, docs, specs and logs.
Registry19k 8d agoApache-2.0
AWindmill
windmill-labsProduction-ready
Run Windmill scripts and flows and manage jobs, schedules, resources and variables.
Registry19k 9d agoOther
AOmniGet
tonhowtfProduction-ready
Desktop toolbox for coding agents: downloads, files, pages, ports, chats and cleanup, in OmniGet
Registry15k 6d agoGPL-3.0
Arust-anything
erkamyamanProduction-ready
Rewrite an app in Rust one piece at a time, checked against the original's recorded behavior.
Registry11k 3d agoApache-2.0
See all Rust MCP servers, or the best-maintained across every language.
4. Connect it, then get it found
Point a client at your server to try it — the client matrix shows which clients support what. When it works, list it on Serverdex: a free listing is a server page with a link back to us, in front of developers choosing MCP servers. Want it live now without the link? Priority Review ($9, one-time) does that.
Questions people ask
- What's the official way to build an MCP server in Rust?
- Use the official Rust SDK, rmcp. Install it (cargo add rmcp --features server), construct a server, register your tools, and connect a transport. The full, always-current walkthrough is the official quickstart; the snippet here shows the shape. Read from the SDK's repository on 1 December 2026.
- Is the Rust SDK production-ready?
- Tier 1 — passes 100% of the MCP conformance tests and implements every non-experimental feature.
- How do I test and connect my Rust server?
- Run it over stdio and point a client at it. Serverdex's client matrix shows which clients support what; most developers start with Claude Desktop or an IDE client. Once it answers, list it on Serverdex so others find it.