Nautobot MCP Server

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.

나우토봇 MCP

이 Nautobot 앱은 MCP(Model Context Protocol) 서버와 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. 패키지 설치

지엑스피1

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. 업그레이드 후 nautobot 실행

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 서버는 지정된 디렉토리에 있는 모든 기능 기반 도구를 자동으로 검색하여 등록합니다.

배포 옵션

방법 1: 수동 시작

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 웹 인터페이스의 도구 보기를 향상시켜 도구 사용 통계를 표시합니다.
  • [ ] MCP 서버를 실행하기 위한 Docker 컨테이너를 생성합니다.
  • [ ] 테스트를 추가합니다.

특허

이 프로젝트는 Apache License 2.0에 따라 라이선스가 부여되었습니다. 자세한 내용은 LICENSE 파일을 참조하세요.

-
security - not tested
F
license - not found
-
quality - not tested

표준화된 프로토콜을 통해 AI 어시스턴트가 네트워크 데이터와 상호 작용할 수 있도록 하는 통합으로, 네트워크 자동화 및 관리를 위한 AI 지원 도구와 인터페이스를 제공합니다.

  1. Overview
    1. Demo using Librechat - Connected to Nautobot MCP
      1. Installation
        1. 1. Install the package
        2. 2. Add to INSTALLED_APPS in your Nautobot configuration
        3. 3. Configuration
        4. 4. Run nautobot post upgrade
      2. Custom Tools
        1. Deployment Options
          1. Method 1: Manual Start
          2. Method 2: Systemd Service (Recommended for Production)
        2. Viewing Available Tools
          1. TODO
            1. License
              ID: e5ji08oq31