Back to Apps

Rust MCP Server
by dexwritescode
Deep rust-analyzer integration for AI tools to perform idiomatic Rust code analysis, refactoring, and generation.
0 stars
Works in:claude
Exposes:Tools
What it does
This server provides a comprehensive bridge between AI assistants and rust-analyzer, enabling LLMs to interact with Rust projects with full semantic awareness. Instead of relying on fragile string manipulation, it uses the Language Server Protocol (LSP) to perform precise code navigation, type analysis, and refactoring.
Tools
find_definition: Navigate directly to symbol definitions.find_references: Locate all usages of a specific symbol.get_diagnostics: Retrieve compiler errors and warnings with suggested fixes.workspace_symbols: Search for symbols across the entire project.generate_struct: Create structs with appropriate derives and constructors.generate_enum: Implement enums with defined variants.rename_symbol: Perform scope-aware symbol renaming.extract_function: Refactor code blocks into standalone functions.apply_clippy_suggestions: Automatically apply rust-clippy fixes.analyze_manifest: Parse and analyze Cargo.toml dependency trees.
Installation
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"rust-analyzer": {
"command": "/path/to/rust-mcp/target/release/rustmcp",
"args": [],
"env": {
"RUST_ANALYZER_PATH": "~/.cargo/bin/rust-analyzer"
}
}
}
}
Supported hosts
- Claude Desktop
- Roo
Quick install
cargo build --release && /path/to/rust-mcp/target/release/rustmcpInformation
- Pricing
- free
- Published
- 7/13/2026
- stars
- 0
Categories
Choose your AI client and follow the steps below.
Claude Desktop
{
"mcpServers": {
"rust-analyzer": {
"command": "/path/to/rust-mcp/target/release/rustmcp",
"args": [],
"env": {
"RUST_ANALYZER_PATH": "~/.cargo/bin/rust-analyzer"
}
}
}
}





