rust-mcp-server

An MCP (Model Context Protocol) server for Rust codebases that exposes tools to parse/check Rust files, index workspaces into analysis graphs, navigate to definitions/references, detect code smells, and provide refactoring suggestions. It communicates via JSON-RPC 2.0 over stdio (e.g., run as a subprocess in MCP clients), with Docker-based deployment described in the README.

Evaluated Apr 04, 2026 (16d ago)
Repo ↗ Ai Ml mcp rust code-analysis ast static-analysis code-navigation refactoring json-rpc stdio
⚙ Agent Friendliness
68
/ 100
Can an agent use this?
🔒 Security
43
/ 100
Is it safe for agents?
⚡ Reliability
20
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
78
Documentation
82
Error Messages
--
Auth Simplicity
100
Rate Limits
5

🔒 Security

TLS Enforcement
100
Auth Strength
5
Scope Granularity
0
Dep. Hygiene
40
Secret Handling
80

Transport is described as stdio inside containers (no network API, no TLS discussion needed). No authentication/authorization or scope model is described, so any access control is left entirely to how the process/container is managed. The README does not mention secret management; it only notes RUST_LOG. Dependency hygiene cannot be fully assessed from the provided content.

⚡ Reliability

Uptime/SLA
0
Version Stability
45
Breaking Changes
0
Error Recovery
35
AF Security Reliability

Best When

Used locally or in a controlled container environment where an MCP-capable AI coding assistant can spawn the server over stdio and analyze the codebase on-demand.

Avoid When

Avoid exposing it over the network (it is described as stdio-based) or using it on sensitive code without considering what files are accessible via mounted volumes; avoid assuming it enforces authorization or strong access boundaries since none are described.

Use Cases

  • AI-assisted navigation of a Rust repository (goto definitions, find references)
  • Automated static analysis via AST parsing (syntax checks, complexity/size heuristics)
  • Workspace indexing to build call/type/module graphs for downstream reasoning
  • Code smell detection (unused/private functions, long/high-complexity functions, large structs/enums)
  • Refactoring suggestion generation for Rust code review workflows

Not For

  • Production security scanning or compliance-grade auditing
  • Running on untrusted or malicious code without sandboxing expectations
  • Providing exact compiler-verified results for all semantics (it appears heuristic/AST-based, not a full compiler pipeline)
  • Use cases requiring authenticated multi-tenant access control and network-exposed APIs

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
No
Webhooks
No

Authentication

OAuth: No Scopes: No

No authentication mechanism is described. The server is designed for stdio communication (typically local/container subprocess usage).

Pricing

Free tier: No
Requires CC: No

Pricing is not described in the provided README content (appears to be an open-source style repository with Docker image reference).

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • Communication is via stdio JSON-RPC 2.0; agents must launch it as a subprocess (e.g., via Docker run) rather than calling an HTTP endpoint.
  • Tools expect absolute paths to files/directories (e.g., check_file uses path, index_workspace uses root); incorrect paths will likely error.
  • Indexing may be compute-heavy for large workspaces; there is no documented rate/throughput guidance.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for rust-mcp-server.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-04-04.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered