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.
Integrations
Provides access to Rust documentation from docs.rs, allowing users to search for crates, retrieve documentation, type information, feature flags, version numbers, and access symbol definitions and source code.
Enables interaction with Rust language resources including documentation, type information, and source code, making Rust programming information accessible through structured API calls.
Rust Docs MCP 服务器
一个 MCP(模型上下文协议)服务器,提供从 docs.rs 访问 Rust 文档的功能。该服务器允许 AI 工具搜索文档、类型信息、功能标志、版本号以及符号定义/源代码。
特征
- 在 docs.rs 上搜索 crate
- 获取特定包和版本的文档
- 获取类型信息(结构、枚举、特征等)
- 获取板条箱的功能标志
- 获取可用的板条箱版本
- 获取特定项目的源代码
- 在板条箱内搜索符号
安装
本项目使用Bun进行开发,但是搭建的服务器可以用Node.js运行。
建筑
这将创建一个包含已编译 JavaScript 文件的构建目录。
跑步
与 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
:搜索包内的符号
测试
执照
麻省理工学院
This server cannot be installed
MCP 服务器为 AI 工具提供从 docs.rs 访问 Rust 文档的权限,从而可以搜索板条箱、文档、类型信息、功能标志、版本信息和源代码。