Crates MCP Server

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

Local serverstdio

What is the Crates MCP MCP server?

MCP server for querying Rust crates from crates.io and docs.rs. Search crates, get info, versions, dependencies, and documentation. That is what the crates mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The tools it exposes

The server publishes 5 tools. What each one is for:

  • 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

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

How it compares

Among the knowledge and memory options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Crates MCP's toolset — search_crates, get_crate_info, get_crate_versions and 2 more — is a fair guide to whether it matches your workflow. It is maintained by pato; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Crates MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
search_cratesFind crates by name
get_crate_infoGet details about a crate
get_crate_versionsList versions
get_crate_dependenciesShow dependencies
get_crate_documentationGet docs from docs.rs

How to install the Crates MCP MCP server

**Option 2: Use binary**
```bash
# Build first
cargo build --release

# Add to config
{
  "mcpServers": {
    "crates": {
      "command": "/path/to/crates-mcp/target/release/crates-mcp"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Crates MCP to search crates.
  • Use Crates MCP to get crate info.
  • Use Crates MCP to get crate versions.

Frequently asked questions

It connects Crates MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (search_crates, get_crate_info, get_crate_versions, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Crates MCP directly.