cargo doc MCP Server
A MCP server for managing Rust documentation through cargo doc commands. This server provides tools to check, build, and search Rust documentation locally.
Features
Tools
get_crate_doc- Get crate’s main documentation page for understanding overall concepts and usage- Parameters:
project_path: Path to the Rust project (must be absolute path)crate_name: Name of the crate to get documentation for
- Parameters:
list_symbols- List all symbols (structs, enums, traits, etc.) in a crate’s documentation- Parameters:
project_path: Path to the Rust project (must be absolute path)crate_name: Name of the crate to list symbols for
- Parameters:
search_doc- Search within a crate’s documentation- Parameters:
project_path: Path to the Rust project (must be absolute path)crate_name: Name of the crate to search inquery: Search query (keyword or symbol)limit(optional): Maximum number of results to return (default: 10)
- Parameters:
Requirements
- Node.js 16 or later
- Rust and Cargo installed
Installation
Install dependencies:
pnpm install
Build the server:
pnpm run build
For development with auto-rebuild:
pnpm run watch
Usage
Add the following configuration:
{
"mcpServers": {
"docs-rs-mcp": {
"command": "/absolute/path/to/docs-rs-mcp/build/index.js"
}
}
}
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:
pnpm run inspector
The Inspector will provide a URL to access debugging tools in your browser.
Cache System
The server maintains a cache of built documentation paths to improve performance. Cache entries expire after 24 hours to ensure documentation stays up-to-date.
License
MIT
Rust Documentation Manager
Project Details
- spacemeowx2/cargo-doc-mcp
- MIT License
- Last Updated: 4/10/2025
Categories
Recomended MCP Servers
A Model Context Protocol (MCP) server for NASA APIs, providing a standardized interface for AI models to interact...
Efficient implementation of the Google Drive MCP server
💡 All-in-one open-source embeddings database for semantic search, LLM orchestration and language model workflows
A .NET implementation of the Model Context Protocol enabling AI assistants to explore and understand .NET codebases.
Model Context Protocol Server of Rod
All-in-one infrastructure for search, recommendations, RAG, and analytics offered via API
MCP server that provides LLM with tools for interacting with EVM networks
Expose llms-txt to IDEs for development
CTX: The missing link between your codebase and your LLM. Context as Code (CaC) tool with MCP server...
The OpenAPI-MCP proxy translates OpenAPI specs into MCP tools, enabling AI agents to access external APIs without custom...
MCP server that gives Claude ability to use OpenAI's GPTs assistants
Chain of Draft Server is a powerful AI-driven tool that helps developers make better decisions through systematic, iterative...





