概要
What is Corrode MCP Server?
Corrode MCP Server is a Rust-based implementation of the Model Context Protocol (MCP) for code-related tasks. It integrates crates.io, Rust documentation, code analysis, file operations, and shell command execution, giving AI assistants direct access to Rust development tools.
How to use Corrode MCP Server?
Install via cargo install corrode-mcp or build from source with cargo install --path .. Then configure the binary (with the --mcp flag) in your MCP host, e.g., in Claude Desktop’s claude_desktop_config.json under the mcpServers key.
Key features of Corrode MCP Server
- Crates.io search and dependency exploration
- Rust docs access via docs.rs
- Code analysis with
cargo checkand function signatures - File read/write and unified diff operations
- Code search by keywords and file types
- Shell command execution with context tracking
Use cases of Corrode MCP Server
- Search for Rust crates and inspect their features, versions, and dependencies
- Check Rust projects for compilation errors without leaving the AI interface
- Understand code structure by listing function signatures in a directory
- Create new modules or manage dependencies through natural language requests
- Find all occurrences of a specific pattern (e.g.,
tokio::spawn) in the codebase
FAQ from Corrode MCP Server
How do I install Corrode MCP Server?
Install using cargo install corrode-mcp (the crate is published on crates.io). Alternatively, clone the repository and run cargo install --path ..
How do I configure Corrode MCP Server with Claude Desktop?
Add the absolute path to the corrode-mcp binary with the --mcp argument to the mcpServers section of claude_desktop_config.json. Use which corrode-mcp to find the full path.
What tools does Corrode MCP Server provide?
It offers Rust-specific tools (crates.io search, docs.rs lookups, code analysis) and general development tools (file operations, code search, shell command execution).
Is there a way to view server logs?
Yes, MCP logs can be monitored with tail -n 20 -f ~/Library/Logs/Claude/mcp*.log.
Can I build Corrode MCP Server from source?
Yes. Clone the repository from GitHub and run cargo install --path . from the project directory.