Rust Docs
Retrieves Rust crate documentation from docs.rs to provide LLMs with context for working with Rust code.
About
Rust Docs is a tool that empowers Large Language Models (LLMs) by providing them with the context needed to understand and work with Rust code effectively. By implementing the Model Context Protocol (MCP), this server fetches documentation for Rust crates directly from docs.rs, strips away unnecessary HTML formatting, and delivers clean, readable content to the LLM. This enables AI assistants like Claude to answer questions about Rust crates, explain features, and guide developers, ultimately enhancing the LLM's ability to assist with Rust-related tasks.
Key Features
- Fetches documentation for Rust crates from docs.rs.
- Strips HTML and formats content for LLM readability.
- Limits response size to prevent client overload.
- Implements the MCP protocol for seamless integration with AI assistants.
- Includes Zod validation for tool parameter definitions.
Use Cases
- Enabling AI assistants to answer questions about Rust crates.
- Providing LLMs with context for understanding Rust code.
- Helping developers explore and understand Rust libraries.