3 releases
Uses new Rust 2024
| 0.1.1 | Aug 30, 2025 |
|---|---|
| 0.1.0 | Aug 23, 2025 |
#93 in #model-context-protocol
101 downloads per month
175KB
750 lines
MCP Rust Docs Server
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.

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:
search_crate- Search for crates on crates.io by nameretrieve_documentation_index_page- Get the main documentation page for a crateretrieve_documentation_all_items- List all items (structs, enums, functions, etc.) in a cratesearch_documentation_items- Fuzzy search for specific items within a crate's documentationretrieve_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