rust-docs-mcp-server
by Govcraft·★ 276·Score 48
MCP server providing up-to-date Rust crate documentation via semantic search and LLM summarization.
Overview
This MCP server solves the problem of outdated AI suggestions for Rust code by providing current documentation on demand. It fetches crate docs, generates embeddings, and exposes a query tool that LLM assistants can use to get accurate information before writing code. The server supports multiple instances for different crates, allows feature-specific documentation generation, and implements caching to improve performance and reduce API costs.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this when you're working with Rust and need up-to-date documentation for specific crates that your AI assistant might not have in its training data.
When NOT to choose this
Avoid this if you don't have access to an OpenAI API key or if you need offline functionality as it requires network access for initial setup and API calls.
Tools this server exposes
1 tool extracted from the READMEquery_rust_docsQuery documentation for the specific Rust crate the server was started for, using semantic search and LLM summarization.
Comparable tools
Installation
Installation
Pre-built Binary (Recommended)
- Download the appropriate binary from [GitHub Releases](https://github.com/Govcraft/rust-docs-mcp-server/releases)
- Extract the binary and place it in your PATH
From Source
git clone https://github.com/Govcraft/rust-docs-mcp-server.git
cd rust-docs-mcp-server
cargo build --releaseClaude Desktop Configuration
{
"mcpServers": {
"rust-docs-serde": {
"command": "/path/to/rustdocs_mcp_server",
"args": ["serde@^1.0"]
},
"rust-docs-tokio": {
"command": "rustdocs_mcp_server",
"args": ["tokio"]
}
}
}FAQ
- What API key is required?
- The server requires an OpenAI API key available in the OPENAI_API_KEY environment variable for generating embeddings and summarizing answers.
- How are different crate features handled?
- Use the -F or --features flag to specify required crate features. Different feature sets are cached separately.
Compare rust-docs-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.