AGZ Rust MCP logo

AGZ Rust MCP

Offline Rust development tools for Cargo inspection, compiler checks, tests, execution, analysis, and source-safe refactoring.

Install AGZ Rust MCP

Run the project’s own setup commands, in order.

Setup steps from the project

AGZ Rust MCP installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    bash install.sh
    
  2. 2. Install
    cargo install agz-rust-mcp --locked
    
  3. 3. Start the server
    agz-rust-mcp --transport http --http-bind 127.0.0.1:8787 \
      --allow-root /absolute/path/to/project
    

Overview

AGZ Rust MCP connects MCP clients to Cargo and rustc for bounded Rust project inspection, diagnostics, testing, execution, and code analysis. It supports local stdio and loopback Streamable HTTP transports, with the project root controlling filesystem access. Tools can search and read bounded source excerpts, resolve exact-version crate documentation, query Rust Analyzer data, and create changes without writing directly to the workspace. Reach for it when an agent needs structured Rust development workflows across libraries, binaries, services, or Cargo workspaces.

Use cases

  • Inspect a Cargo workspace before making a change
  • Collect compiler and Clippy diagnostics for a package
  • Discover and run one fully qualified Rust test
  • Resolve an API from an exact crate version
  • Generate a verified refactor package without editing the workspace

Key features

  • Cargo workspace inspection and bounded source reading
  • Rust compiler, Clippy, test, and documentation checks
  • Exact test, binary, and example execution
  • Rust Analyzer navigation and API analysis
  • Exact-version crate documentation lookup
  • Write-free repair, rename, refactor, and change packages

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

15/15 checks healthy over the last 67d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit11d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How AGZ Rust MCP works

What AGZ Rust MCP does

AGZ Rust MCP exposes Rust development operations through MCP rather than requiring an agent to assemble shell commands. It works with ordinary Cargo projects and multi-package workspaces, including libraries, command-line applications, and services. The server can inspect manifests, lockfiles, targets, features, and dependencies without compiling; search and read numbered source excerpts; and collect fresh Cargo and rustc diagnostics.

Its core workflow covers test discovery, exact-name test execution, test compilation without execution, and running selected Cargo binaries or examples with literal arguments. Additional tools inspect rebuild behavior, scan Rust source for bounded findings, verify crates and exact versions, resolve version-matched documentation, and explain compiler or macro behavior.

Rust Analyzer-backed tools provide hover data, definitions, references, symbols, implementations, and bounded call hierarchies. API resolution can use analyzer evidence or type-check a candidate snippet in an isolated workspace copy. Rename and refactor operations produce verified edit packages instead of applying changes to the project. Repair, change, and work tools support revision-bound analysis and scratch-space changes while preserving the workspace.

How it works

The server communicates over either local stdio or Streamable HTTP. For stdio, an MCP client launches the installed executable with an authorized project directory. For HTTP, the executable listens on a loopback address and exposes an MCP endpoint. The configured working directory is the default authorized root; client-provided roots may narrow access but cannot expand it.

Operations are bounded and return explicit result states. Test selections that match nothing produce NO_TESTS rather than a passing result. Running tests or applications executes project code with its normal side effects, while the server's source-editing workflows keep proposed changes outside the workspace.

Four offline skills are bundled: workflow, repair, refactor, and performance. They are available through tools, prompts, and resources, and can optionally be exported to a directory without replacing existing files.

Setup and configuration

Install from crates.io with cargo install agz-rust-mcp --locked; Rust 1.91.0 or newer is required. Prebuilt archives are available for Linux x86_64, macOS arm64, and Windows x86_64. The executable accepts an absolute project path and can be configured with a compact core toolset containing workspace, check, test, run, docs, and crate_lookup. The full toolset is the default, and individual tools can be disabled with command-line switches.

A stdio configuration supplies agz-rust-mcp as the command, an absolute project path, and optional environment configuration. HTTP mode uses --transport http, a bind address, and a port; the documented local endpoint is /mcp. The HTTP listener is loopback-only. MCP clients handle their own configuration-file locations and display prefixes.

Tools and capabilities

  • Inspect Cargo packages, targets, features, dependencies, and lockfiles.
  • Search and read bounded, numbered Rust source excerpts.
  • Run Cargo check, Clippy, tests, documentation, or a full gate with bounded execution.
  • Discover, compile, and run selected tests; execute exact binaries and examples.
  • Resolve crate metadata and exact-version documentation from available sources.
  • Query Rust Analyzer symbols, definitions, references, implementations, hierarchy, and hover data.
  • Produce verified rename, refactor, repair, and change packages without directly modifying the workspace.
  • Analyze build evidence, static findings, feature and toolchain matrices, APIs, macro expansion, trait obligations, and cfg enablement.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about AGZ Rust MCP

AGZ Rust MCP is an MCP server that connects AI clients to Cargo, rustc, Rust Analyzer, and crates.io-oriented documentation workflows. Its main tools inspect workspaces, check code, discover and run tests, execute binaries and examples, resolve crate docs, navigate symbols, and produce source-safe repair or refactor packages.

Install it with `cargo install agz-rust-mcp --locked` using Rust 1.91.0 or newer. Prebuilt archives support Linux x86_64, macOS arm64, and Windows x86_64. Configure the installed executable in an MCP client with an absolute project path.

Start it with `agz-rust-mcp --transport http --http-bind 127.0.0.1:8787 --allow-root /absolute/path/to/project`, then configure the MCP URL `http://127.0.0.1:8787/mcp`. The HTTP listener is restricted to loopback access.

Yes, Cursor can use it when configured for a supported MCP transport. The server supports local stdio and Streamable HTTP, and it does not require a particular MCP client or project framework.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAGZ Rust MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/agz-rust-mcp?style=directory)](https://allmcps.com/mcp/agz-rust-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/agz-rust-mcp"><img src="https://allmcps.com/api/badge/agz-rust-mcp?style=directory" alt="AGZ Rust MCP on AllMCPs" /></a>