mcp-rust-docs

46ki75/mcp-rust-docs

3.2

If you are the rightful owner of mcp-rust-docs and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The MCP Rust Docs Server is a Model Context Protocol server that provides access to Rust crate documentation and metadata, enabling AI agents to search and retrieve detailed information from crates.io and docs.rs.

Tools
5
Resources
0
Prompts
0

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