crates-mcp
A local MCP server used to fetch Rust crate information and docs from crates.io and docs.rs
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
# Build and run
cargo build --release
cargo run --releaseTools
- `search_crates` - Find crates by name
- `get_crate_info` - Get details about a crate
- `get_crate_versions` - List versions
- `get_crate_dependencies` - Show dependencies
- `get_crate_documentation` - Get docs from docs.rs
Claude Code Integration
Add to your Claude Code MCP configuration:
Option 1: Run directly
{
"mcpServers": {
"crates": {
"command": "cargo",
"args": ["run", "--release"],
"cwd": "/path/to/crates-mcp"
}
}
}Option 2: Use binary
# 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
# 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
# Test
cargo test
# Format
cargo fmt
# Lint
cargo clippyLicense
MIT
Frequently asked questions
What is crates-mcp?
crates-mcp is A local MCP server used to fetch Rust crate information and docs from crates.io and docs.rs
How do I install crates-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is crates-mcp open source?
Yes — it is hosted on GitHub at https://github.com/pato/crates-mcp and has 5 stars.
Related MCP tools
An open source, extensible AI agent that goes beyond code suggestions - install, execute, edit, and test with any LLM for the Model Context Protocol. Enhance AI
The official Rust SDK for the Model Context Protocol Trusted by 2500+ developers. Trusted by 2500+ developers. Trusted by 2500+ developers.
🌍 Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments.
The official TypeScript SDK for Model Context Protocol servers and clients Trusted by 10500+ developers. Trusted by 10500+ developers.
Visual testing tool for MCP servers TypeScript-based implementation. Trusted by 7300+ developers. Trusted by 7300+ developers.
AWS MCP Servers — helping you get the most out of AWS, wherever you use MCP. Python-based implementation. Trusted by 6900+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP