rust-docs-mcp
If you are the rightful owner of rust-docs-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
Rustdocs MCP Server is a Model Context Protocol server designed to provide comprehensive access to Rust crate documentation, source code analysis, dependency trees, and module structure visualization.
The Rustdocs MCP Server is a powerful tool for AI agents and developers working with Rust projects. It addresses the challenges faced by agents when dealing with new Rust crates, such as outdated training data, inefficient documentation scraping, and limited understanding of internal structures. By offering deep crate intelligence, the server enables agents to explore module hierarchies, access complete documentation, trace dependencies, and work offline with cached crates. This ensures that agents can build confidently with any Rust crate, even those released recently. The server supports multi-source caching, workspace analysis, documentation search, item inspection, source code access, dependency analysis, and module structure visualization. It operates offline after initial caching, making it a reliable tool for developers and agents alike.
Features
- Multi-source caching from crates.io, GitHub, and local paths
- Workspace support for individual member analysis and caching
- Comprehensive documentation search with pattern matching and filtering
- Detailed item inspection with signatures, fields, and methods
- Offline operation with full functionality after initial caching
Tools
cache_crate_from_cratesio
Download and cache a specific crate version from crates.io
cache_crate_from_github
Download and cache from GitHub (specify branch or tag)
cache_crate_from_local
Cache from a local file system path
remove_crate
Remove cached crate versions to free disk space
list_cached_crates
View all cached crates with versions and sizes
list_crate_versions
List cached versions for a specific crate
get_crates_metadata
Batch metadata queries for multiple crates
search_items_preview
Lightweight search returning only IDs, names, and types
search_items
Full search with complete documentation (may hit token limits)
list_crate_items
Browse all items in a crate with optional filtering
get_item_details
Detailed information about specific items (signatures, fields, etc.)
get_item_docs
Extract just the documentation string for an item
get_item_source
View source code with configurable context lines
get_dependencies
Analyze direct and transitive dependencies with filtering
structure
Generate hierarchical module tree using integrated cargo-modules