docs.rs MCPSAFE
An MCP server that enables searching for Rust crates and their documentation from crates.io and docs.rs.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
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.
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@latest
Cursor
You can install by pressing the button below:
[](https://cursor.com/install-mcp?name=docs-rs&config=JTdCJTIyY29tbWFuZCUyMiUzQSUyMm5weCUyMCU0MG51c2tleTglMkZkb2NzLXJzLW1jcCU0MGxhdGVzdCUyMiU3RA%3D%3D)
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
c2a0109f2c74OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add docs-rs-mcp -- npx -y @nuskey8/[email protected]
{
"mcpServers": {
"docs-rs-mcp": {
"command": "npx",
"args": [
"-y",
"@nuskey8/[email protected]"
]
}
}
}Exposed tools (4)
4 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
docs_rs_get_item | read | Get documentation content of a specific item (module, struct, trait, enum, function, etc.) within a crate |
docs_rs_readme | read | Get README/overview content of the specified crate |
docs_rs_search_crates | read | Search for Rust crates by keywords on crates.io. |
docs_rs_search_in_crate | read | Search for traits, structs, methods, etc. from the crate |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (4 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
@modelcontextprotocol/sdk, @types/axios, @types/cheerio, @types/turndown, axios, cheerio, turndown, zod
Gates applied: no_behavioural_pass.
c2a0109f2c74full audit observations/trust-audit/mcp-server/nuskey8__docs-rs.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | c2a0109f2c74 | SAFE | B | 89 | first audit |
Questions
What is the Docs.rs MCP server?
An MCP server that enables searching for Rust crates and their documentation from crates.io and docs.rs.
What tools does Docs.rs expose?
4 in total: 4 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Docs.rs safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Docs.rs need?
No credential environment variables were found in its source, so it appears to need none.
How does Docs.rs run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @nuskey8/docs-rs-mcp at 1.0.1.
How current is this page?
The grade is for one exact copy of the source (c2a0109f2c74), read on 2026-10-08. The repository is watched and re-audited when it changes.