Back to Home
snowmead icon

rust-docs-mcp

Verified Safe

by snowmead

Overview

Provides AI agents with deep, cached access to Rust crate documentation, source code, and project structure for enhanced development.

Installation

Run Command
rust-docs-mcp

Environment Variables

  • GITHUB_TOKEN
  • RUST_DOCS_MCP_CACHE_DIR

Security Notes

The core Rust application employs robust path sanitization and directory traversal checks during archive extraction (e.g., in `downloader.rs`) to prevent common vulnerabilities. Sensitive environment variables like `GITHUB_TOKEN` are handled securely with `zeroize`. The server executes external Rust toolchain commands (`cargo`, `rustdoc`, `rustup`, `git`) which relies on the integrity and security of the local Rust environment and downloaded crates. The `install.sh` script utilizes `curl | sh` which is a common but inherently less secure method for initial installation, executing remote code directly. However, this is for installation, not the server's runtime operation.

Similar Servers

Stats

Interest Score55
Security Score8
Cost ClassMedium
Avg Tokens2500
Stars84
Forks3
Last Update2025-11-25

Tags

RustDocumentationAI AgentsCachingCode Analysis