cargo-mcp MCP Server

A Model Context Protocol (MCP) server that provides tools for running Cargo commands. This server allows AI agents to interact with Rust projects through Cargo, enabling automated builds, tests…

Local serverstdio

What is the cargo-mcp Server?

cargo-mcp is an MCP project maintained in the seemethere/cargo-mcp repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that provides tools for running Cargo commands. This server allows AI agents to interact with Rust projects through Cargo…”. Read the project documentation for the complete scope.

Local setup

The project provides a local client configuration using cargo-mcp. Follow the repository’s build and installation steps before copying it, and replace example paths with the paths on your own computer.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
cargo_build
cargo_test
cargo_run
cargo_check
cargo_clippy
cargo_fmt
cargo_doc
cargo_clean
cargo_tree
cargo_update
cargo_bench

How to install the cargo-mcp Server

{
  "mcpServers": {
    "cargo-mcp": {
      "command": "cargo-mcp"
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.