Feedback

Cursor Rust Tools MCP Server

@terhechte Claim

Basic information

Runtime
rust
Category
License
Not specified
Transports
stdio
Author
terhechte
Submitted by
Community
Quality
35
Stars
83

About Cursor Rust Tools MCP Server

A MCP server to allow the LLM in Cursor to access Rust Analyzer, Crate Docs and Cargo Commands.

Cursor Rust Tools is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by terhechte. Supported transport: stdio. Runtime: rust. The repository has 83 GitHub stars. Source code is hosted on github.com. Related topics: cursor, developer-tools, llm, lsp, mcp.

Cursor Rust Tools MCP Server config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Cursor Rust Tools MCP Server tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Cursor Rust Tools?

Cursor Rust Tools is an MCP server that enables AI agents in Cursor to access Rust type information from the Rust Analyzer LSP, retrieve crate documentation, and run Cargo commands. It includes a UI for configuration and is aimed at Rust developers using Cursor’s AI features.

How to use Cursor Rust Tools?

Install via cargo install --git https://github.com/terhechte/cursor-rust-tools. Run with UI using cursor-rust-tools or headlessly with cursor-rust-tools --no-ui. Configure projects in ~/.cursor-rust-tools and add the generated mcp.json to your project’s .cursor/ directory to connect it with Cursor.

Key features of Cursor Rust Tools

  • Get documentation for a crate or a specific symbol (e.g., tokio::spawn)
  • Get hover information (type, description) for a symbol in a file
  • List all references for a symbol in a file
  • Retrieve the implementation file for a given symbol
  • Find a type by name in a project and return its hover information
  • Run cargo test and cargo check from the AI

Cursor Rust Tools tools

How does it retrieve crate documentation?

It runs cargo docs locally, then parses the generated HTML documentation into markdown. This information is cached in the .docs-cache folder in the project root.

How does it handle LSP queries without conflicting with the editor?

Cursor Rust Tools spins up its own Rust Analyzer instance, separate from the one in the editor. This avoids conflicts because Rust Analyzer is designed for a single consumer (e.g., open/close document ordering).

Can I exclude certain crate dependencies from documentation indexing?

Yes. In the ~/.cursor-rust-tools configuration, you can add an ignore_crates list with crate names you don’t want indexed (e.g., if they are too large).

How do I configure Cursor to use this MCP server?

The tool generates a mcp.json file (via the UI or printed to terminal). Save it in your project’s .cursor/ directory. When Cursor detects the new file, it will prompt you to enable the MCP server. You can verify it under Cursor’s MCP settings.

What are the current limitations of Cursor Rust Tools?

Open todos include: creating a Zed extension, proper shutdown without errors, improved project removal in the UI, exposing more LSP commands, and allowing Grit operations. Only features explicitly listed in the README are supported.

Use cases of Cursor Rust Tools

  • AI-assisted coding with accurate, up-to-date Rust type information
  • Fetching current crate documentation without relying on outdated training data
  • Debugging and refactoring by examining symbol references and implementations
  • Automating code verification by triggering cargo check from chat

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬