// devtools · modelcontextprotocol/rust-sdk

rust-sdk

rust-sdk ist ein Open-Source-Projekt aus der Kategorie Entwickler-Tools von modelcontextprotocol (modelcontextprotocol/rust-sdk auf GitHub). Es hat 3.990 Sterne auf GitHub und 653 Forks, wird unter der Lizenz NOASSERTION veröffentlicht und wurde zuletzt am 6. Oktober 2026 auf GitHub aktualisiert.

rmcp: the official Rust SDK for the Model Context Protocol — tokio-based servers and clients

★ 4,0 Tsd. Sterne⑂ 653 ForksNOASSERTIONaktualisiert Okt 2026
▦ Visual — das README dieses Projekts enthält keinen einbettbaren Screenshot,
darum hier ein Platzhalter. Die Anleitung unten ist trotzdem vollständig.
// projektdaten

Projektdaten

GitHub-Sterne
3.990
Forks
653
Lizenz
NOASSERTION
Zuletzt auf GitHub aktualisiert
6. Oktober 2026
Eintragstyp
Vollständige Installationsanleitung
Offizielle Website
Official site
// so funktioniert es

So funktioniert es

  1. Start a Rust project

    Create a new cargo project (or use one of the repo's examples) with tokio.

  2. Add rmcp

    Add the crate with the server (and transport) features you need.

  3. Define tools with macros

    Annotate functions with #[tool] and wire them into a tool router and handler.

  4. Serve and connect

    Run the server over stdio or streamable HTTP and connect an MCP client to call your first tool.

// funktionen

Warum es so beliebt ist

Full protocol coverage

Tools, resources, prompts, sampling, elicitation, roots, logging, completions, subscriptions, tasks, caching, and pagination.

Proc-macro ergonomics

#[tool], #[tool_router], and #[tool_handler] generate the protocol boilerplate from annotated Rust functions.

Multiple transports

stdio and streamable HTTP transports for local and remote servers.

OAuth support

Authentication support for remote MCP deployments.

tokio-native async

Built on tokio with serde and schemars (JSON Schema 2020-12) for type-safe schemas.

Crates.io and dev channels

Use the released crate, or track the GitHub main branch for the latest protocol work.

Advertisement
// selbst ausführen

Führe es selbst aus

  1. Clone the repository

    Clone the SDK repo and enter its directory to explore the examples.

    git clone https://github.com/modelcontextprotocol/rust-sdk.git
    cd rust-sdk
  2. Add rmcp to your project

    In your own cargo project, add the crate with the server feature.

    cargo add rmcp --features server
  3. Build a first server

    Follow the README's counter/calculator example to define tools with #[tool], serve over stdio, and connect an MCP client to call them.

    # see the examples in the README for the exact server code
// anwendungsfälle

Was du damit bauen kannst

Advertisement
// häufige fragen

Häufige Fragen

Who maintains the Rust MCP SDK?

The Model Context Protocol organization maintains it as the official Rust SDK (crate name rmcp).

Is it free?

It is open source on GitHub and crates.io; the license recorded in the input metadata is unasserted (NOASSERTION), so check the repository for current terms.

Does it need a paid API key?

No — it is a protocol library; model costs, if any, belong to the client application you connect.

How does it compare to the TypeScript MCP SDK?

Same protocol, different ecosystem: rmcp offers Rust performance and single-binary deployment with tokio and proc-macro ergonomics, instead of Node.js.

How do I get started?

Run `cargo add rmcp --features server` in a tokio project and follow the README's example server.

// weiter entdecken

Ähnliche Tools

Entwickler-Tools

csharp-sdk

The official C# SDK for the Model Context Protocol — build MCP servers and clients in .NET

★ 4,6 Tsd. SterneApache-2.0
Anleitung ansehen →
Entwickler-Tools

java-sdk

The official Java SDK for building Model Context Protocol servers and clients.

★ 3,7 Tsd. SterneMIT
Anleitung ansehen →
Entwickler-Tools

fastapi_mcp

Expose your FastAPI endpoints as Model Context Protocol tools - with authentication - in a few lines of code.

★ 12,0 Tsd. SterneMIT
Anleitung ansehen →
Entwickler-Tools

ag-ui

Open, event-based protocol that connects AI agents to user-facing apps with streaming and shared state.

★ 16,4 Tsd. SterneMIT
Anleitung ansehen →
Entwickler-Tools

unitree_sdk2

Unitree's official C++ SDK v2 for programming its robots, with CMake examples and installable library.

★ 1,4 Tsd. SterneBSD-3-Clause
Anleitung ansehen →
Entwickler-Tools

ai

Vercel's AI SDK: the TypeScript toolkit for building AI apps and agents with any model provider

★ 27,2 Tsd. SterneNOASSERTION
Anleitung ansehen →
// alternativen

Alternativen im Bereich Entwickler-Tools

Die anderen Projekte der Kategorie Entwickler-Tools mit den meisten Sternen im LibreAI-Katalog — die realistische Auswahl, falls rust-sdk nicht das Richtige ist.

// mehr in devtools

Mehr in Entwickler-Tools

Verwandte Projekte der Kategorie Entwickler-Tools im Katalog, die rust-sdk bei den Sternen am nächsten stehen — zum Weiterstöbern auf beiden Seiten.

Hol dir rust-sdk

Kostenlos und offen — hol dir den Quellcode, gib dem Repository einen Stern und leg los.