docs.rs MCP
Enables searching for Rust crates and their documentation from docs.rs, allowing AI agents to search for required crates, obtain the latest documentation, search for specific APIs, and access crate READMEs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@docs.rs MCP search for crates that handle JSON serialization"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
docs.rs MCP
An MCP server that enables searching for Rust crates and their documentation from docs.rs.
English | 日本語
Overview
docs.rs MCP is an MCP server that searches the Rust crate documentation site docs.rs. By using this, AI Agents can search for required crates and obtain the latest documentation as needed.

Related MCP server: Documentation Retrieval MCP Server (DOCRET)
Features
Tools specialized for searching docs.rs
Supports multiple use cases, from searching for crates themselves to searching for specific APIs
LLM-friendly Markdown output
Requirements
Node.js 18 or newer
VS Code, Cursor, Claude Desktop or any other MCP client
Setup
Visual Studio Code (VSCode)
Add the following to .vscode/mcp.json:
{
"servers": {
"docs-rs": {
"command": "npx",
"args": [
"@nuskey8/docs-rs-mcp@latest",
"-y"
]
}
}
}Claude Code
Run the following command:
claude mcp add docs-rs -s project -- npx -y @nuskey8/docs-rs-mcp@latestCursor
You can install by pressing the button below:
Or, add a new MCP server that runs the npx @nuskey8/docs-rs-mcp command from Cursor Settings > MCP > Add new MCP Server.
Others
For other tools, please refer to the documentation as needed and add an MCP server that runs the npx @nuskey8/docs-rs-mcp command.
Tools
Tool | Description |
| Searches for crates by keyword. |
| Retrieves the README/overview of the specified crate. |
| Retrieves documentation for a specific item (module, struct, trait, enum, function, etc.) in a crate. |
| Searches for traits, structs, methods, etc. from the all.html page in a crate. |
License
This library is provided under the MIT License.
Available Tools
4 toolsdocs_rs_get_itemB
Get documentation content of a specific item (module, struct, trait, enum, function, etc.) within a crate
Inputs: crate_name (required), item_type (required), item_path (required), version.
docs_rs_readmeB
Get README/overview content of the specified crate
Inputs: crate_name (required), version.
docs_rs_search_cratesB
Search for Rust crates by keywords on crates.io.
Inputs: query (required), per_page, sort.
docs_rs_search_in_crateA
Search for traits, structs, methods, etc. from the crate's all.html page. To get a module, use docs_rs_get_item instead.
Inputs: crate_name (required), query (required), version, item_type.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: get_item retrieves specific documentation, readme gets crate overviews, search_crates finds crates, and search_in_crate searches within a crate. The descriptions explicitly differentiate them, with no overlap in functionality.
All tools follow a consistent docs_rs_verb_noun naming pattern (e.g., docs_rs_get_item, docs_rs_search_crates). This uniformity makes the tool set predictable and easy to understand at a glance.
With 4 tools, this server is well-scoped for its purpose of accessing Rust documentation. Each tool serves a distinct and necessary function, with no redundancy or missing core operations for the domain.
The tool set covers key operations for Rust documentation access: retrieving specific items, crate overviews, crate searching, and intra-crate searching. A minor gap might be the lack of a tool for listing all items in a crate, but the provided tools enable effective workflows.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Capability registry for the agentic economy. Semantic search over verified MCP server listings.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
MCP server for agentverse documentation, generated by doc2mcp.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn 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.33-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI assistants to access up-to-date documentation for Python libraries like LangChain, LlamaIndex, and OpenAI through dynamic fetching from official sources.1MIT
- AlicenseAqualityCmaintenanceMCP server that fetches and searches the latest stable documentation for any package from PyPI, npm, and crates.io.5MIT
- AlicenseNot gradedqualityDmaintenanceA Docs.rs MCP server that enables AI models to deeply access Rust crate documentation, including searching crates, viewing API definitions, feature flags, and code examples, all within the editor.2ISC