Rust Docs MCP Server logo

Rust Docs MCP Server

by laptou

An MCP server providing access to Rust documentation from docs.rs. It allows AI tools to search for documentation, type information, feature flags, version numbers, and symbol definitions/source code.

View on GitHub

Last updated: N/A

What is Rust Docs MCP Server?

This is an MCP (Model Context Protocol) server that provides access to Rust documentation sourced from docs.rs. It enables AI tools and other applications to programmatically retrieve detailed information about Rust crates, types, features, and source code.

How to use Rust Docs MCP Server?

To use this server, you need to clone the repository, install dependencies using Bun, build the server, and then run it. You can then configure an MCP client to connect to the server and utilize the available tools, such as search_crates, get_crate_documentation, etc.

Key features of Rust Docs MCP Server

  • Search for crates on docs.rs

  • Get documentation for specific crates and versions

  • Get type information (structs, enums, traits, etc.)

  • Get feature flags for crates

  • Get available versions for crates

  • Get source code for specific items

  • Search for symbols within crates

Use cases of Rust Docs MCP Server

  • AI tools needing Rust documentation for code completion

  • Automated documentation generation

  • Static analysis tools requiring type information

  • IDE integrations for Rust development

FAQ from Rust Docs MCP Server

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for exchanging information between different tools.

What is docs.rs?

docs.rs is a website that hosts documentation for Rust crates.

What dependencies are required?

This project uses Bun for development, but the built server can run with Node.js.

How do I build the server?

Run bun run build to create a build directory with the compiled JavaScript files.

How do I run the server?

Run bun run dev for the development server or bun run start for the built server.