A local MCP server used to fetch Rust crate information and docs from crates.io and docs.rs
5 stars
Rust
Updated Sep 8, 2025
Documentation
Crates MCP Server
MCP server for querying Rust crates from crates.io and docs.rs. Search crates, get info, versions, dependencies, and documentation.
Quick Start
bash
# Build and run
cargo build --release
cargo run --releaseTools
search_crates- Find crates by nameget_crate_info- Get details about a crateget_crate_versions- List versionsget_crate_dependencies- Show dependenciesget_crate_documentation- Get docs from docs.rs
Claude Code Integration
Add to your Claude Code MCP configuration:
Option 1: Run directly
json
{
"mcpServers": {
"crates": {
"command": "cargo",
"args": ["run", "--release"],
"cwd": "/path/to/crates-mcp"
}
}
}Option 2: Use binary
bash
# Build first
cargo build --release
# Add to config
{
"mcpServers": {
"crates": {
"command": "/path/to/crates-mcp/target/release/crates-mcp"
}
}
}Config file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/claude/claude_desktop_config.json
Restart Claude Code after adding the config.
Usage Examples
code
# Search for HTTP clients
> Search for "http client" crates
# Get info about reqwest
> What is the reqwest crate?
# Check tokio dependencies
> Show me tokio's dependencies
# View serde documentation
> Show me the docs for serdeDevelopment
bash
# Test
cargo test
# Format
cargo fmt
# Lint
cargo clippyLicense
MIT
Similar MCP
Based on tags & features
Trending MCP
Most active this week