snmp-mcp
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.
README
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).
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-mcp
Wire into Claude Code
claude mcp add snmp-mcp -- uv run --directory /path/to/snmp-mcp snmp-mcp
Configuration
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。