Netdev Ssh MCP Server

MCP server for interacting with network devices (switches, routers, firewalls) over SSH. Supports Arista EOS, Cisco NX-OS, Cisco IOS/IOS-XE, Juniper

Local serverstdioGo

What is the Netdev Ssh MCP MCP server?

Netdev Ssh MCP MCP server exists for a simple reason — assistants are far more useful when they can act on Netdev Ssh MCP directly instead of describing what you should do. MCP server for interacting with network devices (switches, routers, firewalls) over SSH. Supports Arista EOS, Cisco NX-OS, Cisco IOS/IOS-XE, Juniper JunOS, and FortiGate FortiOS. Exposes network device operations as tools for use with.

What the assistant can call

Once Netdev Ssh MCP is connected, these are the calls the assistant has available:

  • get_config — Retrieves the running or startup configuration from an Arista, Cisco Nexus, Cisco Catalyst, Juniper JunOS, or FortiGate FortiOS device. Sensitive
  • run_show_command — Runs operational read commands on a network device and returns the output. For Arista/Cisco/JunOS, the command must start with show. For FortiOS, the
  • run_ping — Runs a ping command on network device and returns the output. Useful for verifying reachability from the device's perspective — for example, testing
  • run_traceroute — Shows the hop-by-hop path from the device to a destination and per-hop latency. Useful for locating where connectivity breaks, verifying traffic
  • trust_host_key — Fetches the SSH host key currently presented by a device and optionally adds it to the configured known_hosts file. Use it in two steps:

Setting it up

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Configuration and credentials

You will need 3 environment variables: DEVICE_USERNAME, DEVICE_PASSWORD, SSH_AUTH_SOCK. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Choosing this one

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Netdev Ssh MCP's toolset — get_config, run_show_command, run_ping and 2 more — is a fair guide to whether it matches your workflow. It is maintained by krisiasty; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the netdev ssh mcp mcp server does with a few real requests.

Available tools

ToolWhat it does
get_configRetrieves the running or startup configuration from an Arista, Cisco Nexus, Cisco Catalyst, Juniper JunOS, or FortiGate FortiOS device. Sensitive values (passwords, secrets, SNMP community names, BGP/OSPF/TACACS/RADIUS/I
run_show_commandRuns operational read commands on a network device and returns the output. For Arista/Cisco/JunOS, the command must start with show. For FortiOS, the command must start with get. Append | json for structured output where
run_pingRuns a ping command on network device and returns the output. Useful for verifying reachability from the device's perspective — for example, testing connectivity to a BGP peer, next-hop, or management target.
run_tracerouteShows the hop-by-hop path from the device to a destination and per-hop latency. Useful for locating where connectivity breaks, verifying traffic follows the expected path, and identifying which hop introduces latency.
trust_host_keyFetches the SSH host key currently presented by a device and optionally adds it to the configured known_hosts file. Use it in two steps:

How to install the Netdev Ssh MCP MCP server

With a default username:

```json
{
  "mcpServers": {
    "netdev-ssh-mcp": {
      "command": "<path-to-binary>",
      "env": {
        "DEVICE_USERNAME": "admin"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
DEVICE_USERNAMEConfiguration value read at startup.Optional
DEVICE_PASSWORDConfiguration value read at startup.Optional
SSH_AUTH_SOCKConfiguration value read at startup.Optional

Example prompts to try

  • Use Netdev Ssh MCP to get config.
  • Use Netdev Ssh MCP to run show command.
  • Use Netdev Ssh MCP to run ping.

Frequently asked questions

It connects Netdev Ssh MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (get_config, run_show_command, run_ping, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Netdev Ssh MCP directly.