cursor-rust-tools
カーソルRustツール
Cursor の LLM が Rust Analyzer、Crate Docs、Cargo Commands にアクセスできるようにするMCPサーバー。
構成用の UI が含まれています。

何をするのか
現在、様々なAIエージェントは、AIがLSPからRustの型情報にアクセスする機能を提供していません。LLMは型を見るのではなく、潜在的な型について推論する必要があるため、これは大きな障害となります。
さらに、依存関係(例えばtokio )に関する情報は、学習に使用されたものだけに限られており、これは古く、異なるバージョンのものである可能性があります。これは様々な問題を引き起こす可能性があります。
Cursor Rust Toolsこれらをモデルコンテキストプロトコル ( MCP ) 経由で利用できるようにします。
crateまたはcrate内の特定のシンボル(例:tokioまたはtokio::spawn)のドキュメントを取得します。ファイル内の特定のシンボルのホバー情報(タイプ、説明)を取得します。
ファイル内の特定のシンボルのすべての参照のリストを取得します
ファイル内のシンボルの実装を取得します(実装を含むファイル全体を取得します)
プロジェクトのファイル内の名前だけでタイプを検索し、ホバー情報を返します
cargo testの出力を取得するcargo checkの出力を取得する

Related MCP server: MCP Rust Docs Server
仕組み
LSP機能src/lspでは、エディタ内で実行されているものと同様に、コードベースをインデックスする新しいRust Analyzerを起動します。Rust Analyzerは単一のユーザーによって使用されるため、エディタ内で実行されているものをクエリすることはできません(例えば、 open documentアクションには、正しい順序でclose document必要があるなど)。
ドキュメントについては、 cargo docsを実行し、HTML ドキュメントをローカルで Markdown に解析します。この情報はプロジェクトルートの.docs-cacheフォルダに保存されます。
インストール
cargo install --git https://github.com/terhechte/cursor-rust-toolsUIで実行
cursor-rust-toolsこれにより、プロジェクトを追加したり、 mcp.jsonをインストールしたり、アクティビティを確認したりできる UI が表示されます。
UIなしで実行
あるいは、プロジェクトで~/.cursor-rust-tools設定したら、次のように実行することもできます。
cursor-rust-tools --no-ui構成
UI を使用して設定を作成する代わりに、 ~/.cursor-rust-tools自分で設定することもできます。
[[projects]]
root = "/Users/terhechte/Developer/Rust/example1"
ignore_crates = []
[[projects]]
root = "/Users/terhechte/Developer/Rust/example2"
ignore_crates = []ignore_crates 、ドキュメント用にインデックス化したくないクレート依存関係名のリストです。例えば、サイズが大きすぎる場合などです。
カーソルの設定
アプリが起動したら、Cursor を設定してアプリを利用できるようになります。これには複数の手順が必要です。
プロジェクトに
project-dir/.cursor/mcp.jsonを追加してください。CursorCursor Rust ToolsUI には、この操作を行うためのボタンがあります。UI なしで実行すると、ターミナルにmcp.json内容が表示されます。ファイルを保存するとすぐに、Cursor は新しい MCP サーバーが追加されたことを検出し、それを有効にするように要求します (右下のダイアログで)。
カーソル設定(
MCPの下)をチェックして、どこで正しく動作しているかを確認できます。テストするには、現在の
ChatでAgent Modeが選択されていることを確認してください。その後、cargo_checkツールなどの新しいツールのいずれかを使用するように指示してください。LLMにこれらのツールを可能な限り優先的に使用するよう指示するカーソルルールを追加すると良いかもしれません。まだ実験中です。

すべてのmcp.jsonの内容は同じです。Cursor Rust Toolsはファイルパスから正しいプロジェクトを判断します。
オープンToDo
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server that provides AI tools with access to Rust documentation from docs.rs, enabling search for crates, documentation, type information, feature flags, version information, and source code.31
- Alicense-qualityDmaintenanceA Model Context Protocol (MCP) server for fetching Rust crate documentation from docs.rs using the rustdoc JSON API.13Apache 2.0
- Flicense-qualityDmaintenanceA lightning-fast, language-agnostic code analysis MCP (Model Context Protocol) server built in Rust9
- Flicense-qualityDmaintenanceA 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.92
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
MCP server for accessing curated awesome list documentation
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/terhechte/cursor-rust-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server