govcraft avatar

Rust Docs

govcraft/rust-docs-mcp-server

The Rust Docs MCP Server fetches documentation for a specified Rust crate, generates semantic embeddings, and provides a `query_rust_docs` tool that allows LLM coding assistants to retrieve accurate, up-to-date API information before generating code. It solves the problem of AI assistants lacking current knowledge of rapidly evolving Rust crates by enabling semantic search over cached documentation and generating answers through GPT-4o-mini based on retrieved context. Multiple server instances can run concurrently to provide documentation access for different crates during a single coding session.

GitHub stars
276
tool
1
last updated
Dec 15, 2025

Tools

1 tools

Public tool metadata for what this MCP can expose to an agent.

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

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

No parameter schema in public metadata yet.

Sponsors

Readme

Rust Docs MCP Server

License: MIT

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

Motivation

Modern AI-powered coding assistants (like Cursor, Cline, Roo Code, etc.) excel at understanding code structure and syntax but often struggle with the specifics of rapidly evolving libraries and frameworks, especially in ecosystems like Rust where crates are updated frequently. Their training data cutoff means they may lack knowledge of the latest APIs, leading to incorrect or outdated code suggestions.

This MCP server addresses this challenge by providing a focused, up-to-date knowledge source for a specific Rust crate. By running an instance of this server for a crate (e.g., serde, tokio, reqwest), you give your LLM coding assistant a tool (query_rust_docs) it can use before writing code related to that crate.


View the full README on GitHub

Details

Repository
github.com/govcraft/rust-docs-mcp-server