AWS神经元文档MCP服务器
使用FastMCP构建的MCP(模型上下文协议)服务器,通过搜索和检索工具提供对AWS Neuron文档的访问。
特性
- 搜索文档:在AWS Neuron文档中搜索特定主题、API或概念
- 检索内容:获取特定文档页面的全部内容
- 列表指南:按类别浏览可用的指南和教程
- 使用FastMCP构建:简化的现代MCP服务器实现
工具
search_neuron_docs
在AWS Neuron文档中搜索特定主题。
参数:
query(字符串,必填):AWS Neuron文档的搜索查询max_results(整数,可选):返回的最大结果数(默认值:10)
get_neuron_doc_content
检索特定AWS Neuron文档页面的完整内容。
参数:
url(字符串,必填):要检索的AWS Neuron文档页面的URL
list_neuron_guides
按类别列出可用的AWS Neuron指南和教程。
参数:
category(string,必填):类别以过滤指南
- 选项: all, getting-started, tutorials, frameworks, inference, training
安装
pip install aws-neuron-documentation-mcp-server或者从源代码安装:
git clone https://github.com/jgray-aws/neuron-mcp.git
cd aws-neuron-documentation-mcp-server
pip install -e .用法
使用MCP客户端
添加到MCP配置中:
{
"mcpServers": {
"aws-neuron-docs": {
"command": "python",
"args": [
"-m",
"aws_neuron_documentation_mcp_server.server"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}直接使用
python -m aws_neuron_documentation_mcp_server.server例子
搜索PyTorch教程
{
"tool": "search_neuron_docs",
"arguments": {
"query": "PyTorch tutorial",
"max_results": 5
}
}从特定页面获取内容
{
"tool": "get_neuron_doc_content",
"arguments": {
"url": "https://awsdocs-neuron.readthedocs-hosted.com/en/latest/frameworks/torch/torch-neuron/"
}
}列出入门指南
{
"tool": "list_neuron_guides",
"arguments": {
"category": "getting-started"
}
}建筑
使用 FastMCP,一个用于创建MCP服务器的现代Python框架,具有:
- 简化的基于装饰器的工具定义
- 自动类型验证和模式生成
- 减少样板代码
- 更好的开发人员体验
需求
- Python 3.8+
- fastmcp
- httpx
- 美容组4
- 矿业有限公司
许可证
MIT许可证
