Labsco
pato logo

Crates MCP Server

โ˜… 14

from pato

Query Rust crates from crates.io and docs.rs. Search for crates, get info, versions, dependencies, and documentation.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Crates MCP Server

MCP server for querying Rust crates from crates.io and docs.rs. Search crates, get info, versions, dependencies, and documentation.

Tools

  • 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.

Development

# Test
cargo test

# Format  
cargo fmt

# Lint
cargo clippy