Rust Docs Server logo

Rust Docs Server

Community
vexxvakan

Fetches Rust crate documentation from docs.rs using the rustdoc JSON API.

Publishervexxvakan
Repositorymcp-docsrs
LanguageTypeScript
Forks
7
Stars
13
Available tools
0
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Rust Docs Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    13 stars and 7 forks from the linked repository.

Docs.rs MCP Server

License: Apache 2.0

A Model Context Protocol (MCP) server for fetching Rust crate documentation from docs.rs

Features • Getting Started • Tools • Contributing • Acknowledgments • License

Features

  • Find New Crates - Search crates by exact name, partial match, or fuzzy query to discover relevant libraries
  • Inspect Crate Symbols - Inspect structs, traits, functions, and any other symbol inside a crate
  • Review Crate Summaries - Get a crate overview with its structure and public API surface
  • Read Full Documentation - Read crate-level documentation

Getting Started

Using Pre-built Executables

Download the latest release for your platform from the Releases page:

Linux

  • x64/AMD64 (GLIBC): mcp-docsrs-linux-x64 - For Ubuntu, Debian, Fedora, etc.
  • ARM64 (GLIBC): mcp-docsrs-linux-arm64 - For ARM64 systems, AWS Graviton
  • x64/AMD64 (MUSL): mcp-docsrs-linux-x64-musl - For Alpine Linux, Docker containers (requires libstdc++)
  • ARM64 (MUSL): mcp-docsrs-linux-arm64-musl - For Alpine on ARM64, minimal containers (requires libstdc++)

macOS

  • Intel: mcp-docsrs-darwin-x64 - For Intel-based Macs
  • Apple Silicon: mcp-docsrs-darwin-arm64 - For M-series Macs

Windows

  • x64: mcp-docsrs-windows-x64.exe - For 64-bit Windows

Using Docker

Pull and run the latest multi-arch image (supports both x64 and ARM64):

bash
# Pull the latest image
docker pull ghcr.io/vexxvakan/mcp-docsrs:latest

# Run the server
docker run --rm -i ghcr.io/vexxvakan/mcp-docsrs:latest

# Run with custom configuration
docker run --rm -i ghcr.io/vexxvakan/mcp-docsrs:latest \
  --cache-ttl 7200000 --max-cache-size 200

Available tags:

  • latest - Latest stable release (multi-arch)
  • v1.0.0 - Specific version (multi-arch)

MCP Setup

ClientCommand
Codexcodex mcp add docsrs -- path/to/mcp-docsrs
Claude Codeclaude mcp add --transport stdio docsrs -- path/to/mcp-docsrs
Gemini CLIgemini mcp add -s user docsrs path/to/mcp-docsrs
OpenCodeRun opencode mcp add, choose a local MCP server, then point it at path/to/mcp-docsrs.
VS CodeOpen Command Palette (Cmd/Ctrl+Shift+P) → MCP: Add Server → choose Workspace or User → Command (stdio) → enter path/to/mcp-docsrs.
CursorOpen Settings (Cmd/Ctrl+Shift+J) → Tools & Integrations → New MCP Server → choose a local/stdio server → enter path/to/mcp-docsrs.

After adding the server, restart the client if it does not discover the tools immediately.

Configuration

Configure the server using environment variables or command-line arguments:

VariableCLI FlagDefaultDescription
CACHE_TTL--cache-ttl3600000Cache time-to-live in milliseconds
MAX_CACHE_SIZE--max-cache-size100Maximum number of cached entries
REQUEST_TIMEOUT--request-timeout30000HTTP request timeout in milliseconds
DB_PATH--db-path:memory:Path to SQLite database file

Tools

The server exposes four MCP tools:

Crate

crate_lookup

Retrieves a crate overview with its structure and public API surface from docs.rs.

ParameterTypeRequiredDescription
crateNamestringYesName of the Rust crate to inspect
versionstringNoSpecific version or semver range, for example "1.0.0" or "~4"
targetstringNoTarget platform, for example "i686-pc-windows-msvc"
formatVersionnumberNoRustdoc JSON format version
json
{
  "tool": "crate_lookup",
  "arguments": {
    "crateName": "tokio",
    "version": "1.48.0"
  }
}

crate_docs

Retrieves the crate-level documentation page from docs.rs.

ParameterTypeRequiredDescription
crateNamestringYesName of the Rust crate to inspect
versionstringNoSpecific version or semver range, for example "1.0.0" or "~4"
targetstringNoTarget platform, for example "i686-pc-windows-msvc"
formatVersionnumberNoRustdoc JSON format version
json
{
  "tool": "crate_docs",
  "arguments": {
    "crateName": "serde"
  }
}

crate_find

Searches crates.io for matching crates and returns ranked results using fuzzy and partial name matching.

ParameterTypeRequiredDescription
querystringYesSearch query for crate names
limitnumberNoMaximum number of results to return. Defaults to 10
json
{
  "tool": "crate_find",
  "arguments": {
    "query": "rustdoc json",
    "limit": 5
  }
}

Symbol

symbol_lookup

Retrieves structured symbol metadata for one symbol inside a crate.

ParameterTypeRequiredDescription
crateNamestringYesName of the Rust crate
symbolTypestringYesRustdoc symbol type, for example "struct", "function", or "trait"
symbolnamestringYesSymbol name or path, for example "runtime::Runtime" or "spawn"
versionstringNoSpecific version or semver range
targetstringNoTarget platform
json
{
  "tool": "symbol_lookup",
  "arguments": {
    "crateName": "tokio",
    "symbolType": "struct",
    "symbolname": "runtime::Runtime"
  }
}

symbol_docs

Retrieves the full documentation body for one symbol inside a crate.

ParameterTypeRequiredDescription
crateNamestringYesName of the Rust crate
symbolTypestringYesRustdoc symbol type, for example "struct", "function", or "trait"
symbolnamestringYesSymbol name or path, for example "runtime::Runtime" or "spawn"
versionstringNoSpecific version or semver range
targetstringNoTarget platform
json
{
  "tool": "symbol_docs",
  "arguments": {
    "crateName": "tokio",
    "symbolType": "struct",
    "symbolname": "runtime::Runtime"
  }
}

Contributing

Acknowledgments

  • docs.rs for providing the Rust documentation API
  • Model Context Protocol for the MCP specification
  • The Rust community for excellent documentation standards

License

This project is licensed under the Apache License 2.0. See LICENSE for the license text and NOTICE for attribution details.


Made with ❤️ for the Rust community

Report Bug • Request Feature

Use Rust Docs Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Rust Docs Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Rust Docs Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Rust Docs Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mcp-docsrs": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Rust Docs Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Rust Docs Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Rust Docs Server to help me with this task?
Rust Docs Server
Sure. I read it.
Here is what I found using Rust Docs Server.

Frequently asked questions

What is the Rust Docs Server MCP server used for?

Rust Docs Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Rust Docs Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Rust Docs Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Rust Docs Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Rust Docs Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Rust Docs Server MCP to TypingMind?

Rust Docs Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Rust Docs Server MCP provide in TypingMind?

Rust Docs Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Rust Docs Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Rust Docs Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇