zeenix/rust-analyzer-mcp
A Model Context Protocol (MCP) server that provides integration with rust-analyzer
6b0e839d0601rust-analyzer-mcp0.4.0 in Cargo.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
Prompt Integrity, Secrets & Credentials and Behavior Transparency are not analysed and have no number.
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- Prompt Integrity and Secrets & Credentials: no tool description could be read from the code
- Behavior Transparency: no tool description could be read to compare with the code
- In 19 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
Top risks in plain words
- MEDIUM11 production dependencies have known vulnerabilities (worst: medium).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Update its vulnerable packages
Use
anyhow1.0.103 or later,bytes1.11.1 or later,crossbeam-epoch0.9.20 or later,h20.4.16 or later and 5 more. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 1 tool. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
(name computed at run time)No tool was seen to: start other programs on the machine; connect to the internet or other hosts; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files1 tool · (name computed at run time)
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (1: 1 tool)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
(name computed at run time)tool Filesoutside text
No description.
Text the model reads (1)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
(name computed at run time) tool
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 1 tool handler traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 1 tool handler traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 1 tool handler traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 1 tool handler traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 1 tool handler traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 1 capability; 1 more call code the scanner could not follow, where it may happen
- Tools that touch files1 of 1 capability touch files
- Tools that call the networkNot seen in the traced code of 1 capability; 1 more call code the scanner could not follow, where it may happen
Where the code is: 1 handler in 1 file at commit 6b0e839d0601
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityNot checked: no tool description could be read from the code
- Dependency manifests4 manifests: Cargo.toml, test-project/Cargo.toml, test-project-diagnostics/Cargo.toml, test-support/Cargo.toml
- Lockfiles checked against OSV3 files resolved and checked against the OSV database; 1 not resolved: test-support/Cargo.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies MEDIUM11 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionNo MCP SDK declared in a manifest
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkNot checked: no tool description could be read from the code
- Tools that read credentialsNot seen in the traced code of 1 capability; 1 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionNot checked: no tool description could be read to compare with the code
- Tool descriptions presentEvery tool has a description the model and the user can read (1 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (11 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
bytescrates.io 1.10.1 MEDIUM 2 advisories 1.11.1
- MEDIUMGHSA-434x-w66g-qw3r CVE-2026-25541 RUSTSEC-2026-0007bytes has integer overflow in BytesMut::reserve
- MEDIUMRUSTSEC-2026-0007 CVE-2026-25541 GHSA-434x-w66g-qw3rInteger overflow in `BytesMut::reserve`
randcrates.io 0.9.2 MEDIUM 2 advisories 0.8.60.9.30.10.1
- MEDIUMRUSTSEC-2026-0097 GHSA-cq8v-f236-94qcRand is unsound with a custom logger using `rand::rng()`
- LOWGHSA-cq8v-f236-94qc RUSTSEC-2026-0097Rand is unsound with a custom logger using rand::rng()
tracing-subscribercrates.io 0.3.19 MEDIUM 2 advisories 0.3.20
- MEDIUMRUSTSEC-2025-0055 CVE-2025-58160 GHSA-xwfj-jgwm-7wp5Logging user input may result in poisoning logs with ANSI escape sequences
- LOWGHSA-xwfj-jgwm-7wp5 CVE-2025-58160 RUSTSEC-2025-0055 Tracing logging user input may result in poisoning logs with ANSI escape sequences
anyhowcrates.io 1.0.99 MEDIUM 1 advisory 1.0.103
- MEDIUMRUSTSEC-2026-0190Unsoundness in `Error::downcast_mut()`
crossbeam-epochcrates.io 0.9.18 MEDIUM 1 advisory 0.9.20
- MEDIUMRUSTSEC-2026-0204Invalid pointer dereference in `fmt::Pointer` impl for `Atomic` and `Shared` when the underlying pointer is invalid
h2crates.io 0.4.12 MEDIUM 1 advisory 0.4.16
- MEDIUMRUSTSEC-2026-0258 GHSA-q83h-524g-xf6hh2 unbounded empty DATA frames
humantimecrates.io 2.2.0 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0542humantime is unmaintained
pin-utilscrates.io 0.1.0 MEDIUM 1 advisory no fix yet
- MEDIUMRUSTSEC-2026-0441`pin-utils` is unmaintained
rustixcrates.io 1.0.8 MEDIUM 1 advisory 1.1.6
- MEDIUMRUSTSEC-2026-0486 GHSA-jh2m-fhpj-3vr7xattr functions mark unwritten bytes as initialized when given a zero-length buffer
tokiocrates.io 1.47.1 MEDIUM 1 advisory 1.51.61.53.3
- MEDIUMRUSTSEC-2026-0386`AsyncFd::new` and related constructors violate I/O safety
urlcrates.io 2.5.7 MEDIUM 1 advisory 2.5.9
- MEDIUMRUSTSEC-2026-0592 GHSA-hrj5-67jp-wqp9Stack overflow in `Url::origin()` on nested `blob:` URLs
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-10-30 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 1 catalog (github_search) |
|---|---|
| License | MIT |
| Created | 2025-08-24 |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.