mcp-ntopng

mcp-ntopng

By marcoeg GitHub

An MCP server for network monitoring software ntopng

Overview

what is mcp-ntopng?

mcp-ntopng is an MCP server designed for the network monitoring software ntopng, which provides insights into network traffic and performance.

how to use mcp-ntopng?

To use mcp-ntopng, set up the MCP server and configure it to work with ntopng to monitor your network traffic effectively.

key features of mcp-ntopng?

  • Integration with ntopng for real-time network monitoring
  • User-friendly interface for monitoring network performance
  • Support for various network protocols and traffic analysis

use cases of mcp-ntopng?

  1. Monitoring network traffic in real-time for performance optimization
  2. Analyzing network usage patterns to identify bottlenecks
  3. Providing insights for network security assessments

FAQ from mcp-ntopng?

  • What is ntopng?

ntopng is a network traffic monitoring tool that provides insights into network usage and performance.

  • Is mcp-ntopng free to use?

Yes! mcp-ntopng is open-source and available under the MIT license.

  • How can I contribute to mcp-ntopng?

You can contribute by reporting issues, submitting pull requests, or improving documentation on the GitHub repository.

Content

mcp-ntopng

An MCP server for network monitoring software ntopng

Lite version

Development

Setup

  1. Prerequisites:

  2. Clone the Repository:

git clone https://github.com/marcoeg/mcp-nvd
cd mcp-nvd
  1. Set Environment Variables:
    • Create a .env file in the project root with the mandatory environmental variables:
    NTOPNG_HOST=localhost NTOPNG_PORT=9000 NTOPNG_USER=default NTOPNG_PASSWORD=
  2. Install Dependencies:
uv sync
uv pip install -e .

Run with the MCP Inspector

cd /path/to/the/repo
source .env

CLIENT_PORT=8077 SERVER_PORT=8078 npx @modelcontextprotocol/inspector uv \
    --directory /path/to/repo/mcp-ntopng run mcp-ntopng

Then open the browser to the URL indicated by the MCP Inspector, typically http://localhost:8077?proxyPort=8078

After connecting, list the Tools. Select query_ntopng_database and enter in the query a SELECT statement like SELECT * FROM host_alerts_view LIMIT 2.

Switch freely between stdio and sse transport types in the inspector. To use sse you need to run the server as explained below.

Run the Server:

cd /path/to/the/repo
source .env

uv run mcp-ntopng --transport sse --port 9090
  • Runs with SSE transport on port 9090 by default.

In the terminal running the server there is a full log of the activities. Very useful for debugging.

No tools information available.
No content found.