
Cargo Doc MCP Server
A server for managing Rust documentation that enables users to check, build, and search Rust documentation locally through cargo doc commands.
spacemeowx2
Tools
get_crate_doc
Get crate's main documentation page. Useful for unresolved imports (e.g. use get_crate_doc when seeing 'unresolved import tokio::sync') or understanding crate features.
list_symbols
List all symbols in a crate. Use when implementing traits or exploring available types. Shows structs, enums, traits with their paths.
search_doc
Search crate docs for specific features, error messages, or usage examples. Helps debug compilation issues or learn new APIs.
README
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.
<a href="https://glama.ai/mcp/servers/l4augy7aft"> <img width="380" height="200" src="https://glama.ai/mcp/servers/l4augy7aft/badge" alt="Cargo Doc Server MCP server" /> </a>
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
serper-search-scrape-mcp-server
This Serper MCP Server supports search and webpage scraping, and all the most recent parameters introduced by the Serper API, like location.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.