Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@mseep/rust-docs-mcp-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 installBuilding
# Build the server
bun run buildThis 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 startUsage 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 testLicense
MIT