snmp-mcp
This server provides a read-only MCP interface for AI agents to poll and inspect any SNMP-speaking network device (switches, routers, printers, Linux hosts) across mixed-vendor networks. It offers 9 tools:
Generic SNMP Primitives
snmp_get— Fetch one or more specific OIDs (numeric or symbolic) in a single GET request.snmp_walk— Walk an OID subtree using GETNEXT chains.snmp_bulk_walk— Walk a subtree faster using GETBULK (SNMPv2c+), with configurablemax_repetitions; falls back to GETNEXT on v1 devices.snmp_table— Fetch and tabularize an SNMP table into structured rows with named columns.
MIB-Specific Convenience Wrappers
system_info— Retrieve system identity (description, name, location, contact, uptime, services) fromSNMPv2-MIB::system.interfaces_list— List network interfaces by mergingifTable+ifXTable, preferring 64-bit HC counters to avoid 32-bit saturation.host_resources— Get CPU load per core, memory, swap, uptime, process count, and storage details fromHOST-RESOURCES-MIB.printer_status— Check toner/ink/drum levels, input trays, output bins, and active alerts across RFC 3805-compliant printers (HP, Epson, Canon, etc.).device_detect— Probe a device to discover which standard MIBs it supports and identify a vendor hint fromsysObjectID.
Key characteristics: supports SNMPv1, SNMPv2c, and SNMPv3 (with auth/priv encryption); every tool accepts a host parameter enabling multi-device polling; strictly read-only — no SNMP SET operations.
Allows polling Cisco switches and routers via SNMP for interface counters, system info, and other MIB data.
Allows polling Epson network printers via SNMP for toner/ink levels, alerts, and status using PRINTER-MIB.
Allows polling Linux hosts via SNMP for CPU, memory, and disk using HOST-RESOURCES-MIB.
Allows polling MikroTik RouterOS devices via SNMP for interface counters and system information.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@snmp-mcplist interfaces on switch 192.168.1.1"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
snmp-mcp
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.
Why
Mixed-vendor networks need a vendor-neutral read-side abstraction:
A managed switch (MikroTik, Cisco, Aruba, Omada) exposes interface counters via
IF-MIB. Use HC counters (ifHCInOctets/ifHCOutOctets) on any link >=1 Gbps — the 32-bitifInOctets/ifOutOctetssaturate at ~4.29 Gbps.A network printer (HP, Brother, Canon, OKI, Epson) exposes toner / ink / drum levels via
PRINTER-MIB(RFC 3805). The MIB is identical across vendors; the wrapper returns one schema for all of them.A Linux host running
net-snmpexposes CPU, memory, and disk viaHOST-RESOURCES-MIB(RFC 2790). Same wrapper, same schema.Generic SNMP get/walk/bulkwalk/table primitives are also exposed so you can talk to anything else without writing vendor-specific code paths.
snmp-mcp is the read-side counterpart to vendor-specific MCPs that
already handle writes for one device (e.g., synology-mcp for DSM).
Related MCP server: domotz-mcp
Scope
MVP (v0)
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::systemgroup (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— probesysObjectID+ a handful of well-known root OIDs to report which standard MIBs the device supports.
Out of scope (v0)
SNMP SET (writes). Read-only by design.
SNMP trap receiver (long-running daemon, different process model).
Loading random vendor MIBs at runtime — standard IETF MIBs only.
MIB browser GUI. Stick to the programmatic tool surface.
Custom polling schedules or time-series storage. That belongs in Home Assistant, Prometheus, or similar.
See DESIGN.md §11 for rationale.
Multi-host
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.
Quickstart
# 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-mcpWindows: avoid Microsoft Store Python
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 syncVerify: 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.
Wire into Claude Code
claude mcp add snmp-mcp -- uv run --directory /path/to/snmp-mcp snmp-mcpConfiguration
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).
Compatibility
SNMPv1 — supported (legacy devices).
SNMPv2c — first-class target (community-based; most common).
SNMPv3 — supported with auth (MD5/SHA/SHA2-family) and priv (DES/3DES/AES128/192/256).
License
Apache License 2.0. See NOTICE for attributions.
Trademarks
This project is not affiliated with, endorsed by, or sponsored by any vendor whose devices it polls.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/acato/snmp-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server