Rust Analyzer LSP Claude Plugin
Back to directory
Rust Analyzer LSP logo

Rust Analyzer LSP

MCP Servers 31,116 installs Apr 22, 2026

Installs the rust-analyzer language server into Claude Code and connects your workspace to Rust's official analyzer. It reads Cargo.toml and source files, sends diagnostics and inlay hints, and updates results as you edit. You get hover type info, go-to-definition, find-references, and real-time autocomplete backed by actual crate metadata.

It runs code actions and assists like implement trait, generate method stubs, convert to async, and apply simple refactors such as rename and extract function. It shows borrow-checker-aware diagnostics and lifetime suggestions derived from analyzer checks. It also formats with rustfmt and exposes semantic tokens for precise highlighting.

The extension watches file changes and responds to Cargo updates so completions and imports stay accurate. It offers apply-and-test workflows: request a refactor, run cargo check or clippy, see updated diagnostics, and accept fixes without manual steps. It maps quick-fix suggestions to concrete edits you can preview before applying.

In practice, use it when you're iterating on a tricky lifetime or implementing a trait: you can jump to related types, accept a generated impl, run cargo check, and fix remaining diagnostics all inside Claude Code instead of switching to a terminal or another IDE. It saves frequent context switches and keeps edits and checks in one place.

Install

/plugin install rust-analyzer-lsp@claude-plugins-official

Tags

rust
lsp
rust-analyzer
borrow-checker
completions