Rust Docs
About
Integrates with Rust documentation from docs.rs, enabling search for crates, retrieval of documentation, type information, feature flags, versions, and source code for Rust projects.
Details
- Author
- laptou
- Repository
- laptou/rust-docs-mcp-server
- GitHub stars
- 12
- Categories
- Developer Tools, Design, Workplace, File Management, AI, Search, Infrastructure, Project Management, Knowledge Base, Frontend
Jump to
- 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Rust DocsCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
This project uses Bun for development, but the built server can run with Node.js.
bun install
```bash
This server implements the Model Context Protocol and can be used with any MCP client. To use it with an MCP client, you'll need to configure the client to connect to this server.
search_crates
Search for crates on docs.rs.
get_crate_documentation
Get documentation for a specific crate.
get_type_info
Get type information for a specific item.
get_feature_flags
Get feature flags for a crate.
get_crate_versions
Get available versions for a crate.
get_source_code
Get source code for a specific item.
search_symbols
Search for symbols within a crate.
The server provides the following tools:
- search_crates: Search for crates on docs.rs
- get_crate_documentation: Get documentation for a specific crate
- get_type_info: Get type information for a specific item
- get_feature_flags: Get feature flags for a crate
- get_crate_versions: Get available versions for a crate
- get_source_code: Get source code for a specific item
- search_symbols: Search for symbols within a crate
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"rust docs": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
Rust Docs MCP Server
An MCP (Model Context Protocol) server that provides access to Rust documentation from docs.rs. This server allows AI tools to search for documentation, type information, feature flags, version numbers, and symbol definitions/source code.
Features
- 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
Installation
This project uses Bun for development, but the built server can run with Node.js.
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





