Rust Docs MCP Server logo

Rust Docs MCP Server

by MCP-Mirror

An MCP server providing access to Rust documentation from docs.rs. It enables 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 from docs.rs. It allows AI tools to interact with and retrieve information about Rust crates and their documentation.

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. Configure your MCP client to connect to the server's endpoint. The server provides various tools that can be called by the MCP client to search for crates, get documentation, type information, feature flags, versions, and source code.

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

  • Enabling AI tools to understand Rust code and documentation

  • Providing context to language models for code generation

  • Automated documentation lookup for IDEs

  • Building intelligent code assistants

FAQ from Rust Docs MCP Server

What is MCP?

MCP stands for Model Context Protocol, a protocol for providing context to language models.

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 run the tests?

Use the command bun test to run the tests.

What license is this project under?

This project is licensed under the MIT license.