// devtools · modelcontextprotocol/rust-sdk

rust-sdk

rust-sdkは、modelcontextprotocolが公開しているオープンソースの開発ツールプロジェクトです(GitHub: modelcontextprotocol/rust-sdk)。GitHubスターは3,990、フォークは653で、NOASSERTIONライセンスの下で公開されています。GitHubでの最終更新は2026年10月6日です。

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

★ 4.0k スター⑂ 653 フォークNOASSERTION更新 2026年10月
▦ ビジュアル — このプロジェクトのREADMEには埋め込み可能なスクリーンショットがないため、
ここではプレースホルダーを表示しています。下のガイド自体は完全な内容です。
// プロジェクトの基本情報

プロジェクト基本情報

GitHubスター
3,990
フォーク
653
ライセンス
NOASSERTION
GitHubでの最終更新
2026年10月6日
カテゴリ
開発ツール
掲載タイプ
完全なインストールガイド
公式サイト
Official site
// 仕組み

仕組み

  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.

// 機能

選ばれる理由

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
// 自分で実行

自分で実行してみる

  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
// 活用例

作れるもの

Advertisement
// よくある質問

よくある質問

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.

// さらに探索

似ているツール

開発ツール

csharp-sdk

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

★ 4.6k スターApache-2.0
ガイドを見る →
開発ツール

java-sdk

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

★ 3.7k スターMIT
ガイドを見る →
開発ツール

fastapi_mcp

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

★ 12.0k スターMIT
ガイドを見る →
開発ツール

ag-ui

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

★ 16.4k スターMIT
ガイドを見る →
開発ツール

unitree_sdk2

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

★ 1.4k スターBSD-3-Clause
ガイドを見る →
開発ツール

ai

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

★ 27.2k スターNOASSERTION
ガイドを見る →
// 代替候補

代替候補: 開発ツール

LibreAIカタログに掲載された開発ツールプロジェクトの中で最もスターの多いもの — rust-sdkが合わなかった場合に検討したい、現実的な候補リストです。

// さらに見る devtools

さらに見る: 開発ツール

カタログの中でrust-sdkとスター数が近い開発ツールプロジェクト — 前後の棚もそのまま見て回れます。

rust-sdkを入手する

無料でオープン — ソースコードを入手して、リポジトリにスターを付け、作り始めましょう。