An MCP server that provides AI tools with access to Rust documentation from docs.rs, enabling search for crates, documentation, type information, feature flags, version information, and source code.
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.
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
# Build the server bun run build
This will create a build directory with the compiled JavaScript files.
# Run the development server bun run dev # Or run the built server bun run start
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.
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# Run tests bun test
MIT
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!