MCP.so
登录

MCP Server Ntopng

@marcoeg

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

marcoeg

提交者

Marco Graziano

关于 MCP Server Ntopng

ntopng Model Context Protocol Server

MCP Server Ntopng 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-ntopng": {
      "command": "/Users/marco/Development/claude/mcp-server-ntopng/.venv/bin/python",
      "args": [
        "/Users/marco/Development/claude/mcp-server-ntopng/run_mcp_ntopng.py"
      ],
      "env": {
        "NTOPNG_HOST": "marcoeg-nod004.ntoplink.com",
        "NTOPNG_DBPORT": "9000",
        "NTOPNG_DBUSER": "default",
        "NTOPNG_DBPASSWORD": "",
        "NTOPNG_SECURE": "false",
        "NTOPNG_VERIFY": "false",
        "NTOPNG_CONNECT_TIMEOUT": "30",
        "NTOPNG_SEND_RECEIVE_TIMEOUT": "300",
        "SELECT_QUERY_TIMEOUT_SECS": "30",
        "NTOPNG_API_KEY": "NTOPNG_TOKEN"
      }
    }
  }
}

MCP Server Ntopng 工具

20

Retrieve all available interface IDs from ntopng.

Fetch geographical location and additional info for hosts.

Retrieve the top 10 local talkers for a specified interface.

Retrieve the top 10 remote talkers for a specified interface.

Retrieve statistics for all alerts.

Retrieve statistics for flow alerts.

Retrieve statistics for host alerts.

Retrieve statistics for interface alerts.

Retrieve statistics for MAC alerts.

Retrieve statistics for network alerts.

Retrieve a list of SNMP device alerts.

Retrieve statistics for SNMP device alerts.

Retrieve statistics for system alerts.

Retrieve detailed flows data from the ntopng flows database.

Retrieve top-k flows data from the ntopng flows database.

Retrieve statistics for user alerts.

Retrieve statistics for all flow dev`ices.

Retrieve statistics for all sFlow devices.

List tables structure of the ntopng database.

Query the ntopng Clickhouse database.

概览

What is mcp-server-ntopng?

mcp-server-ntopng is a Model Context Protocol (MCP) server implementation for NTOPNG that enables AI agents to query network monitoring data using the NTOPNG database. It assumes ntopng uses ClickHouse to store historical flows and alerts.

How to use mcp-server-ntopng?

Configure the server by adding an entry to your Claude Desktop configuration file (claude_desktop_config.json) with the path to the uv binary and required environment variables (NTOPNG_HOST, NTOPNG_DBUSER, NTOPNG_DBPASSWORD, NTOPNG_API_KEY, etc.). After restarting Claude Desktop, the server’s tools become available for querying network data.

Key features of mcp-server-ntopng

  • 20 tools for querying ntopng network monitoring data
  • Retrieve interface IDs, host locations, and top talkers
  • Fetch alert statistics for flows, hosts, interfaces, MACs, networks, SNMP devices, and users
  • Query detailed flows data and top‑k flows
  • List database tables and run arbitrary ClickHouse queries
  • Works with Claude Desktop and other MCP‑compliant hosts

Use cases of mcp-server-ntopng

  • AI‑assisted network troubleshooting by querying live alert statistics
  • Automated reporting of top local and remote talkers per interface
  • Forensic analysis of historical flows and SNMP device alerts
  • Custom database queries for deep network monitoring insights

常见问题

1

What prerequisites does mcp-server-ntopng require?

The server requires ntopng to be configured with ClickHouse for flow and alert storage. It also needs Python 3.13 and the `uv` package manager.

2

How do I configure mcp-server-ntopng?

Set environment variables in the Claude Desktop config file: NTOPNG_HOST, NTOPNG_DBUSER, NTOPNG_DBPASSWORD, NTOPNG_API_KEY, and optionally NTOPNG_DBPORT, NTOPNG_SECURE, NTOPNG_VERIFY, NTOPNG_CONNECT_TIMEOUT, NTOPNG_SEND_RECEIVE_TIMEOUT.

3

Does mcp-server-ntopng support MCP resources or prompts?

No, the server currently only provides tools. Support for resources and prompts is not yet implemented.

4

What transport does mcp-server-ntopng use?

The server uses the standard MCP stdio transport, launched via the `uv` command in the Claude Desktop configuration.

5

How does authentication work?

Authentication is handled via the NTOPNG_API_KEY environment variable (the ntopng authentication token) and ClickHouse database credentials (NTOPNG_DBUSER, NTOPNG_DBPASSWORD).

评论

其他 分类下的更多 MCP 服务器