Skip to main content
Glama

Nautobot MCP Server

by gt732

Nautobot MCP

诺图博特Python执照

该 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. 安装软件包

pip install nautobot-mcp

2. 在你的 Nautobot 配置中添加 INSTALLED_APPS

# In your nautobot_config.py PLUGINS = [ "nautobot_mcp", # ... other plugins ]

3.配置

通过 Nautobot 的配置系统配置应用程序:

# In your nautobot_config.py PLUGINS_CONFIG = { "nautobot_mcp": { "MCP_PORT": 8005, # MCP server port "MCP_HOST": "0.0.0.0", # Default is 0.0.0.0 "MCP_CUSTOM_TOOLS_DIR": "/path/to/your/custom/tools", # Directory for custom tools "MCP_LOAD_CORE_TOOLS": False, # Load built-in tools }, }

4. 升级后运行 naautobot

nautobot-server post_upgrade

自定义工具

您可以通过在MCP_CUSTOM_TOOLS_DIR指定的目录中定义 Python 函数来创建自己的自定义工具。

自定义工具示例:

# In /path/to/your/custom/tools/my_tools.py def some_tool(param1: str, param2: str) -> dict: """Some tool description""" # Your implementation here return {"result": f"Tool result for {param1} and {param2}"}

MCP 服务器将自动发现并注册指定目录中所有基于功能的工具。

部署选项

方法一:手动启动

您可以手动启动 MCP 服务器:

nautobot-server start_mcp_server

方法 2:Systemd 服务(推荐用于生产)

/etc/systemd/system/nautobot-mcp.service创建一个 systemd 服务文件:

[Unit] Description=Nautobot MCP Server After=network-online.target Wants=network-online.target [Service] User=nautobot Group=nautobot WorkingDirectory=/opt/nautobot ExecStart=/opt/nautobot/venv/bin/nautobot-server start_mcp_server Restart=on-failure RestartSec=30 PrivateTmp=true [Install] WantedBy=multi-user.target

然后启用并启动服务:

sudo systemctl daemon-reload sudo systemctl enable --now nautobot-mcp.service

查看可用工具

您可以在 Nautobot 网络界面中查看所有已注册的工具:

https://your-nautobot-server/plugins/nautobot-mcp/tools/

此页面显示所有可用的工具、其描述、模块路径和参数规范。

工具

待办事项

  • [ ] 添加一种将工具执行路由到特定 Nautobot 工作者的方法。
  • [ ] 增强 Nautobot 网络界面中的工具视图,以显示工具使用情况统计数据。
  • [ ] 创建一个 docker 容器来运行 MCP 服务器。
  • [ ] 添加测试。

执照

该项目根据 Apache License 2.0 获得许可 - 有关详细信息,请参阅 LICENSE 文件。

-
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.

这种集成使人工智能助手能够通过标准化协议与网络数据交互,为网络自动化和管理提供人工智能就绪工具和接口。

  1. 概述
    1. 使用 Librechat 进行演示 - 连接到 Nautobot MCP
      1. 安装
        1. 1. 安装软件包
        2. 2. 在你的 Nautobot 配置中添加 INSTALLED_APPS
        3. 3.配置
        4. 4. 升级后运行 naautobot
      2. 自定义工具
        1. 部署选项
          1. 方法一:手动启动
          2. 方法 2:Systemd 服务(推荐用于生产)
        2. 查看可用工具
          1. 待办事项
            1. 执照

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server that allows AI assistants to invoke and interact with Integrator automation workflows through an API connection.
                Last updated -
                2
                TypeScript
                MIT License
              • -
                security
                F
                license
                -
                quality
                A protocol interface that extends AI capabilities by enabling models to interact with external systems for calculations, email operations, knowledge search, and more.
                Last updated -
                160
                Python
              • -
                security
                F
                license
                -
                quality
                An open-source network operations integration platform that connects large language models with network devices through the Model Context Protocol, allowing AI assistants to perform network configuration, diagnostics, and management tasks.
                Last updated -
                2
                Python
              • -
                security
                A
                license
                -
                quality
                Provides integration with Apache Airflow's REST API, allowing AI assistants to programmatically interact with Airflow workflows, monitor DAG runs, and manage tasks.
                Last updated -
                JavaScript
                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/gt732/nautobot-app-mcp'

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