VM

vexxvakan/mcp-docsrs

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

13 stars 7 forks 质量 76 趋势 40Apache-2.0

- 按确切名称、部分匹配或模糊的查询搜索箱子,以发现相关库 - 检查结构、特征、功能以及箱子内的任何其他符号 - 获得一个箱子概览,其中...

概览

- 按确切名称、部分匹配或模糊的查询搜索箱子,以发现相关库 - 检查箱内的结构、特征、功能和任何其他符号 - 获取箱型概览,其结构和公共API表面 - 阅读箱级文档 从“发布”页面下载您平台的最新版本 : - :mcp-docs-linux-x64 - 对于Ubuntu,Debian,Fedora等 - :mcp-docs-linux-arm64 - 对于ARM64系统,AWS Graviton - :mcp-docs-linux-x64-musl - 对于Alpine Linux, Docker容器(要求libstdc++) - :mcp-docs-linux-arm64-musl - 对于ARM64上的阿尔卑斯山,最小容器(要求libstc++) - :mcp-docs-darwin-x64 - 为基于英特尔的Macs - 为:mcp-docs-darwin-arm64 - 为M系列Macs - mcp-docers-windows-x64.exe - 对于64位的Windows 拉出并运行最新的多向图像(支持x64和ARM64): - 最新稳定释放(多管)-v1.0.

概述(AI 翻译)

A ** 模式上下文协议** (MCP) 服务器,用于** 牵引 Rust 箱子文档** 从docs.rs

• 获得许可证

□ 特性

  • ** 寻找新 Crates** - 按确切名称、部分匹配或模糊查询搜索箱子以发现相关库
  • ** 检查窗体符号** - 检查箱内的结构、特征、功能和任何其他符号
  • 审查Crate摘要 - 获得其结构和公众API表面的箱子概览
  • ** 读取完整的文档** - 读取箱子级文档

∮开始∮

使用预建可执行文件

从“发布”页面下载您平台的最新版本 :

QQ Linux 软件

  • x64/AMD64(GLIBC): mcp-docsrs-linux-x64- 对于Ubuntu, Debian, Fedora等.
  • ARM64(GLIBC):mcp-docsrs-linux-arm64 – – 对于ARM64系统,AWS Graviton
  • x64/AMD64(MUSL): mcp-docsrs-linux-x64-musl – – 对于高山Linux,多克容器(需要libstdc++)
  • ARM64(MUSL):mcp-docsrs-linux-arm64-musl – – 对于ARM64上的阿尔卑斯山,最低容器(需要libstdc++)

{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢?

  • ** 英特尔**:mcp-docsrs-darwin-x64 - 用于以英特尔为基础的Macs

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Docs.rs MCP Server

A Model Context Protocol (MCP) server for fetching Rust crate documentation from docs.rs

Features • Getting Started • Tools • Contributing • Acknowledgments • License

Features

  • Find New Crates - Search crates by exact name, partial match, or fuzzy query to discover relevant libraries
  • Inspect Crate Symbols - Inspect structs, traits, functions, and any other symbol inside a crate
  • Review Crate Summaries - Get a crate overview with its structure and public API surface
  • Read Full Documentation - Read crate-level documentation

Getting Started

Using Pre-built Executables

Download the latest release for your platform from the Releases page:

Linux

  • x64/AMD64 (GLIBC): mcp-docsrs-linux-x64 - For Ubuntu, Debian, Fedora, etc.
  • ARM64 (GLIBC): mcp-docsrs-linux-arm64 - For ARM64 systems, AWS Graviton
  • x64/AMD64 (MUSL): mcp-docsrs-linux-x64-musl - For Alpine Linux, Docker containers (requires libstdc++)
  • ARM64 (MUSL): mcp-docsrs-linux-arm64-musl - For Alpine on ARM64, minimal containers (requires libstdc++)

macOS

  • Intel: mcp-docsrs-darwin-x64 - For Intel-based Macs
  • Apple Silicon: mcp-docsrs-darwin-arm64 - For M-series Macs

Windows

  • x64: mcp-docsrs-windows-x64.exe - For 64-bit Windows

Using Docker

Pull and run the latest multi-arch image (supports both x64 and ARM64):

# Pull the latest image
docker pull ghcr.io/vexxvakan/mcp-docsrs:latest

# Run the server
docker run --rm -i ghcr.io/vexxvakan/mcp-docsrs:latest

# Run with custom configuration
docker run --rm -i ghcr.io/vexxvakan/mcp-docsrs:latest \
  --cache-ttl 7200000 --max-cache-size 200

Available tags:

  • latest - Latest stable release (multi-arch)
  • v1.0.0 - Specific version (multi-arch)

MCP Setup

Client Command
Codex codex mcp add docsrs -- path/to/mcp-docsrs
Claude Code claude mcp add --transport stdio docsrs -- path/to/mcp-docsrs
Gemini CLI gemini mcp add -s user docsrs path/to/mcp-docsrs
OpenCode Run opencode mcp add, choose a local MCP server, then point it at path/to/mcp-docsrs.
VS Code Open Command Palette (Cmd/Ctrl+Shift+P) → MCP: Add Server → choose Workspace or User → Command (stdio) → enter path/to/mcp-docsrs.
Cursor Open Settings (Cmd/Ctrl+Shift+J) → Tools & Integrations → New MCP Server → choose a local/stdio server → enter path/to/mcp-docsrs.

After adding the server, restart the client if it does not discover the tools immediately.

Configuration

在 GitHub 查看完整 README

安装

docker run --rm -i ghcr.io/vexxvakan/mcp-docsrs:latest
新手?先看 mcpskill.org 教程 →