Rust Docs MCP Server
laptou/rust-docs-mcp-server · 33 stars · TypeScript
MCP server
Install
The repo has no one-line install. Follow its README.
Files
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.
# Clone the repository git clone https://github.com/yourusername/rust-docs-mcp-server.git cd rust-docs-mcp-server # Install dependencies bun install
Building
# Build the server bun run build
This will create a build directory with the compiled JavaScript files.
Running
# Run the development server bun run dev # Or run the built server bun run start
Usage with MCP Clients
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.
Available Tools
The server provides the following tools:
search_crates: Search for crates on docs.rsget_crate_documentation: Get documentation for a specific crateget_type_info: Get type information for a specific itemget_feature_flags: Get feature flags for a crateget_crate_versions: Get available versions for a crateget_source_code: Get source code for a specific itemsearch_symbols: Search for symbols within a crate
Testing
# Run tests bun test
License
MIT
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 33
- Language
- TypeScript
- Last push
- 2025-03-03
- Forks
- 11
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k