Skip to main content
Glama

Igor

Igor is an MCP server that lets an AI agent read old network gear the way a network tech does: through a serial console server, over Telnet and over SNMP v2c. It can only read. An allowlist in code refuses any command that would change a device, before a connection is even opened.

Built for Kiroween 2026, Frankenstein category. License: Apache-2.0.

Try it in 2 minutes

You need Python 3.12 or newer and git. No hardware.

git clone https://github.com/getlarkwright/igor.git
cd igor
python -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate
pip install -e .
igor-fake-switch                 # fake 2950 switch: Telnet 127.0.0.1:2323, SNMP 127.0.0.1:1161

In a second terminal, point your MCP client at Igor. For Kiro, this goes in .kiro/settings/mcp.json (it's already in the repo):

{
  "mcpServers": {
    "igor": {
      "command": "igor",
      "args": [],
      "env": {
        "IGOR_TELNET_USER": "igor",
        "IGOR_TELNET_PASSWORD": "igor",
        "IGOR_SNMP_COMMUNITY": "public"
      }
    }
  }
}

Then ask the agent: "Why is Fa0/12 down on fake-switch?" The fake switch has a port-security violation built in, so there's a real answer to find. Then ask it to fix the port and watch Igor refuse.

Those credentials only open the fake switch. Everything in the demo runs on your machine.

Related MCP server: netauto MCP Server

What Igor can do

  • Run show commands on a device over a serial console server or Telnet.

  • Filter output with | include, | match or | no-more.

  • Read SNMP values with GET and WALK.

What Igor refuses

The gate in src/igor/allowlist.py checks every command before a connection is opened. These are always refused:

  • configure and conf t (configuration mode)

  • set, delete, commit, save (EdgeOS changes)

  • write, copy, erase (IOS changes)

  • reload, reboot

  • clear, debug, shutdown, no ...

  • Shell escapes: sudo, bash, sh, !, backticks, $(

  • Chaining: ;, &&, ||, newlines, or any pipe not listed above

  • SNMP SET. Igor has no code that can build a SET request, so it can't send one.

A refusal names the rule it hit:

Refused: "configure" changes the device. Igor is read-only.

Igor never tries a refused command another way. There's a real log of an agent hitting this in docs/demo-logs/2026-12-01-blocked-configure.txt.

How it was built

Kiro wrote Igor. The three steering files in .kiro/steering/ set the product, the stack and the safety rules, and Kiro reads them on every run. The specs in .kiro/specs/ (serial console, fake switch with Telnet and SNMP, and USB serial console) have the requirements, design and task lists that Kiro worked from. Kiro ran out of monthly credits after writing the USB serial requirements and design, so Claude Code wrote that code and its tests, and the commit and the task list say so.

Kiro CLI ran with permission to read and write files only, so it couldn't run commands or reach real gear while it built. Claude Code, an AI coding assistant, ran the tests, reviewed the changes and sent each failure back to Kiro with its cause. Every commit message says who made it, so the history shows each Kiro run and each fix.

The first real agent run found a bug no unit test caught: the Telnet code started its own asyncio loop inside the MCP server's loop, so every call failed over MCP. The fix came with end-to-end tests that go through the real MCP server.

The fake switch

src/igor/fake/switch.py is a Cisco 2950-style switch running IOS 12.1. It has a Telnet server and an SNMP v2c agent, and it only listens on 127.0.0.1. Port Fa0/12 is err-disabled after a port-security violation (one violation, last source MAC 00ab.cdef.1234), and show interfaces, show port-security, show errdisable recovery, show logging and show running-config all tell the same story. Unknown commands get the real IOS error:

% Invalid input detected at '^' marker.

Transports

Transport

How it works

Notes

Serial console

SSH to a Digi CM 32 console server, then the device's console

The Digi only speaks old crypto (diffie-hellman-group1-sha1, ssh-rsa), so Igor passes those options to the system ssh client for that host only. It logs out every time and reports "port busy" instead of retrying.

USB serial console

A console cable plugged into the machine running Igor (pyserial)

Finds out what state the console was left in first. Logged out: logs in. Logged in: runs the command. Config mode: does nothing and says a human must finish the edit.

Telnet

telnetlib3 client

For gear with no console server.

SNMP v2c

pysnmp GET and WALK

No SET.

Credentials come from environment variables at run time (IGOR_DIGI_PASSWORD, IGOR_DEVICE_USER, IGOR_DEVICE_PASSWORD, IGOR_TELNET_USER, IGOR_TELNET_PASSWORD, IGOR_SNMP_COMMUNITY). They never go in the repo, logs or tool output.

Tests

pip install -e .
pytest

227 tests. The fake switch is the fixture for Telnet, SNMP and the end-to-end MCP tests. No hardware needed.

Available Tools

4 tools
list_devicesA

Return all devices in the inventory, excluding port-1 devices.

Returns a list of dicts with keys: name, type, transport, console_host, console_port, telnet_host, telnet_port, snmp_host, snmp_port, description.

Inputs: no named parameters. Returns: result

run_showB

Run a read-only show command on a named device.

Returns a dict with: output — raw device output (empty on error or refusal) summary — plain-text summary suitable for the agent to relay error — error message if anything went wrong, else None

Inputs: command (required), device_name (required). Returns: object

snmp_getB

Send an SNMPv2c GET for oid on device_name.

Returns a dict with: output — ' = : ' string summary — one-line description error — error message if anything went wrong, else None

Inputs: oid (required), device_name (required). Returns: object

snmp_walkB

Walk the OID subtree oid on device_name.

Returns a dict with: output — one row per line, truncated at row_limit summary — one-line description error — error message if anything went wrong, else None

Inputs: oid (required), device_name (required), row_limit. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a distinct purpose: inventory listing, read-only show commands, single-OID SNMP GET, and subtree SNMP WALK. SNMP get vs. walk are closely related but clearly differentiated by single-OID vs. subtree semantics.

    Naming Consistency4/5

    All names are snake_case and generally verb_noun (list_devices, run_show) with snmp_get/snmp_walk following a protocol-prefix convention. The mix is readable and predictable, though not perfectly uniform.

    Tool Count5/5

    Four tools is well-scoped for a read-only network inventory/query server. Each tool covers a distinct access method (inventory, CLI show, SNMP scalar, SNMP subtree) without redundancy.

    Completeness4/5

    The read-only surface covers the core workflows: device discovery, CLI show commands, and SNMP reads. Minor gaps exist, such as retrieving a single device's details or changing SNMP row limits, but agents can work around these via list_devices and parameters.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides read-only SSH access to network devices (routers, switches, firewalls) with command allow/deny policies, nt-templates output parsing, and an audit trail, enabling an AI agent to query device state securely.
      10
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides read-only, multi-vendor network device interaction, configuration auditing against vendor-guide rules, and safe diffing of proposed changes for AI agents to inspect and analyze network infrastructure without any commit or write capability.
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to drive switches, servers, and consoles over SSH or serial Console through 28 MCP tools, auto-detecting vendors, paging through long output, and cleaning raw byte streams into readable text. Provides structured diagnostics (interfaces, ARP/MAC/routing tables, ping, logs, health checks) plus a three-tier safety model with audit logging, credential redaction, and dry-run config changes.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to safely inspect fleets of MikroTik RouterOS devices and SNMP v2c endpoints through deny-by-default read-only tools, batch queries, and one-call diagnosis recipes for NOC work. Returns redacted, auditable results so routers can be observed without any risk of configuration changes.
      22 npm
      Apache 2.0