# AGZ Rust MCP [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/ugur-murat-alt/agz-rust-mcp  
**GitHub Stars:** 2  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agz-rust-mcp

## Description
Bounded, source-write-free Rust correctness tools grounded in Cargo and rustc output.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/ugur-murat-alt/agz-rust-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
bash install.sh
```

2. Install:

```sh
cargo install agz-rust-mcp --locked
```

3. Start the server:

```sh
agz-rust-mcp --transport http --http-bind 127.0.0.1:8787 \
  --allow-root /absolute/path/to/project
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/agz-rust-mcp/readme_

