Rust Docs MCP Server

⭐ **Like this project? Please [star the repository](https://github.com/Govcraft/rust-docs-mcp-server) on GitHub to show your support and stay

Local serverstdioGo

What is the Rust Docs MCP Server?

⭐ Like this project? Please star the repository on GitHub to show your support and stay updated! ⭐

The short version

  • Targeted Documentation: — Focuses on a single Rust crate per server
  • Feature Support: — Allows specifying required crate features for
  • Semantic Search: — Uses OpenAI's text-embedding-3-small model to find the
  • LLM Summarization: — Leverages OpenAI's gpt-4o-mini-the publisher’s release record model to
  • Caching: — Caches generated documentation content and embeddings in the
  • MCP Integration: — Runs as a standard MCP server over stdio, exposing tools

What it needs from you

  • OpenAI API Key: Needed for generating embeddings and summarizing answers. The server expects this key to be available in the OPENAI_API_KEY environment variable. (The server also requires network access to download crate dependencies and interact with the OpenAI API).

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Rust Docs MCP Server

{
  "mcpServers": {
    "rust-docs-reqwest": {
      "command": "/path/to/your/rustdocs_mcp_server",
      "args": [
        "reqwest@0.12"
      ],
      "env": {
        "OPENAI_API_KEY": "YOUR_OPENAI_API_KEY"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • OpenAI API Key: Needed for generating embeddings and summarizing answers. The server expects this key to be available in the OPENAI_API_KEY environment variable. (The server also requires network access to download crate dependencies and interact with the OpenAI API).
VariableDescriptionRequired
OPENAI_API_KEYDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Rust Docs to Caching.”

Frequently asked questions

⭐ **Like this project? Please [star the repository](https://github.com/Govcraft/rust-docs-mcp-server) on GitHub to show your support and stay updated!** ⭐ Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.