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.

コメント

「その他」の他のコンテンツ