Skip to main content
Glama
laptou

Rust Docs MCP Server

by laptou

Rust Docs MCP 服务器

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

特征

  • 在 docs.rs 上搜索 crate

  • 获取特定包和版本的文档

  • 获取类型信息(结构、枚举、特征等)

  • 获取板条箱的功能标志

  • 获取可用的板条箱版本

  • 获取特定项目的源代码

  • 在板条箱内搜索符号

Related MCP server: @sanderkooger/mcp-server-ragdocs

安装

本项目使用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

执照

麻省理工学院

F
license - not found
-
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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