MCP Servers / development / Cargo MCP

Cargo MCP

JSON →
none2development

Interact with Rust projects using Cargo commands like build, test, and run.

Install
How to run this server
[ { "cmd": "npx @modelcontextprotocol/inspector", "imports": [] } ]
server path: cargo-mcp
Tools
What this server exposes
cargo_build
Build a Rust project with Cargo
cargo_test
Run tests for a Rust project
cargo_run
Run a Rust binary
cargo_check
Check a project for errors without building
cargo_clippy
Run Clippy linter
cargo_fmt
Format Rust code using rustfmt
cargo_doc
Generate documentation
cargo_clean
Clean build artifacts
cargo_tree
Display dependency tree
cargo_update
Update dependencies in Cargo.lock
cargo_bench
Run benchmarks
Configuration
Environment & auth
authnone
Resources
Cargo MCP — MCP Server · libregistry