1. Conduid
  2. Developer Tools
  3. Cargo MCP
MCP server · Developer Tools

Cargo MCP

MCP server for cargo/crates.io/rustdoc

Unclaimed devtools
39Low

Scored 15 days ago · breakdown

About Cargo MCP

Cargo MCP is an MCP server published by jbr in the Developer Tools category: mCP server for cargo/crates.io/rustdoc.

The repository has 18 stars and 10 forks, with the last commit 6 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/jbr/cargo-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Cargo MCP

Powered by Claude · Grounded in docs

I know everything about Cargo MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

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
  • cargo_fmt_check - 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

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Cargo MCP

How do I install Cargo MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Cargo MCP safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Cargo MCP still maintained?

Yes — the last commit was 6 days ago. The repository has 18 stars and 10 forks.