Skip to main content
Glama

docs.rs MCP

by nuskey8

docs.rs MCP

An MCP server that enables searching for Rust crates and their documentation from docs.rs.

English | 日本語

Overview

docs.rs MCP is an MCP server that searches the Rust crate documentation site docs.rs. By using this, AI Agents can search for required crates and obtain the latest documentation as needed.

Features

  • Tools specialized for searching docs.rs
  • Supports multiple use cases, from searching for crates themselves to searching for specific APIs
  • LLM-friendly Markdown output

Requirements

  • Node.js 18 or newer
  • VS Code, Cursor, Claude Desktop or any other MCP client

Setup

Visual Studio Code (VSCode)

Add the following to .vscode/mcp.json:

{ "servers": { "docs-rs": { "command": "npx", "args": [ "@nuskey8/docs-rs-mcp@latest", "-y" ] } } }

Claude Code

Run the following command:

claude mcp add docs-rs -s project -- npx -y @nuskey8/docs-rs-mcp@latest

Cursor

You can install by pressing the button below:

Or, add a new MCP server that runs the npx @nuskey8/docs-rs-mcp command from Cursor Settings > MCP > Add new MCP Server.

Others

For other tools, please refer to the documentation as needed and add an MCP server that runs the npx @nuskey8/docs-rs-mcp command.

Tools

ToolDescription
docs_rs_search_cratesSearches for crates by keyword.
docs_rs_readmeRetrieves the README/overview of the specified crate.
docs_rs_get_itemRetrieves documentation for a specific item (module, struct, trait, enum, function, etc.) in a crate.
docs_rs_search_in_crateSearches for traits, structs, methods, etc. from the all.html page in a crate.

License

This library is provided under the MIT License.

-
security - not tested
A
license - permissive license
-
quality - not tested

An MCP server that enables searching for Rust crates and their documentation from docs.rs, allowing AI agents to find required crates and access the latest documentation.

  1. Overview
    1. Features
      1. Requirements
        1. Setup
          1. Visual Studio Code (VSCode)
          2. Claude Code
          3. Cursor
          4. Others
        2. Tools
          1. License

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              An MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context
              Last updated -
              7
              33
              211
              TypeScript
              MIT License
            • -
              security
              A
              license
              -
              quality
              An MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context. Uses Ollama or OpenAI to generate embeddings. Docker files included
              Last updated -
              6
              22
              TypeScript
              MIT License
              • Apple
              • Linux
            • -
              security
              F
              license
              -
              quality
              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.
              Last updated -
              23
              TypeScript
            • -
              security
              F
              license
              -
              quality
              An MCP server that crawls API documentation websites and exposes their content to AI models, enabling them to search, browse, and reference API specifications.
              Last updated -
              Python

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/nuskey8/docs-rs-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server