Skip to main content
Glama
laptou

Rust Docs MCP Server

by laptou

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

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

特徴

  • docs.rsでクレートを検索

  • 特定のクレートとバージョンのドキュメントを入手する

  • 型情報(構造体、列挙型、特性など)を取得します。

  • クレートの機能フラグを取得する

  • 利用可能なクレートのバージョンを取得する

  • 特定のアイテムのソースコードを取得する

  • 箱の中のシンボルを探す

Related MCP server: MCP Rust Docs Server

インストール

このプロジェクトは開発に 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

ライセンス

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

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    An MCP server that enables searching for Rust crates and their documentation from docs.rs, allowing AI agents to find required crates and access the latest documentation.
    4
    76 npm
    38
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Docs.rs MCP server that enables AI models to deeply access Rust crate documentation, including searching crates, viewing API definitions, feature flags, and code examples, all within the editor.
    8 npm
    2
    -