Skip to main content
Glama

Rust Docs MCP Server

by laptou

Rust Docs MCP 服务器

一个 MCP(模型上下文协议)服务器,提供从 docs.rs 访问 Rust 文档的功能。该服务器允许 AI 工具搜索文档、类型信息、功能标志、版本号以及符号定义/源代码。

特征

  • 在 docs.rs 上搜索 crate
  • 获取特定包和版本的文档
  • 获取类型信息(结构、枚举、特征等)
  • 获取板条箱的功能标志
  • 获取可用的板条箱版本
  • 获取特定项目的源代码
  • 在板条箱内搜索符号

安装

本项目使用Bun进行开发,但是搭建的服务器可以用Node.js运行。

# Clone the repository git clone https://github.com/yourusername/rust-docs-mcp-server.git cd rust-docs-mcp-server # Install dependencies bun install

建筑

# Build the server bun run build

这将创建一个包含已编译 JavaScript 文件的构建目录。

跑步

# Run the development server bun run dev # Or run the built server bun run start

与 MCP 客户端一起使用

此服务器实现了模型上下文协议 (MCP),可与任何 MCP 客户端配合使用。要将其与 MCP 客户端配合使用,您需要配置客户端以连接到此服务器。

可用工具

该服务器提供以下工具:

  • search_crates :在 docs.rs 上搜索板条箱
  • get_crate_documentation :获取特定 crate 的文档
  • get_type_info :获取特定项目的类型信息
  • get_feature_flags :获取板条箱的功能标志
  • get_crate_versions :获取板条箱的可用版本
  • get_source_code :获取特定项目的源代码
  • search_symbols :搜索包内的符号

测试

# Run tests bun test

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

MCP 服务器为 AI 工具提供从 docs.rs 访问 Rust 文档的权限,从而可以搜索板条箱、文档、类型信息、功能标志、版本信息和源代码。

  1. 特征
    1. 安装
      1. 建筑
        1. 跑步
          1. 与 MCP 客户端一起使用
            1. 可用工具
          2. 测试
            1. 执照

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                An MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context. Uses Ollama or OpenAI to generate embeddings. Docker files included
                Last updated -
                59
                20
                TypeScript
                MIT License
                • Apple
                • Linux
              • A
                security
                A
                license
                A
                quality
                A server for managing Rust documentation that enables users to check, build, and search Rust documentation locally through cargo doc commands.
                Last updated -
                3
                3
                TypeScript
                MIT License
              • -
                security
                A
                license
                -
                quality
                An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
                Last updated -
                179
                Python
                MIT License
                • Apple
                • Linux
              • -
                security
                -
                license
                -
                quality
                An MCP server that enables AI assistants to access up-to-date documentation for Python libraries like LangChain, LlamaIndex, and OpenAI through dynamic fetching from official sources.
                Last updated -
                1
                Python
                MIT License

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/laptou/rust-docs-mcp-server'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server