AgentStack
MCP verified Apache-2.0 Self-run

Cargo Mcp

mcp-jbr-cargo-mcp · by jbr

an mcp server for cargo commands

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add mcp-jbr-cargo-mcp

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Cargo Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Cargo MCP Server

A Model Context Protocol (MCP) server that provides safe access to Cargo operations for Rust projects.

Features

This MCP server exposes the following Cargo tools:

  • cargo_check - Verify code compiles without producing executables
  • cargo_clippy - Run the Clippy linter for code suggestions
  • cargo_test - Execute project tests
  • cargofmtcheck - Check code formatting without modifying files
  • cargo_build - Build the project (debug or release mode)
  • cargo_bench - Run benchmarks
  • cargo_add - Add dependencies to Cargo.toml
  • cargo_remove - Remove dependencies from Cargo.toml
  • cargo_update - Update dependencies
  • cargo_clean - Remove artifacts that cargo has generated in the past
  • cargo_run - Run a binary or example

All tools support setting custom environment variables via the cargo_env parameter and rust toolchain with the toolchain parameter.

Installation

cargo install cargo-mcp

Usage with Claude Desktop

Add this to your Claude Desktop MCP configuration:

{
  "mcpServers": {
    "cargo-mcp": {
      "command": "/path/to/cargo-mcp/cargo-mcp",
      "args": ["serve"]
    }
  }
}

Optionally, include "env": {"CARGO_MCP_DEFAULT_TOOLCHAIN": {{toolchain}} } in the arguments where {{toolchain}} is something like "nightly" or "stable"

Safety Features

  • Only whitelisted Cargo commands are available
  • Path validation ensures the target is a valid Rust project (has Cargo.toml)
  • No arbitrary command execution
  • All commands run in the specified project directory

License

MIT or APACHE-2.0

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.