Rust Docs MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides access to Rust documentation from docs.rs, allowing users to search for crates, retrieve documentation, type information, feature flags, version numbers, and access symbol definitions and source code.

  • Enables interaction with Rust language resources including documentation, type information, and source code, making Rust programming information accessible through structured API calls.

Rust ドキュメント MCP サーバー

docs.rsからRustドキュメントへのアクセスを提供するMCP(Model Context Protocol)サーバー。このサーバーにより、AIツールはドキュメント、型情報、機能フラグ、バージョン番号、シンボル定義/ソースコードを検索できます。

特徴

  • docs.rsでクレートを検索
  • 特定のクレートとバージョンのドキュメントを入手する
  • 型情報(構造体、列挙型、特性など)を取得します。
  • クレートの機能フラグを取得する
  • 利用可能なクレートのバージョンを取得する
  • 特定のアイテムのソースコードを取得する
  • 箱の中のシンボルを探す

インストール

このプロジェクトは開発に Bun を使用していますが、構築したサーバーは Node.js でも実行できます。

# Clone the repository git clone https://github.com/yourusername/rust-docs-mcp-server.git cd rust-docs-mcp-server # Install dependencies bun install

建物

# Build the server bun run build

これにより、コンパイルされた JavaScript ファイルを含むビルド ディレクトリが作成されます。

ランニング

# Run the development server bun run dev # Or run the built server bun run start

MCPクライアントでの使用

このサーバーはモデルコンテキストプロトコル(MCP)を実装しており、あらゆるMCPクライアントで使用できます。MCPクライアントで使用するには、クライアントがこのサーバーに接続するように設定する必要があります。

利用可能なツール

サーバーは次のツールを提供します。

  • search_crates : docs.rs でクレートを検索
  • get_crate_documentation : 特定のクレートに関するドキュメントを取得する
  • get_type_info : 特定のアイテムの型情報を取得する
  • get_feature_flags : クレートの機能フラグを取得する
  • get_crate_versions : クレートに利用可能なバージョンを取得する
  • get_source_code : 特定のアイテムのソースコードを取得する
  • search_symbols : クレート内のシンボルを検索

テスト

# Run tests bun test

ライセンス

マサチューセッツ工科大学

-
security - not tested
F
license - not found
-
quality - not tested

AI ツールに docs.rs からの Rust ドキュメントへのアクセスを提供し、クレート、ドキュメント、型情報、機能フラグ、バージョン情報、ソース コードの検索を可能にする MCP サーバー。

  1. Features
    1. Installation
      1. Building
        1. Running
          1. Usage with MCP Clients
            1. Available Tools
          2. Testing
            1. License
              ID: 4kl3b33u2z