JUHE API Marketplace
spacemeowx2 avatar
MCP Server

Cargo Doc MCP Server

A server for managing Rust documentation that enables users to check, build, and search Rust documentation locally through cargo doc commands.

9
GitHub Stars
11/23/2025
Last Updated
MCP Server Configuration
1{
2 "name": "docs-rs-mcp",
3 "command": "/absolute/path/to/docs-rs-mcp/build/index.js"
4}
JSON4 lines
  1. Home
  2. MCP Servers
  3. cargo-doc-mcp

README Documentation

cargo doc MCP Server

A MCP server for managing Rust documentation through cargo doc commands. This server provides tools to check, build, and search Rust documentation locally.

Cargo Doc Server MCP server

Features

Tools

  • get_crate_doc - Get crate's main documentation page for understanding overall concepts and usage

    • Parameters:
      • project_path: Path to the Rust project (must be absolute path)
      • crate_name: Name of the crate to get documentation for
  • list_symbols - List all symbols (structs, enums, traits, etc.) in a crate's documentation

    • Parameters:
      • project_path: Path to the Rust project (must be absolute path)
      • crate_name: Name of the crate to list symbols for
  • search_doc - Search within a crate's documentation

    • Parameters:
      • project_path: Path to the Rust project (must be absolute path)
      • crate_name: Name of the crate to search in
      • query: Search query (keyword or symbol)
      • limit (optional): Maximum number of results to return (default: 10)

Requirements

  • Node.js 16 or later
  • Rust and Cargo installed

Installation

Install dependencies:

pnpm install

Build the server:

pnpm run build

For development with auto-rebuild:

pnpm run watch

Usage

Add the following configuration:

{
  "mcpServers": {
    "docs-rs-mcp": {
      "command": "/absolute/path/to/docs-rs-mcp/build/index.js"
    }
  }
}

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector:

pnpm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Cache System

The server maintains a cache of built documentation paths to improve performance. Cache entries expire after 24 hours to ensure documentation stays up-to-date.

License

MIT

Quick Install

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright © 2025 - All rights reserved