#model-context-protocol #mcp-server #mcp

app mcp-rust-docs

A Model Context Protocol (MCP) server that provides comprehensive access to Rust crate documentation and metadata

3 releases

Uses new Rust 2024

0.1.1 Aug 30, 2025
0.1.0 Aug 23, 2025

#93 in #model-context-protocol

Download history 153/week @ 2025-08-25 36/week @ 2025-09-01 7/week @ 2025-09-08 3/week @ 2025-09-15 9/week @ 2025-09-29 2/week @ 2025-10-06

101 downloads per month

MIT license

175KB
750 lines

MCP Rust Docs Server

Crates.ionpm

A Model Context Protocol (MCP) server that provides comprehensive access to Rust crate documentation and metadata. This server enables AI agents to search for crates on crates.io and retrieve detailed documentation from docs.rs.

alt text

Usage

You can run the MCP Rust Docs Server using either Node.js or Rust:

Using npm

{
  "servers": {
    "mcp-rust-docs": {
      "command": "pnpx",
      "args": ["mcp-rust-docs@latest"]
    }
  }
}

Using cargo

First, install the server with Cargo:

cargo install mpc-rust-docs

Then start the server:

{
  "servers": {
    "mcp-rust-docs": {
      "command": "mcp-rust-docs"
    }
  }
}

Features

🔍 Tools

The server provides 5 powerful tools for Rust documentation exploration:

  1. search_crate - Search for crates on crates.io by name
  2. retrieve_documentation_index_page - Get the main documentation page for a crate
  3. retrieve_documentation_all_items - List all items (structs, enums, functions, etc.) in a crate
  4. search_documentation_items - Fuzzy search for specific items within a crate's documentation
  5. retrieve_documentation_page - Retrieve specific documentation pages by exact path

📚 Resources

  • Instruction Resource (str://mcp-rust-docs/instruction) - Provides mandatory usage guidelines for AI agents when handling Rust documentation queries

Dependencies

~36–58MB
~809K SLoC