Integrations
Mentioned as a planned feature to containerize the MCP server for easier deployment and management.
Provides integration with GitHub demonstrated through video examples of connecting Librechat to the Nautobot MCP server.
Enables AI agents to interact with network data through custom Python tools, allowing for automation tasks and network management operations within Nautobot.
Nautobot MCP
该 Nautobot 应用程序将 MCP(模型上下文协议)服务器与 Nautobot 集成,为网络自动化和管理提供 AI 就绪工具和接口。
概述
Nautobot MCP 使 AI 助手或应用程序能够通过标准化协议与您的网络数据交互。该应用与 Nautobot 一起运行 MCP 服务器,该服务器提供 AI 系统可以使用的工具。
https://modelcontextprotocol.io/introduction
使用 Librechat 进行演示 - 连接到 Nautobot MCP
https://github.com/user-attachments/assets/283d68c2-d35f-4506-b909-45c1850e7281
安装
1. 安装软件包
2. 在你的 Nautobot 配置中添加 INSTALLED_APPS
3.配置
通过 Nautobot 的配置系统配置应用程序:
4. 升级后运行 naautobot
自定义工具
您可以通过在MCP_CUSTOM_TOOLS_DIR
指定的目录中定义 Python 函数来创建自己的自定义工具。
自定义工具示例:
MCP 服务器将自动发现并注册指定目录中所有基于功能的工具。
部署选项
方法一:手动启动
您可以手动启动 MCP 服务器:
方法 2:Systemd 服务(推荐用于生产)
在/etc/systemd/system/nautobot-mcp.service
创建一个 systemd 服务文件:
然后启用并启动服务:
查看可用工具
您可以在 Nautobot 网络界面中查看所有已注册的工具:
此页面显示所有可用的工具、其描述、模块路径和参数规范。
待办事项
- [ ] 添加一种将工具执行路由到特定 Nautobot 工作者的方法。
- [ ] 增强 Nautobot 网络界面中的工具视图,以显示工具使用情况统计数据。
- [ ] 创建一个 docker 容器来运行 MCP 服务器。
- [ ] 添加测试。
执照
该项目根据 Apache License 2.0 获得许可 - 有关详细信息,请参阅 LICENSE 文件。
This server cannot be installed
这种集成使人工智能助手能够通过标准化协议与网络数据交互,为网络自动化和管理提供人工智能就绪工具和接口。