snmp-mcp

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.

Category
Visit Server

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-bit ifInOctets/ifOutOctets saturate 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-snmp exposes CPU, memory, and disk via HOST-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):

  1. snmp_get — fetch one or more OIDs (numeric or symbolic).
  2. snmp_walk — walk a subtree via GETNEXT.
  3. snmp_bulk_walk — walk a subtree via GETBULK (faster for large tables).
  4. snmp_table — fetch and tabularize an SNMP table.

MIB-specific convenience wrappers (5):

  1. system_infoSNMPv2-MIB::system group (sysDescr / sysName / sysLocation / sysUpTime / ...).
  2. interfaces_listIF-MIB::ifTable + IF-MIB::ifXTable, with HC counters preferred where exposed.
  3. host_resourcesHOST-RESOURCES-MIB (CPU load, memory, storage).
  4. printer_statusPRINTER-MIB (supplies, trays, alerts, status).
  5. device_detect — probe sysObjectID + 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured