Rust Docs
An MCP server that provides AI tools with access to Rust documentation from docs.rs, enabling search for crates, documentation, type information, feature flags, version information, and source code.
What is Rust Docs?
Rust Docs is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server that provides ai tools with access to rust documentation from docs.rs, enabling search for crates, documentation, type information, feature flags, version information, and source code.
An MCP server that provides AI tools with access to Rust documentation from docs.rs, enabling search for crates, documentation, type information, feature flags, version information, and source code.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- An MCP server that provides AI tools with access to Rust doc
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx rust-docs-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Rust Docs
The Rust Docs MCP Server gives AI assistants direct access to Rust documentation hosted on docs.rs, exposing seven tools for searching crates, retrieving documentation, looking up type information for structs, enums, and traits, exploring feature flags, listing available versions, fetching source code, and searching symbols within crates. It is built with TypeScript and Bun and integrates with any MCP-compatible client, making it ideal for Rust developers who want their AI assistant to look up accurate crate documentation during coding sessions rather than relying on potentially outdated training data.
Prerequisites
- Bun installed (for building from source — see bun.sh for installation)
- Node.js (to run the built server in production)
- Git to clone the repository
- An MCP client such as Claude Desktop or any MCP-compatible host
- Internet access to reach docs.rs for documentation lookups
Clone the repository
Clone the Rust Docs MCP Server from GitHub.
git clone https://github.com/laptou/rust-docs-mcp-server.git
cd rust-docs-mcp-serverInstall dependencies
Install all required packages using Bun.
bun installBuild the server
Compile the TypeScript source to JavaScript output that can be run with Node.js.
bun run buildConfigure Claude Desktop
Add the server to your Claude Desktop configuration. The built output is run with Node.js. Replace the path with the absolute path to your cloned repository.
{
"mcpServers": {
"rust-docs": {
"command": "node",
"args": ["/path/to/rust-docs-mcp-server/dist/index.js"]
}
}
}Verify with tests
Optionally run the test suite to confirm everything is working before connecting to your MCP client.
bun testRust Docs Examples
Client configuration
Claude Desktop configuration for the Rust Docs MCP Server. No environment variables or API keys are required.
{
"mcpServers": {
"rust-docs": {
"command": "node",
"args": ["/path/to/rust-docs-mcp-server/dist/index.js"]
}
}
}Prompts to try
Example prompts for looking up Rust crate documentation during development.
- "Search for crates related to async HTTP clients in Rust"
- "Show me the documentation for the tokio::sync::Mutex type"
- "What feature flags does the serde crate support?"
- "List all available versions of the reqwest crate"
- "Get the source code for the HashMap::insert method"
- "Find all symbols in the axum crate related to routing"Troubleshooting Rust Docs
Build fails with TypeScript or Bun errors
Ensure Bun is up to date by running 'bun upgrade'. If errors persist, delete the node_modules directory and run 'bun install' again before rebuilding.
Server starts but documentation lookups fail
The server fetches data live from docs.rs. Verify your machine has internet access and that docs.rs is reachable. Some corporate networks block external documentation sites — check with your network administrator.
Claude Desktop cannot find the server binary
The args path must point to the built output file (typically dist/index.js or build/index.js). Run 'ls dist/' or 'ls build/' after building to find the exact output file name and update the path accordingly.
Frequently Asked Questions about Rust Docs
What is Rust Docs?
Rust Docs is a Model Context Protocol (MCP) server that mcp server that provides ai tools with access to rust documentation from docs.rs, enabling search for crates, documentation, type information, feature flags, version information, and source code. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Rust Docs?
Follow the installation instructions on the Rust Docs GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Rust Docs?
Rust Docs works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Rust Docs free to use?
Yes, Rust Docs is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Rust Docs Alternatives — Similar Developer Tools Servers
Looking for alternatives to Rust Docs? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Rust Docs in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Rust Docs?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.