- Home
- MCP servers
- MCP Docs Rust Server
MCP Docs Rust Server
- typescript
11
GitHub Stars
typescript
Language
4 months ago
First Indexed
3 weeks ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"vexxvakan-mcp-docsrs": {
"command": "node",
"args": [
"/path/to/mcp-docsrs/dist/index.js"
],
"env": {
"DB_PATH": ":memory:",
"CACHE_TTL": "3600000",
"MAX_CACHE_SIZE": "100",
"REQUEST_TIMEOUT": "30000"
}
}
}
}You deploy and run an MCP server that fetches Rust crate documentation from docs.rs via the rustdoc JSON API. It provides fast, item-level lookups with built-in caching, supports multiple platforms, and ships as a single executable or via Docker. It is designed to give you fast access to Rust documentation for crates and their items, with easy integration into your own MCP client workflows.
How to use
You use this MCP server by configuring it as a local (stdio) server or by pointing an MCP client at a remote HTTP MCP endpoint. The server exposes tools to fetch crate documentation, specific items within crates, and to search crates on crates.io. You can run it in production or development mode and then query it from your MCP client to retrieve rustdoc JSON data for crates, versions, and items.
To fetch documentation for an entire crate, you call the crate docs lookup tool and provide the crate name and optional version or semver range. To fetch a single item, you call the item docs lookup tool and provide the crate name and the item path such as a struct or function name. To discover crates by name, you use the crate search tool and provide a query string.
Available tools
lookup_crate_docs
Fetches comprehensive documentation for an entire Rust crate. Parameters include crateName, version, target, and formatVersion.
lookup_item_docs
Fetches documentation for a specific item within a crate. Parameters include crateName and itemPath, plus optional version and target.
search_crates
Search crates on crates.io with fuzzy or partial name matching. Parameters include query and limit.