Rust Docs

v1.0.0Developer Toolsstable

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.

rust-docs-mcp-servermcpai-integration
Share:
31
Stars
0
Downloads
0
Weekly
0/5

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

Search Rust crates, documentation, and type information from docs.rs.
Access feature flags, version information, and source code for Rust libraries.
Provide AI tools with comprehensive Rust documentation access.
laptou

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMar 13, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx rust-docs-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-server
2

Install dependencies

Install all required packages using Bun.

bun install
3

Build the server

Compile the TypeScript source to JavaScript output that can be run with Node.js.

bun run build
4

Configure 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"]
    }
  }
}
5

Verify with tests

Optionally run the test suite to confirm everything is working before connecting to your MCP client.

bun test

Rust 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.

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.

Quick Config Preview

{ "mcpServers": { "rust-docs-mcp-server": { "command": "npx", "args": ["-y", "rust-docs-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides