MCPSERV.CLUB
PromptExecution

CrateDocs MCP

MCP Server

Rust crate documentation lookup for LLMs

Stale(55)
7stars
1views
Updated Sep 22, 2025

About

A Model Context Protocol server that enables large language models to retrieve Rust crate documentation, search crates.io, and look up specific items within crates. It supports HTTP/SSE and stdin/stdout interfaces for flexible integration.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

CrateDocs MCP Demo

The CrateDocs MCP server fills a critical gap for developers who want to harness large language models (LLMs) in Rust‑centric workflows. When an LLM is asked about a crate it hasn’t seen before, the assistant typically lacks authoritative references to answer accurately. CrateDocs MCP exposes a lightweight HTTP/SSE interface that lets the model query real crate documentation at runtime, ensuring answers are grounded in the latest published API surface. This eliminates guesswork and boosts developer confidence when exploring unfamiliar libraries.

At its core, the server offers three focused tools: , , and . The former retrieves a crate’s full documentation, optionally targeting a specific version, while the latter scans crates.io for matches to a keyword query. The most granular tool, , pulls the documentation for an individual item—struct, trait, function, or module—within a crate. All responses are returned in multiple formats (JSON, Markdown, plain text), making it trivial to embed them directly into code comments, README files, or chatbot replies.

Developers integrate CrateDocs MCP seamlessly into AI‑driven IDE assistants, continuous integration pipelines, or automated code review bots. For example, a code‑completion assistant can query the server to fetch the signature of an unfamiliar function before suggesting its usage, or a documentation generator can enrich generated docs with up‑to‑date crate references without manual copy‑pasting. The server’s HTTP/SSE endpoint also supports streaming, allowing LLMs to process large documentation blobs incrementally and reduce latency.

What sets CrateDocs MCP apart is its tight coupling with the Rust ecosystem. It respects crate versioning, supports visibility filters, and can strip boilerplate sections (LICENSE, VERSION) for concise summaries. Because it runs locally by default, teams can keep sensitive codebases private while still leveraging external crate knowledge. In short, CrateDocs MCP turns a static knowledge base into an interactive, version‑aware API reference that powers smarter, contextually aware Rust development workflows.