Cursor Rust Tools
A MCP server to allow the LLM in Cursor to access Rust Analyzer, Crate Docs and Cargo Commands.
What is Cursor Rust Tools?
Cursor Rust Tools is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server to allow the llm in cursor to access rust analyzer, crate docs and cargo commands.
A MCP server to allow the LLM in Cursor to access Rust Analyzer, Crate Docs and Cargo Commands.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A MCP server to allow the LLM in Cursor to access Rust Analy
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx cursor-rust-toolsConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Cursor Rust Tools
cursor-rust-tools is a Rust-based MCP server that gives the Cursor AI editor deep access to Rust Analyzer's language intelligence, crate documentation, and Cargo command output for your Rust projects. Rather than relying on the AI's training data for Rust crate APIs, it fetches live documentation, hover information, symbol references, and implementation details directly from the language server running against your actual code. It exposes tools for getting crate docs, checking types, running `cargo check` and `cargo test`, and navigating symbols — dramatically improving AI accuracy when working with Rust code.
Prerequisites
- Rust and Cargo installed (stable toolchain)
- Rust Analyzer installed and working in your Rust project
- Cursor editor with Agent Mode available
- Git (for installation from source)
Install cursor-rust-tools from source
Install the binary directly from the GitHub repository using cargo install. This compiles the tool and places it in your Cargo bin directory.
cargo install --git https://github.com/terhechte/cursor-rust-toolsRun cursor-rust-tools to configure your project
Run the tool with its UI to set up your Rust project. You will be prompted to enter the project root path. Settings are saved to `~/.cursor-rust-tools` in TOML format.
cursor-rust-toolsReview and edit the configuration file
The tool stores project settings in `~/.cursor-rust-tools`. You can add projects manually or exclude large crates from documentation indexing using `ignore_crates`.
# ~/.cursor-rust-tools
[[projects]]
root = "/path/to/your/rust/project"
ignore_crates = ["large_dep", "another_dep"]Add the MCP configuration to your Cursor project
Create or edit `.cursor/mcp.json` in your Rust project directory to point Cursor's MCP integration at cursor-rust-tools running in headless mode.
{
"mcpServers": {
"cursor-rust-tools": {
"command": "cursor-rust-tools",
"args": ["--no-ui"]
}
}
}Enable Agent Mode in Cursor and start working
Open Cursor Chat, enable Agent Mode, and ask about your Rust code. The server automatically selects the appropriate project based on the file path you're working in.
Cursor Rust Tools Examples
Client configuration
Cursor project-level MCP configuration to run cursor-rust-tools without the interactive UI.
{
"mcpServers": {
"cursor-rust-tools": {
"command": "cursor-rust-tools",
"args": ["--no-ui"]
}
}
}Prompts to try
Use these prompts in Cursor Agent Mode to leverage Rust Analyzer intelligence through the MCP server.
- "Run cargo check and show me any compilation errors"
- "Get the documentation for the serde_json crate's Value type"
- "What are all the references to the UserService struct in this project?"
- "Show me the implementation of the parse method in src/parser.rs"
- "Run cargo test and summarize the results"
- "Find the type of the variable on line 42 in src/main.rs"Troubleshooting Cursor Rust Tools
cursor-rust-tools cannot find the Rust Analyzer binary
Ensure rust-analyzer is installed and on your PATH. Install it via `rustup component add rust-analyzer` or via your editor's extension. The tool communicates with Rust Analyzer as a language server process.
Documentation indexing is very slow for large projects
Add large dependency crates to the `ignore_crates` array in `~/.cursor-rust-tools`. For example: `ignore_crates = ["tokio", "serde"]`. These crates will be excluded from documentation pre-indexing.
The MCP server reports no project found for a file
Make sure the project root is registered in `~/.cursor-rust-tools`. Run `cursor-rust-tools` without `--no-ui` to add it interactively, or manually add a `[[projects]]` entry with the correct `root` path.
Frequently Asked Questions about Cursor Rust Tools
What is Cursor Rust Tools?
Cursor Rust Tools is a Model Context Protocol (MCP) server that mcp server to allow the llm in cursor to access rust analyzer, crate docs and cargo commands. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Cursor Rust Tools?
Follow the installation instructions on the Cursor Rust Tools GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Cursor Rust Tools?
Cursor Rust Tools works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Cursor Rust Tools free to use?
Yes, Cursor Rust Tools is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Cursor Rust Tools Alternatives — Similar Developer Tools Servers
Looking for alternatives to Cursor Rust Tools? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Cursor Rust Tools in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Cursor Rust Tools?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.