rs-doc-access-agent
Facilitates querying the entire Rust programming language documentation ecosystem hosted at docs.rs, allowing retrieval of crate metadata, type definitions, and underlying source code references.
Author

laptou
Quick Info
Actions
Tags
Rust Documentation Query Agent
This Model Context Protocol (MCP) service exposes an interface to the rich documentation corpus available on docs.rs for the Rust language. It empowers AI agents to investigate Rust libraries, type structures, versioning schemes, and source file locations.
Capabilities
- Execute searches across the docs.rs crate registry.
- Retrieve detailed documentation for specific libraries and their versions.
- Inspect type signatures (structs, traits, enums, etc.).
- Determine active feature gates/flags for a given crate.
- List all published versions for a library.
- Fetch the actual source code snippet for an item.
- Perform symbol lookups across the documented codebase.
Setup Prerequisites
The toolchain relies on Bun for development tasks, though the final deployed artifact runs under Node.js.
bash
Obtain the repository
git clone https://github.com/yourusername/rust-docs-mcp-server.git cd rust-docs-mcp-server
Install necessary dependencies
bun install
Compilation Process
bash
Build the operational server artifact
bun run build
This command results in compiled JavaScript assets within the build directory.
Execution
bash
Start in development mode
bun run dev
Or execute the compiled release version
bun run start
Integration with MCP Consumers
As an MCP implementation, this server is consumable by any compliant client by directing the client's configuration to this service's endpoint.
Exposed Toolset
The following functions are available via the protocol:
search_crates: For registry-wide crate searching.get_crate_documentation: Retrieves narrative docs for a specified crate/version.get_type_info: Provides structural details on a symbol.get_feature_flags: Lists enabled features for a package.get_crate_versions: Enumerates available releases.get_source_code: Fetches the corresponding source material.search_symbols: Finds symbols within a specific library context.
Verification
bash
Execute automated tests
bun test
Licensing
This software is distributed under the MIT License.
