rust_analyzer_completion
Get code completion suggestions at a specific position.
How to use it
Project documentation lists rust_analyzer_completion for the Rust Analyzer MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Rust Analyzer MCP
cargo install rust-analyzerOther tools in Rust Analyzer MCP (10)
Get available code actions (quick fixes, refactorings) for a range.
Find the definition of a symbol at a specific position.
Get diagnostics (errors, warnings, hints) for a specific file.
Format a Rust file using rust-analyzer's formatter. Returns an array of text edits to apply.
Get hover information (documentation, type info) for a symbol at a specific position.
Find all references to a symbol at a specific position.
Rename the symbol at a position, everywhere it is used in the workspace.
Change the workspace root directory.
Get all symbols (functions, structs, enums, etc.) in a file.
Get all diagnostics across the entire workspace.