Cargo Doc MCP Server
화물 문서 MCP 서버
cargo doc 명령을 통해 Rust 문서를 관리하는 MCP 서버입니다. 이 서버는 로컬에서 Rust 문서를 확인, 빌드 및 검색할 수 있는 도구를 제공합니다.
특징
도구
get_crate_doc- 전반적인 개념과 사용법을 이해하기 위한 Crate의 주요 문서 페이지를 가져옵니다.매개변수:
project_path: Rust 프로젝트 경로(절대 경로여야 함)crate_name: 문서를 가져올 크레이트의 이름
list_symbols- 크레이트 문서에 있는 모든 심볼(구조체, 열거형, 특성 등)을 나열합니다.매개변수:
project_path: Rust 프로젝트 경로(절대 경로여야 함)crate_name: 심볼을 나열할 크레이트의 이름
search_doc- 크레이트 문서 내에서 검색매개변수:
project_path: Rust 프로젝트 경로(절대 경로여야 함)crate_name: 검색할 상자의 이름query: 검색 쿼리(키워드 또는 기호)limit(선택 사항): 반환할 최대 결과 수(기본값: 10)
Related MCP server: MCP Rust Docs Server
요구 사항
Node.js 16 이상
Rust and Cargo 설치됨
설치
종속성 설치:
지엑스피1
서버를 빌드하세요:
pnpm run build자동 재빌드를 사용한 개발의 경우:
pnpm run watch용법
다음 구성을 추가합니다.
{
"mcpServers": {
"docs-rs-mcp": {
"command": "/absolute/path/to/docs-rs-mcp/build/index.js"
}
}
}디버깅
MCP 서버는 stdio를 통해 통신하므로 디버깅이 어려울 수 있습니다. MCP Inspector 사용을 권장합니다.
pnpm run inspector검사기는 브라우저에서 디버깅 도구에 액세스할 수 있는 URL을 제공합니다.
캐시 시스템
서버는 성능 향상을 위해 작성된 문서 경로의 캐시를 유지합니다. 캐시 항목은 문서가 최신 상태로 유지되도록 24시간 후에 만료됩니다.
특허
MIT
Available Tools
3 toolsget_crate_docA
Get crate's main documentation page. Useful for unresolved imports (e.g. use get_crate_doc when seeing 'unresolved import tokio::sync') or understanding crate features.
Inputs: project_path (required), crate_name (required).
list_symbolsB
List all symbols in a crate. Use when implementing traits or exploring available types. Shows structs, enums, traits with their paths.
Inputs: project_path (required), crate_name (required).
search_docB
Search crate docs for specific features, error messages, or usage examples. Helps debug compilation issues or learn new APIs.
Inputs: project_path (required), crate_name (required), query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: get_crate_doc retrieves main documentation pages, list_symbols enumerates all symbols in a crate, and search_doc performs targeted searches within documentation. There is no overlap in functionality, making it easy for an agent to select the appropriate tool based on the task.
All tool names follow a consistent verb_noun pattern (get_crate_doc, list_symbols, search_doc) with clear, descriptive verbs. There are no deviations in naming conventions, making the tool set predictable and easy to understand.
With only 3 tools, the server feels somewhat thin for a documentation-focused domain, as it might lack operations like updating or managing documentation. However, the tools cover core use cases, so it's borderline but not severely mismatched.
The tools provide good coverage for basic documentation tasks: retrieving main docs, listing symbols, and searching. Minor gaps exist, such as no direct support for navigating between documentation sections or handling version-specific docs, but agents can likely work around these limitations.
Maintenance
Related MCP Connectors
Search and read Rust documentation for the standard library and any crate on crates.io
Versioned documentation registry and semantic search for AI tools and coding assistants.
Search and read official Proa Rust framework documentation. Public, read-only, no credentials.
MCP server for opencode 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 gradedqualityDmaintenanceA Model Context Protocol (MCP) server for fetching Rust crate documentation from docs.rs using the rustdoc JSON API.13Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that enables searching for Rust crates and their documentation from docs.rs, allowing AI agents to find required crates and access the latest documentation.422 npm38MIT
- AlicenseAqualityCmaintenanceMCP server that fetches and searches the latest stable documentation for any package from PyPI, npm, and crates.io.5MIT