Rust Docs Server is an MCP server that fetches Rust crate documentation and symbol metadata directly from docs.rs using the rustdoc JSON API. Designed for Rust software engineers and developer tool users, it connects AI coding assistants to authoritative crate documentation, API surfaces, and crates.io search results. By integrating this server into an MCP client, developers enable language models to inspect structs, traits, functions, and modules without leaving their development environment or manually browsing documentation websites. The server also allows users to find new libraries through fuzzy matching and review complete crate-level overviews for targeted versions or architectures. This context helps AI agents produce precise code implementations, verify signature details, and explain crate functionality using real, structured crate data rather than relying purely on training memory.
Category: Developer Tools & Code Intelligence
Tags: crates, documentation, rust, rustdoc
docker pull ghcr.io/vexxvakan/mcp-docsrs:latest. 2. In Claude Code, register the stdio server by running: claude mcp add --transport stdio docsrs -- path/to/mcp-docsrs. 3. In Cursor, navigate to Settings (Cmd/Ctrl+Shift+J) β Tools & Integrations β New MCP Server, select a local/stdio server, and enter path/to/mcp-docsrs. 4. In VS Code, open the Command Palette (Cmd/Ctrl+Shift+P), select MCP: Add Server, choose Workspace or User, select Command (stdio), and supply the path to the executable. 5. Restart your client if tools are not immediately detected.Part of MCP Servers
Rust Docs Server is a Model Context Protocol server that retrieves structured Rust crate documentation and metadata from docs.rs using the rustdoc JSON API.
The server provides tools to look up crate structure and public APIs via crate_lookup, read crate documentation via crate_docs, search crates.io via crate_find, and inspect symbol metadata or symbol documentation via symbol_lookup and symbol_docs.
It supports any standard MCP client using stdio transport, with explicit support documented for Claude Code, Cursor, VS Code, Codex, Gemini CLI, and OpenCode.
You can configure settings using command-line arguments or environment variables, such as --cache-ttl, --max-cache-size, --request-timeout, and --db-path for custom SQLite storage.
Rust Docs Server is open-source software licensed under the Apache License 2.0.