MCP.so
登录

Rust MCP Server

@lh

关于 Rust MCP Server

Model Context Protocol server for Rust development tools (clippy, rustfmt, cargo check, cargo test)

基本信息

分类

其他

运行时

rust

传输方式

stdio

发布者

lh

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "rust-mcp-server": {
      "command": "python3",
      "args": [
        "test_server.py"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Rust MCP Server?

Rust MCP Server is a Model Context Protocol (MCP) server that provides essential Rust development tools—such as real-time syntax checking, linting, formatting, testing, and building—to AI assistants and IDEs. It enables these tools to be invoked through a standardized MCP interface, communicating via JSON‑RPC over stdin/stdout.

How to use Rust MCP Server?

Install from source with cargo build --release, then run the binary with an optional --project-path argument. Integrate with Claude Code by adding the server via claude mcp add rust-tools ..., then use natural language commands (e.g., “Check this Rust code for errors”) to invoke tools. The server can also be used standalone or integrated into VS Code through MCP.

Key features of Rust MCP Server

  • Syntax and type validation via cargo_check
  • Code linting with automatic fixes via cargo_clippy
  • Code formatting using rustfmt
  • Test execution with pattern matching via cargo_test
  • Project building in debug or release mode via cargo_build
  • Standardized JSON output for all tool results

Use cases of Rust MCP Server

  • AI assistants checking Rust code for errors during development
  • Automatically linting and formatting Rust projects from an IDE
  • Running tests and verifying builds without leaving the assistant interface
  • Providing real-time feedback to developers in tools like Claude Code
  • Integrating Rust development workflows into custom MCP‑compatible editors

FAQ from Rust MCP Server

What does Rust MCP Server do that alternatives don’t?

It exposes Rust toolchain operations (cargo check, clippy, rustfmt, test, build) through a standardized MCP interface, making them accessible to AI assistants and IDEs via JSON‑RPC.

What dependencies or runtime requirements are needed?

Requires the Rust toolchain (rustc, cargo, clippy, rustfmt) and Tokio async runtime support. The server must be built from source using cargo build --release.

Where does code/data processed by the server live?

All operations are performed on local Rust projects specified by the --project-path argument. No data is sent externally.

What transport and authentication does the server use?

The server communicates via JSON‑RPC over stdin/stdout (no networking). It does not include authentication; access is local.

Are there known limits of Rust MCP Server?

The server expects a valid Rust project and the required toolchain. In version 0.1.0, a JSON‑RPC compliance bug caused tools to appear unavailable when connected to Claude Code; this is fixed in v0.1.1.

评论

其他 分类下的更多 MCP 服务器