loading…
Search for a command to run...
loading…
An MCP server that wraps the IETF SNMP standard so AI agents can poll any SNMP-speaking device on the network, with generic primitives and MIB-specific wrappers
An MCP server that wraps the IETF SNMP standard so AI agents can poll any SNMP-speaking device on the network, with generic primitives and MIB-specific wrappers for read-only inspection.
An MCP server that wraps the IETF SNMP standard so AI agents (Claude Code, Claude Desktop, IDE assistants) can poll any SNMP-speaking device on the network without rediscovering each MIB's quirks on every task.
Status: beta. Feature-complete v0 — 9 tools (4 generic primitives, 5 MIB-specific convenience wrappers) covering read-only inspection across switches, routers, printers, and host-resources targets. 66 unit tests + 9 live integration tests passing against two device classes (a managed RouterOS switch and an Epson print server with full PRINTER-MIB support). API is stable. See DESIGN.md for the full architecture, tool surface, and MIB-to-tool mapping.
Mixed-vendor networks need a vendor-neutral read-side abstraction:
IF-MIB. Use HC counters (ifHCInOctets/ifHCOutOctets)
on any link >=1 Gbps — the 32-bit ifInOctets/ifOutOctets saturate at
~4.29 Gbps.PRINTER-MIB (RFC 3805). The MIB is identical across
vendors; the wrapper returns one schema for all of them.net-snmp exposes CPU, memory, and disk via
HOST-RESOURCES-MIB (RFC 2790). Same wrapper, same schema.snmp-mcp is the read-side counterpart to vendor-specific MCPs that
already handle writes for one device (e.g., synology-mcp for DSM).
Generic primitives (4):
snmp_get — fetch one or more OIDs (numeric or symbolic).snmp_walk — walk a subtree via GETNEXT.snmp_bulk_walk — walk a subtree via GETBULK (faster for large tables).snmp_table — fetch and tabularize an SNMP table.MIB-specific convenience wrappers (5):
system_info — SNMPv2-MIB::system group (sysDescr / sysName /
sysLocation / sysUpTime / ...).interfaces_list — IF-MIB::ifTable + IF-MIB::ifXTable, with HC
counters preferred where exposed.host_resources — HOST-RESOURCES-MIB (CPU load, memory, storage).printer_status — PRINTER-MIB (supplies, trays, alerts, status).device_detect — probe sysObjectID + a handful of well-known root
OIDs to report which standard MIBs the device supports.See DESIGN.md §11 for rationale.
Every tool accepts a host parameter. Credentials and connection settings
come from a config file or environment variables — there are no
hardcoded hosts in this codebase. See
examples/config.toml.
# Install from PyPI (when published)
uv tool install snmp-mcp
# Or run from source
git clone https://github.com/acato/snmp-mcp
cd snmp-mcp
uv sync
uv run snmp-mcp
If uv picks Microsoft Store Python (path under \WindowsApps\PythonSoftwareFoundation...) when creating the venv, the MCP runs fine from a terminal but fails to launch from GUI hosts like the Claude desktop app, IDE extensions, or scheduled tasks. You will see:
Unable to create process using "...\WindowsApps\PythonSoftwareFoundation.Python.3.12_...\python.exe"
The Store-Python app-execution alias requires an interactive user context that GUI-spawned children do not get. Pin uv to a non-Store interpreter — uv's managed Python is easiest:
uv python install 3.12
uv venv --python 3.12 --python-preference only-managed --clear
uv sync
Verify: Get-Content .venv\pyvenv.cfg — the home = line should point under AppData\Roaming\uv\python\..., not \WindowsApps\. A python.org installer or winget install Python.Python.3.12 also works.
claude mcp add snmp-mcp -- uv run --directory /path/to/snmp-mcp snmp-mcp
Copy examples/config.toml to ~/.config/snmp-mcp/config.toml and fill in
your hosts. Or set per-host env vars (see
DESIGN.md §6).
Apache License 2.0. See NOTICE for attributions.
This project is not affiliated with, endorsed by, or sponsored by any vendor whose devices it polls.
Run in your terminal:
claude mcp add snmp-mcp -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.