mcp-ntopng:ntopng 的 MCP 服务器
一个用于网络监控软件 ntopng 的 MCP 服务器。
快速入门
-
前置条件:
- 安装 Python 3.13 或更高版本。
- 安装
uv
包管理器(安装指南)。
-
克隆仓库:
git clone https://github.com/marcoeg/mcp-ntopng cd mcp-ntopng
-
设置环境变量: 在项目根目录下创建
.env
文件,并添加以下内容:NTOPNG_HOST=localhost NTOPNG_PORT=9000 NTOPNG_USER=default NTOPNG_PASSWORD=
-
安装依赖:
uv sync uv pip install -e .
-
运行服务:
- 使用默认的 SSE 运输类型运行:
uv run mcp-ntopng --transport sse --port 9090
- 或通过 MCP Inspector 运行:
然后在浏览器中访问CLIENT_PORT=8077 SERVER_PORT=8078 npx @modelcontextprotocol/inspector uv \ --directory /path/to/repo/mcp-ntopng run mcp-ntopng
http://localhost:8077?proxyPort=8078
。
- 使用默认的 SSE 运输类型运行:
-
调试:终端会显示活动日志,便于调试。