1. Conduid
  2. Developer Tools
  3. Rust Docs
MCP server · Developer Tools

Rust Docs

An MCP to retrieve rust crate documentation for LLM's

Unclaimed last commit a year ago llmmcprustdevtools
46Fair

Scored 4 months ago · breakdown

About Rust Docs

Rust Docs is an MCP server published by 0xKoda in the Developer Tools category: an MCP to retrieve rust crate documentation for LLM's. It has been installed 0 times through Conduid.

The repository has 46 stars and 10 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.

Install

Install
npx mcp-rust-docs

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

Ask AI about Rust Docs

Powered by Claude · Grounded in docs

I know everything about Rust Docs. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ·README presentNot checked yet.
  • ·License declaredNot checked yet.
  • ·Tests presentNot checked yet.
  • ·Dependencies pinnedNot checked yet.
  • ·No dynamic code executionNot checked yet.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

MCP Rust Documentation Server

This is a Model Context Protocol (MCP) server that fetches and returns documentation for Rust crates providing essential context for LLM's when working with Rust code.

Features

  • Fetches documentation for any Rust crate available on docs.rs
  • Strips HTML and formats the content for readability
  • Limits response size to prevent overwhelming the client
  • Uses the latest MCP SDK (v1.6.1)

Installation

# Clone the repository
git https://github.com/0xKoda/mcp-rust-docs.git
cd mcp-rust-docs

# Install dependencies
npm install

Prerequisites

  • Node.js
  • npm

Usage

# Start the server directly
npm start

Integrating with AI Assistants

Claude Desktop

Add the following to your Claude Desktop configuration file (claude_desktop_config.json):

{
  "mcpServers": {
    "rust-docs": {
      "command": "node",
      "args": ["/absolute/path/to/index.js"]
    }
  }
}

Replace /absolute/path/to/index.js with the absolute path to the index.js file in this repository.

Example Usage

Once the server is running and configured with your AI assistant, you can ask questions like:

  • "Look up the documentation for the 'tokio' crate"
  • "What features does the 'serde' crate provide?"
  • "Show me the documentation for 'ratatui'"
  • "Can you explain the main modules in the 'axum' crate?"

The AI will use the lookup_crate_docs tool to fetch and display the relevant documentation.

Testing with MCP Inspector

You can test this server using the MCP Inspector:

npx @modelcontextprotocol/inspector

Then select the "Connect to a local server" option and follow the prompts.

How It Works

This server implements a single MCP tool called lookup_crate_docs that:

  1. Takes a Rust crate name as input (optional, defaults to 'tokio' if not provided)
  2. Fetches the documentation from docs.rs
  3. Converts the HTML to plain text using the html-to-text library
  4. Truncates the content if it exceeds 8000 characters
  5. Returns the formatted documentation in the proper MCP response format

SDK Implementation Notes

This server uses the MCP SDK with carefully structured import paths. If you're modifying the code, be aware that:

  1. The SDK requires importing from specific paths (e.g., @modelcontextprotocol/sdk/server/mcp.js)
  2. We use the high-level McpServer API rather than the low-level tools
  3. The tool definition uses Zod for parameter validation
  4. Console output is redirected to stderr to avoid breaking the MCP protocol
  5. The tool returns properly formatted MCP response objects

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

README mirrored from the source repository 4 months ago. The original is authoritative.

Questions

About Rust Docs

How do I install Rust Docs?

Run npx mcp-rust-docs, then add the server to your MCP client's configuration. Conduid has recorded 0 installs, so the command is known to work with current clients.

Is Rust Docs safe to use with an AI agent?

Its trust score is 46 out of 100 (fair). It passes 0 of 1 static security checks; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Rust Docs still maintained?

The last commit was a year ago, with 0 open issues. That's long enough that you should check whether the maintainer is responding to issues before depending on it.