// devtools · modelcontextprotocol/rust-sdk

rust-sdk

rust-sdk es un proyecto de herramientas de desarrollo de código abierto de modelcontextprotocol (modelcontextprotocol/rust-sdk en GitHub). Tiene 3.990 estrellas en GitHub y 653 bifurcaciones, se publica bajo la licencia NOASSERTION y se actualizó por última vez en GitHub el 6 de octubre de 2026.

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

★ 4,0k estrellas⑂ 653 bifurcacionesNOASSERTIONactualizado oct 2026
▦ visual: el README de este proyecto no incluye ninguna captura incrustable,
así que aquí va un marcador. La guía de abajo está completa de todos modos.
// datos del proyecto

Datos del proyecto

Estrellas en GitHub
3.990
Bifurcaciones
653
Licencia
NOASSERTION
Última actualización en GitHub
6 de octubre de 2026
Tipo de ficha
Guía de instalación completa
Sitio oficial
Official site
// cómo funciona

Cómo funciona

  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.

// características

Por qué gusta tanto

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
// ejecútalo

Ejecútalo tú mismo

  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
// casos de uso

Qué puedes crear

Advertisement
// preguntas frecuentes

Preguntas frecuentes

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.

// sigue explorando

Herramientas similares

Herramientas de desarrollo

csharp-sdk

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

★ 4,6k estrellasApache-2.0
Ver la guía →
Herramientas de desarrollo

java-sdk

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

★ 3,7k estrellasMIT
Ver la guía →
Herramientas de desarrollo

fastapi_mcp

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

★ 12,0k estrellasMIT
Ver la guía →
Herramientas de desarrollo

ag-ui

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

★ 16,4k estrellasMIT
Ver la guía →
Herramientas de desarrollo

unitree_sdk2

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

★ 1,4k estrellasBSD-3-Clause
Ver la guía →
Herramientas de desarrollo

ai

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

★ 27,2k estrellasNOASSERTION
Ver la guía →
// alternativas

Alternativas en Herramientas de desarrollo

Los demás proyectos de Herramientas de desarrollo con más estrellas del catálogo de LibreAI: la lista realista de alternativas si rust-sdk no es lo que buscas.

// más en devtools

Más en Herramientas de desarrollo

Proyectos de Herramientas de desarrollo cercanos en el catálogo, los más próximos en estrellas a rust-sdk: sigue explorando a ambos lados.

Consigue rust-sdk

Gratis y abierto: consigue el código fuente, dale una estrella al repositorio y empieza a crear.