UM

upa/mcp-netmiko-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

35 stars 8 forks 품질 41 트렌드 12

네트워크 장치와 상호 작용하는 LLM을 가능하게 하는 MCP 서버

개요

SSH (netmiko)를 통해 네트워크 장치와 상호 작용하는 LLM을 가능하게하는 MCP 서버. sample.network.toml와 같은 toml 파일에서 네트워크 장치 목록: [default]는 사용자 이름과 암호와 같은 기본 값을 정의하는 특수 섹션입니다. 디바이스는 섹션에 정의되지 않는 경우 기본값을 상속합니다. device type 값에 대해서는 netmiko Supported Platform을 참조하십시오.

개요(AI 번역)

네트워크 장치와 상호 작용하는 LLM을 가능하게 하는 MCP 서버 SSH (netmiko)를 통해.

도구 설명
get network device list TOML 파일에 정의된 네트워크 장치 이름과 유형의 반환 목록.
send command and get output 디바이스에 명령을 보내고 출력을 반환합니다.
set config commands and commit or save 디바이스에 설정 명령을 보내서 자동으로 저장합니다.

사용 방법

  • 설치

  • 구성

sample.network.toml와 같은 toml 파일에서 네트워크 장치 목록:

[default]은 기본값을 정의하는 특별한 섹션입니다. username와 password]. 장치가 기본 값을 상속하면 그들의 단면도에 정의하지 마십시오.

device_type] 값은 netmiko가 지원됩니다. 플랫폼.

  • claude 데스크탑 구성 json:

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

mcp-netmiko-server

An MCP server that enables LLMs interacting with your network devices via SSH (netmiko).

Tool Description
get_network_device_list Return list of network device names and types defined in a TOML file.
send_command_and_get_output Send a command to a device and returns its output.
set_config_commands_and_commit_or_save Send configuration commands to a device and commit or save automatically.

How to use

  • Install
git clone https://github.com/upa/mcp-netmiko-server
cd mcp-netmiko-server

# Write your toml file that lists your devices
vim my-devices.network.toml

# Run via stdio
uv run --with "mcp[cli]" --with netmiko main.py my-devices.network.toml

# Run as an SSE server: URL is http://localhost:10000/sse in this case
uv run --with "mcp[cli]" --with netmiko main.py my-devices.network.toml --sse
  • Configuration

List your network devices in a toml file like sample.network.toml:

[default]

username = "rouser"
password = "rouserpassword"

[qfx1]

hostname = "172.16.0.40"
device_type = "juniper_junos"

[nexus1]

hostname = "nexus1.lab"
device_type = "cisco_nxos"

[default] is a special section that defines the default values such as username and password. Devices inherit the default values if not defined on their sections.

For device_type values, see netmiko Supported Platforms.

  • claude desktop config json:
{
  "mcpServers": {
    "netmiko server": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "--with",
        "netmiko",
        "[PATH TO]/mcp-netmiko-server/main.py",
        "[PATH TO]/YOUR-DEVICE.toml"
      ]
    }
  }
}
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "netmiko server": { "command": "uv", "args": [ "run", "--with", "mcp[cli]", "--with", "netmiko", "[PATH TO]/mcp-netmiko-server/main.py", "[PATH TO]/YOUR-DEVICE.toml" ] } } }