ND

nuskey8/docs-rs-mcp

开发工具

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

38 stars 5 forks 质量 67 趋势 12MIT

一个MCP服务器,支持从 crates.io 和 docs.rs 中搜索Rust箱子及其文档。

概览

一个MCP服务器,支持从 docs.rs 搜索Rust箱子及其文档。 docs.rs MCP 是一个 MCP 服务器,用于搜索 Rust crate 文档网站 docs.rs。通过利用它,AI 代理可以搜索所需的 crate,并根据需要获取最新的文档。 * 专门用于 docs.rs 搜索的工具 * 支持多种用例,从搜索箱子本身到特定 API 搜索 * LLM 友好的 Markdown 输出 * Node.js 18 或更新版本 * VS Code、光标、Claude Desktop 或其他 MCP 客户端 您可以点击下面的按钮安装: 或者,添加一个新的MCP服务器,运行光标设置中的npx @nuskey8/docs-rs-mcp命令>MCP>添加新的MCP服务器。 对于其他工具,请根据需要参考文档,并添加一个运行 npx @nuskey8/docs-rs-mcp 命令的 MCP 服务器。 该图书馆采用MIT许可协议提供。

概述(AI 翻译)

一个MCP服务器,支持从 docs.rs 搜索Rust箱子及其文档。

英文 |日本語

概述

docs.rs MCP 是一个 MCP 服务器,用于搜索 Rust crate 文档网站 docs.rs。通过利用它,AI 代理可以搜索所需的 crate,并根据需要获取最新的文档。

特色

  • 专门用于搜索 docs.rs 的工具
  • 支持多种使用场景,从搜索箱子本身到特定 API 搜索
  • LLM 友好型 Markdown 输出

要求

  • Node.js 18 及以上
  • VS Code、光标、Claude桌面或任何其他MCP客户端

布置

Visual Studio Code (VSCode)

在.vscode/mcp.json中添加以下内容:

克劳德·科德

执行以下命令:

光标

您可以点击下面的按钮安装:

或者,添加一个新的MCP服务器,运行来自Cursor Settings > MCP > Add new MCP Server的npx @nuskey8/docs-rs-mcp命令。

其他

对于其他工具,请根据需要参考文档,并添加一个运行 npx @nuskey8/docs-rs-mcp 命令的 MCP 服务器。

工具

|工具 |描述 |

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

README

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.

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:

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
docs_rs_search_crates Searches for crates by keyword.
docs_rs_readme Retrieves the README/overview of the specified crate.
docs_rs_get_item Retrieves documentation for a specific item (module, struct, trait, enum, function, etc.) in a crate.
docs_rs_search_in_crate Searches for traits, structs, methods, etc. from the all.html page in a crate.

License

This library is provided under the MIT License.

在 GitHub 查看完整 README

安装

npx @nuskey8/docs-rs-mcp@latest -y
新手?先看 mcpskill.org 教程 →