MCP Catalogs
Home

rust-docs-mcp-server

by Govcraft·276·Score 48

MCP server providing up-to-date Rust crate documentation via semantic search and LLM summarization.

developer-toolsai-llmproductivity
34
Forks
13
Open issues
6 mo ago
Last commit
2d ago
Indexed

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:

you:AI coding assistants getting up-to-date API documentation for Rust crates
you:Development teams ensuring their AI tools use current crate features and methods
you:Reducing manual documentation lookup for frequently updated Rust libraries
you:What API key is required?
you:How are different crate features handled?

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 README
  • query_rust_docs

    Query documentation for the specific Rust crate the server was started for, using semantic search and LLM summarization.

Comparable tools

cargo-doc-mcprust-analyzer-mcpsourcegraph-mcp

Installation

Installation

Pre-built Binary (Recommended)

  1. Download the appropriate binary from [GitHub Releases](https://github.com/Govcraft/rust-docs-mcp-server/releases)
  2. 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 --release

Claude 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.