Serverdex · build · Rust

Build an MCP server in Rust

The official Rust SDK, the exact install command, the API you start from — and the real Rust MCP servers in our index to copy. SDK facts read from the repository on 1 December 2026.
Official SDK
Tier 1
Model Context Protocol
Rust servers
789
in our index
Requires
—
see the SDK

1. Install the Rust SDK

package: rmcp
cargo add rmcp --features server

The official SDK repository: modelcontextprotocol/rust-sdk.

2. The shape of a minimal server

start from this API
use 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
  1. Dbx

    t8y2
    A

    Production-ready

    Query databases from AI agents using connections configured in DBX.

    Registry
    31k 6d agoApache-2.0
  2. screenpipe

    screenpipe
    A

    Production-ready

    Search your local screen recordings, audio transcripts, and computer activity from screenpipe.

    Registry
    23k 6d agoOther
  3. XERJ

    xerj-org
    A

    Production-ready

    The search engine for AI agents: cited answers from your local code, docs, specs and logs.

    Registry
    19k 8d agoApache-2.0
  4. Windmill

    windmill-labs
    A

    Production-ready

    Run Windmill scripts and flows and manage jobs, schedules, resources and variables.

    Registry
    19k 9d agoOther
  5. OmniGet

    tonhowtf
    A

    Production-ready

    Desktop toolbox for coding agents: downloads, files, pages, ports, chats and cleanup, in OmniGet

    Registry
    15k 6d agoGPL-3.0
  6. rust-anything

    erkamyaman
    A

    Production-ready

    Rewrite an app in Rust one piece at a time, checked against the original's recorded behavior.

    Registry
    11k 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.