rust-docs-mcp-server

rust-docs-mcp-server

3.6

If you are the rightful owner of rust-docs-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Rust Docs MCP Server provides an up-to-date knowledge source for specific Rust crates, enhancing the accuracy of AI coding assistants by allowing them to query current documentation.

The Rust Docs MCP Server is designed to address the challenge faced by AI-powered coding assistants in keeping up with the rapidly evolving libraries and frameworks in the Rust ecosystem. By running an instance of this server for a specific Rust crate, developers can provide their LLM coding assistants with a tool to query the latest documentation before generating code. This server fetches the documentation for a specified Rust crate, generates embeddings for the content, and provides an MCP tool to answer questions about the crate based on the documentation context. It supports multiple instances running concurrently, allowing access to documentation for several crates during a coding session. The server uses OpenAI's models for semantic search and summarization, ensuring that the answers are accurate and relevant. It also caches the generated documentation content and embeddings to speed up subsequent launches.

Features

  • Targeted Documentation: Focuses on a single Rust crate per server instance.
  • Feature Support: Allows specifying required crate features for documentation generation.
  • Semantic Search: Uses OpenAI's text-embedding-3-small model to find relevant documentation sections.
  • LLM Summarization: Leverages OpenAI's gpt-4o-mini-2024-07-18 model for concise answers.
  • Caching: Caches documentation content and embeddings to speed up subsequent launches.

Tools

  1. query_rust_docs

    Query documents for specific Rust crate, using semantic search and LLM summary

  2. crate://<crate_name>

    Provides the Rust crate name for the server instance configuration