Rust Docs Server

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

Visit Rust Docs Server

How to install and configure Rust Docs Server

  1. Download the pre-built binary for your platform (Linux, macOS, or Windows) from the Releases page on the repository, or pull the Docker image using 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.

What you can do with Rust Docs Server

  • Discovering third-party libraries on crates.io using fuzzy and partial name matching directly through AI conversations. - Inspecting public API structures, modules, and full API surfaces for specific versions of any Rust crate. - Reading full crate-level documentation pages from docs.rs to understand architecture, feature flags, and usage instructions. - Fetching detailed symbol metadata for structs, traits, and functions to accurately implement interfaces and call signatures. - Retrieving the full docstrings and markdown documentation for specific symbols inside complex dependencies like Tokio or Serde.

Key facts

  • https://github.com/vexxvakan/mcp-docsrs
  • Developer Tools & Code Intelligence
  • crates, documentation, rust, rustdoc

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server β€” MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON β€” MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete β€” MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go β€” MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager β€” MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP Lab β€” MCP Lab is an MCP server development environment designed for building, testing, and debugging custom Model Context Protocol servers integrated…

What is Rust Docs Server?

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.

What tools are provided by Rust Docs Server?

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.

Which MCP clients work with Rust Docs Server?

It supports any standard MCP client using stdio transport, with explicit support documented for Claude Code, Cursor, VS Code, Codex, Gemini CLI, and OpenCode.

How can I configure cache settings for Rust Docs Server?

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.

What license does Rust Docs Server use?

Rust Docs Server is open-source software licensed under the Apache License 2.0.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories