Loading...

This MCP server provides up-to-date Rust crate documentation to LLMs, improving code generation accuracy by querying current API details via semantic search and summarization.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
This MCP server provides up-to-date Rust crate documentation to LLMs, improving code generation accuracy by querying current API details via semantic search and summarization.
This server is relatively safe for read-only documentation access. Risks are primarily associated with the OpenAI API key management and potential supply chain vulnerabilities during crate download. Ensure the OpenAI API key is securely stored and consider using a trusted registry to mitigate supply chain risks.
Performance depends on the size of the crate documentation and the speed of the OpenAI API. Caching significantly improves subsequent startup times. Embedding generation can be time-consuming for large crates.
The primary cost is associated with OpenAI API usage for embedding generation and summarization. Caching minimizes repeated costs. Monitor OpenAI API usage to avoid unexpected charges.
{
"mcpServers": {
"rust-docs-reqwest": {
"command": "/path/to/your/rustdocs_mcp_server",
"args": [
"reqwest@0.12"
],
"env": {
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY_HERE"
},
"disabled": false,
"alwaysAllow": []
},
"rust-docs-async-stripe": {
"command": "rustdocs_mcp_server",
"args": [
"async-stripe@0.40",
"-F",
" runtime-tokio-hyper-rustls"
],
"env": {
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY_HERE"
},
"disabled": false,
"alwaysAllow": []
}
}
}OPENAI_API_KEYquery_rust_docsQueries the documentation for a specified Rust crate and returns a summarized answer based on semantic search.
Read-only access to documentation; no destructive operations.
Environment Variable
hybrid
This server is relatively safe for read-only documentation access. Risks are primarily associated with the OpenAI API key management and potential supply chain vulnerabilities during crate download. Ensure the OpenAI API key is securely stored and consider using a trusted registry to mitigate supply chain risks.
The server operates in a read-only mode, accessing documentation and providing summarized answers. No write or execute permissions are granted.
Production Tip
Pre-generate documentation and embeddings for commonly used crates to minimize latency during runtime.
Use the Cargo package ID specification, e.g., `crate_name@version_req` (e.g., `serde@^1.0`).
Use the `-F` or `--features` flag followed by a comma-separated list of features (e.g., `-F feature1,feature2`).
In the XDG data directory, typically under `~/.local/share/rustdocs-mcp-server/<crate_name>/<sanitized_version_req>/<features_hash>/`.
The server uses OpenAI's `text-embedding-3-small` model.
The server uses OpenAI's `gpt-4o-mini-2024-07-18` model.
Add a new entry in Roo Code's `mcp_settings.json` file, specifying the command, arguments (crate name and features), and OpenAI API key.
The server will automatically regenerate the documentation and embeddings.