Basic information
About Rust MCP Server
Model Context Protocol server for Rust development tools (clippy, rustfmt, cargo check, cargo test)
Rust MCP Server is a MCP server in the Other category listed in the AddMCP.net directory, published by lh. Supported transport: stdio. Runtime: rust. The repository has 1 GitHub stars. Source code is hosted on github.com. Related topics: mcp-server, rust-development, rust-mcp-server.
Setup
{
"mcpServers": {
"rust-mcp-server": {
"command": "python3",
"args": [
"test_server.py"
]
}
}
}
{
"mcpServers": {
"rust-mcp-server": {
"command": "python3",
"args": [
"test_server.py"
]
}
}
}
{
"servers": {
"rust-mcp-server": {
"command": "python3",
"args": [
"test_server.py"
]
}
}
}
Rust MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"rust-mcp-server": {
"command": "python3",
"args": [
"test_server.py"
]
}
}
}
Rust MCP Server tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
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
Frequently asked questions
1 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.
2 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.
3 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.
4 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.
5 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.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In