MCP ExplorerExplorer

Mcp Rustdoc

@cyberelfon 9 months ago
19 MIT
FreeCommunity
AI Systems
MCP implementation for querying Rust API documentation from docs.rs.

Overview

What is Mcp Rustdoc

mcp_rustdoc is an implementation of the Model Context Protocol (MCP) that allows users to query Rust API documentation from docs.rs. It is built using the rmcp crate.

Use cases

Use cases for mcp_rustdoc include integrating Rust documentation into development tools, providing documentation for Rust-based applications, and facilitating learning and exploration of Rust libraries.

How to use

To use mcp_rustdoc, ensure that Rust and Cargo are installed, and then run the server using the command ‘cargo run’. You can customize the server type and address using command-line options.

Key features

Key features include querying documentation for specific functions in crates with specified versions, returning raw HTML documentation with metadata, and supporting both SSE server and stdio server modes.

Where to use

mcp_rustdoc can be used in software development environments where Rust API documentation is needed, particularly for developers working with Rust libraries and applications.

Content

Rust API Documentation MCP

This is a Model Context Protocol (MCP) implementation that allows querying Rust API documentation from docs.rs. Built with the rmcp crate.

Features

  • Query documentation for a specific function in a crate with a specific version
  • Returns raw HTML documentation with metadata
  • Supports both SSE server and stdio server modes

Usage

Prerequisites

  • Rust and Cargo installed
  • An MCP client

Running the Server

# Start SSE server (default) on the default address 127.0.0.1:8080
cargo run

# Start SSE server with custom address
cargo run -- --address 0.0.0.0:3000

# Start stdio server
cargo run -- --server-type stdio

# Show help
cargo run -- --help

CLI Options

Options:
  -s, --server-type <SERVER_TYPE>  Type of server to run [default: sse] [possible values: sse, stdio]
  -a, --address <ADDRESS>          Address for the SSE server [default: 127.0.0.1:8080]
  -h, --help                       Print help
  -V, --version                    Print version

Connecting to the Server

Configuration for MCP Clients (e.g., Cursor)

To connect an MCP client like Cursor to this server, you can use the following configuration.

Stdio Server Configuration

If you are running the server in stdio mode, use a configuration similar to this:

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers