1. Conduid
  2. Developer Tools
  3. Rust MCP Server
MCP server · Developer Tools

Rust MCP Server

MCP server for development in Rust

Unclaimed Unlicense devtools
61Good

Scored 12 days ago · breakdown

About Rust MCP Server

Rust MCP Server is an MCP server published by Vaiz in the Developer Tools category: mCP server for development in Rust.

The repository has 37 stars and 3 forks, with the last commit a month ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/Vaiz/rust-mcp-server

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 Rust MCP Server

Powered by Claude · Grounded in docs

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

Security checks

Static checks derived from the repository 5 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

1 check has not been run yet.

Releases

v0.4.1v0.4.1 · 1 Aug 2026Fixed improve PackageName parsing (#146) implement a workaround for rust-lang/rustfmt/issues/6934 (#144) use manifest path as cwd (cargo-fmt)* automatically detect virtual manifest and apply `--all` (#136) Other upgrade rmcp to 3.1 (#145)
v0.4.0v0.4.0 · 5 Jul 2026Added add support for the streamable HTTP transport mode (#128) Changed run cargo command execution on blocking threads to avoid stalling the async runtime (#132) switch error handling from `anyhow` to `ohno::AppError` (#123) update `rmcp`…
v0.3.8v0.3.8 · 11 May 2026Added add option to treat warnings as errors in CargoDocRequest (#112) Fixed don't run tests on the whole workspace when package is specified (#114)
v0.3.7v0.3.7 · 9 Apr 2026Added reduce `cargo-insta-update-snapshots` tool verbosity (#110) use roots/list to automatically detect workspace directory (#108)
v0.3.6v0.3.6 · 9 Mar 2026Added add cargo-insta-update-snapshots tool (#95, #98) Other bump rmpc to 1.1.1 (#97, #102)

README

Rust MCP Server

rust-mcp-server is a server that implements the Model Context Protocol (MCP). It acts as a bridge between a large language model (LLM) like GitHub Copilot and your local Rust development environment.

By exposing local tools and project context to the LLM, rust-mcp-server allows the model to perform actions on your behalf, such as building, testing, and analyzing your Rust code.

Table of Contents

Why use rust-mcp-server?

Integrating an LLM with your local development environment via rust-mcp-server can significantly enhance your productivity. The LLM can:

  • Automate common tasks: Run cargo check, cargo build, cargo test, and cargo fmt directly.
  • Manage dependencies: Add new dependencies with cargo add, find unused dependencies with cargo-machete
  • Apply Rust best practices: Use cargo clippy to lint your code and catch common mistakes, ensuring adherence to Rust guidelines. The LLM can also leverage other tools to help you write idiomatic and robust Rust code.

Essentially, it turns your AI assistant into an active participant in your development workflow, capable of executing commands and helping you manage your project.

Features

rust-mcp-server exposes a comprehensive set of Rust development tools to the LLM:

Core Cargo Commands

  • cargo-build: Compile your package
  • cargo-check: Analyze the current package and report errors, but don't build it
  • cargo-test: Run the tests
  • cargo-doc: Build documentation for your package (recommended with --no-deps and specific --package for faster builds)
  • cargo-fmt: Format the code according to the project's style
  • cargo-clippy: Check for common mistakes and improve code quality using Clippy
  • cargo-clean: Clean the target directory

Project Management

  • cargo-new: Create a new cargo package
  • cargo-generate_lockfile: Generate or update the Cargo.lock file
  • cargo-package: Assemble the local package into a distributable tarball
  • cargo-list: List installed cargo commands

Dependency Management

  • cargo-add: Add dependencies to your Cargo.toml
  • cargo-remove: Remove dependencies from your Cargo.toml
  • cargo-update: Update dependencies to newer versions
  • cargo-metadata: Output project metadata in machine-readable format (JSON)
  • cargo-search: Search for packages in the registry
  • cargo-info: Display information about a package

Code Quality & Security

  • cargo-deny-check: Check for security advisories, license compliance, and banned crates
  • cargo-deny-init: Create a cargo-deny config from a template
  • cargo-deny-list: List all licenses and the crates that use them
  • cargo-deny-install: Install cargo-deny tool
  • cargo-insta-update-snapshots: Generate and update insta snapshots in one command
  • cargo-machete: Find unused dependencies
  • cargo-machete-install: Install cargo-machete tool
  • cargo-hack: Advanced testing and feature validation with powerset testing, version compatibility checks, and CI optimization
  • cargo-hack-install: Install cargo-hack tool

Rust Toolchain Management

  • rustc-explain: Provide detailed explanations of Rust compiler error codes
  • rustup-show: Show the active and installed toolchains
  • rustup-toolchain-add: Install or update toolchains
  • rustup-update: Update Rust toolchains and rustup

For a complete list with detailed descriptions and parameters, see tools.md.

Command Line Arguments

The rust-mcp-server supports several command line arguments to customize its behavior:

--log-level <LOG_LEVEL>

Sets the logging level for the server Options: error, warn, info, debug, trace Default: info Example: --log-level debug

--log-file <LOG_FILE>

Specifies a file path for logging output. If not provided, logs are written to stderr Default: None (logs to stderr) Example: --log-file /var/log/rust-mcp-server.log

--disable-tool <TOOL_NAME>

Disables a specific tool by name. Can be specified multiple times to disable multiple tools Default: None (all tools enabled) Example: --disable-tool cargo-test --disable-tool cargo-clippy

--workspace <WORKSPACE>

Specifies the Rust project workspace path for the server to operate in Default: Current directory Example: --workspace /path/to/rust/project

--registry <REGISTRY>

Sets the default cargo registry for commands that support registry options (e.g., cargo-search, cargo-info, cargo-add). This allows you to use a custom registry defined in your .cargo/config.toml without specifying it for each command Default: None (uses crates.io) Example: --registry my-private-registry

--generate-docs <OUTPUT_FILE>

Generates markdown documentation file and exits without starting the server Default: None Example: --generate-docs tools.md

--no-recommendations

Disables experimental recommendations for agents in tool responses Default: Recommendations are enabled

--http

Serves the MCP streamable HTTP transport on localhost instead of stdio. Requires building with the http feature (see HTTP Mode) Default: Disabled (uses stdio)

-p, --port <PORT>

Port for the HTTP transport (used with --http). Requires the http feature Default: 7270 Example: --http --port 8000

-h, --help

Displays help information about available command line arguments

-V, --version

Displays the version information of the server

Configuring with VS Code

To make GitHub Copilot in VS Code use this MCP server, you need to update your VS Code settings.

  1. Install rust-mcp-server cargo install rust-mcp-server or cargo install rust-mcp-server --features http

  2. Enable MCP server in VS Code settings - ⚙️chat.mcp.enabled

  3. Add new MCP server into .vscode/mcp.json.

    {
        "servers": {
            "rust-mcp-server": {
                "type": "stdio",
                "command": "C:/path/to/your/rust-mcp-server.exe",
                "args": ["--log-file", "log/folder/rust-mcp-server.log"],
            }
        }
    }
    
  4. Start the server mcp.json

More information you can find by this link.

HTTP Mode

By default the server communicates over stdio. It can optionally serve the MCP streamable HTTP transport bound to localhost. This is gated behind the http feature and is restricted to 127.0.0.1 with no HTTPS or authentication.

  1. Install with the http feature cargo install rust-mcp-server --features http

  2. Start the server in HTTP mode (defaults to port 7270) rust-mcp-server --http --port 7270

  3. Point .vscode/mcp.json at the HTTP endpoint:

    {
        "servers": {
            "rust-mcp-server": {
                "type": "http",
                "url": "http://127.0.0.1:7270/"
            }
        }
    }
    

GitHub Copilot Coding Agent Integration

The Rust MCP Server can be integrated with GitHub Copilot's coding agent to create a powerful autonomous development workflow. For detailed setup instructions for using the Rust MCP Server with GitHub Copilot's coding agent, see copilot-coding-agent.md.

README fetched from the repository 5 days ago. The original is authoritative.

Questions

About Rust MCP Server

How do I install Rust MCP Server?

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

Is Rust MCP Server safe to use with an AI agent?

Its trust score is 61 out of 100 (good). It passes 4 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Rust MCP Server still maintained?

Yes — the latest release is v0.4.1 (1 Aug 2026), and the last commit was a month ago. The repository has 37 stars and 1 open issues.