drio
Open app

Rust Docs MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

Rust Docs MCP Server is an MCP (Model Context Protocol) server that provides access to Rust documentation from docs.rs, enabling AI tools to search for documentation, type information, feature flags, version numbers, and symbol definitions/source code.

To use the Rust Docs MCP Server, clone the repository, install dependencies using Bun, build the server, and run it either in development mode or as a built server. Configure your MCP client to connect to this server for documentation access.

  • Search for crates on docs.rs - Get documentation for specific crates and versions - Retrieve type information (structs, enums, traits, etc.) - Access feature flags for crates - Get available versions for crates - Fetch source code for specific items - Search for symbols within crates
  1. Assisting developers in finding Rust crate documentation quickly.
  2. Enabling AI tools to provide contextual documentation while coding.
  3. Facilitating the exploration of Rust features and types for better understanding.

Add to your AI client

Use these steps to connect Rust Docs MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

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

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

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

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

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

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "rust-docs-mcp-server-laptou": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-rust-docs-mcp-server-laptou"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

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

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

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

FAQ

What is the Model Context Protocol?

The Model Context Protocol (MCP) is a protocol that allows tools to communicate and access contextual information from servers like this one.

How do I install the Rust Docs MCP Server?

You can install it by cloning the repository and using Bun to install dependencies.

Is there a license for this project?

Yes, the project is licensed under the MIT License.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1848,"uuid":"d7bfe177-8e2d-4cf2-a720-79777322ccd0","name":"rust-docs-mcp-server","title":"Rust Docs MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/14832331?v=4","created_at":"2025-03-05T05:41:40.225Z","updated_at":"2025-03-12T10:21:15.345Z","status":"created","author_name":"laptou","author_avatar_url":"https://avatars.githubusercontent.com/u/14832331?v=4","tags":"rust,mcp,server,documentation","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/laptou/rust-docs-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-02 23:34:39\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]