Rust Docs MCP Server

Rust Docs MCP Server is an MCP server that provides up-to-date documentation and semantic API search for specific Rust crates to AI coding assistants. It connects local Rust documentation generated via Cargo to language models through the Model Context Protocol over standard input/output. Designed for Rust developers using coding environments like Claude Desktop, Cursor, and Roo Code, it enables assistants to consult precise library APIs before writing code. When configured for a targeted crate such as serde or reqwest, the server downloads the documentation, parses the HTML, generates semantic embeddings using OpenAI models, and caches the indexed vectors locally. LLM assistants can invoke the query_rust_docs tool to retrieve verified API signatures, usage patterns, and framework explanations directly from the documentation context. By grounding answers in specific crate versions and active feature flags, the server helps prevent hallucinated functions and outdated syntax caused by LLM training cutoffs, significantly improving the accuracy of Rust code generation.

Category: Developer Tools & Code Intelligence

Tags: crates, documentation, programming, rust

Visit Rust Docs MCP Server

How to install and configure Rust Docs MCP Server

  1. Download the pre-compiled binary for your operating system from the repository releases page, extract rustdocs_mcp_server, and move it into your system PATH (or build from source using cargo build --release). 2. Set your OpenAI API key in your environment: bash export OPENAI_API_KEY="sk-..." 3. Pre-cache your crate by running the server once in your terminal until it displays startup confirmation, then stop it with Ctrl+C: bash rustdocs_mcp_server "serde@^1.0" 4. Register the server in your MCP client configuration (such as Claude Desktop or Roo Code mcp_settings.json): json { "mcpServers": { "rust-docs-serde": { "command": "rustdocs_mcp_server", "args": ["serde@^1.0"] } } }

What you can do with Rust Docs MCP Server

  • Querying correct request builder methods and syntax for reqwest to generate network calls without checking web browsers. - Looking up exact derive attributes, serializer implementations, and error handling patterns for specific versions of serde. - Verifying feature-gated APIs and runtime configurations when integrating complex third-party crates like async-stripe. - Inspecting asynchronous execution primitives, runtime handles, and task spawning signatures directly from the tokio crate documentation.

Key facts

  • https://github.com/Govcraft/rust-docs-mcp-server
  • Developer Tools & Code Intelligence
  • crates, documentation, programming, rust

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server — MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON — MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete — MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go — MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager — MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP Lab — MCP Lab is an MCP server development environment designed for building, testing, and debugging custom Model Context Protocol servers integrated…

How do I install Rust Docs MCP Server?

You can download the pre-compiled binary for Linux, macOS, or Windows directly from the GitHub releases page and add it to your system PATH. Alternatively, you can clone the repository and compile the source code locally using the Rust toolchain by executing cargo build --release.

What can Rust Docs MCP Server do?

It serves documentation for a specified Rust crate using semantic search and language model summarization. When an AI coding assistant asks a question, the server queries cached documentation embeddings and returns focused answers and code examples grounded in the current crate version.

Which MCP clients work with Rust Docs MCP Server?

Any client supporting the standard Model Context Protocol over stdio can connect to this server. Tested clients include Claude Desktop, Roo Code, Cursor, and Cline. You can configure multiple instances simultaneously to target different crates.

Does Rust Docs MCP Server require an OpenAI API key?

Yes, an OpenAI API key must be provided via the OPENAI_API_KEY environment variable. The server relies on OpenAI models to generate text embeddings for the documentation and to summarize query answers before sending them to your MCP client.

Is Rust Docs MCP Server open source?

Yes, the repository is released as open-source software under the MIT license on GitHub, allowing free usage, modification, and integration with your development workflows.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories