What is Bookworm?
Bookworm is an MCP (Model Context Protocol) server that provides LLMs with local access to Rust crate documentation from docs.rs. It downloads, indexes, and serves crate documentation, items, metadata, and source code via a set of MCP tools.
How to use Bookworm?
Install and run via Cargo: cargo run --bin wrm-mcp. Configure your MCP client (e.g., Claude.ai) with a JSON entry pointing to the wrm-mcp binary. Once the server is running, an LLM can use the provided tools to search crates, browse items, and fetch resources.
Key features of Bookworm
- Download and cache crate documentation locally.
- Index documentation into a SQLite database for fast queries.
- Query documentation by crate name, version, or item path.
- Expose MCP tools:
crates_search, crate_search_items, crate_resource.
- Support for fetching crate metadata, readmes, items, and source code.
Use cases of Bookworm
- An LLM assistant answering questions about Rust crate APIs.
- Offline exploration of docs.rs documentation without a network.
- Automated code generation or analysis using crate documentation.
- Integrating Rust crate knowledge into AI‑powered development tools.
コメント