NetOps

NetOps

A comprehensive network management platform for tracking devices, sites, and topologies across platforms like ZeroTier and UniFi. It enables automated device discovery, multi-hop access path visualization, and infrastructure troubleshooting through the Model Context Protocol.

Category
访问服务器

README

NetOps - Network Operations Management Platform

A comprehensive platform for managing devices across sites, locations, vehicles, and complex network topologies. Designed to visualize and troubleshoot multi-hop access paths through various networking technologies.

Features

  • Multi-Site Management: Organize devices by sites, locations, and vehicles
  • Network Topology Tracking: Support for ZeroTier, UniFi, UISP, and more
  • Access Path Visualization: Trace complex access chains through multiple hops
  • MCP Integration: AI-powered network management via Model Context Protocol
  • Platform Sync: Automatic device discovery from connected platforms

Quick Start

# Install dependencies
npm install

# Copy environment template
cp .env.example .env

# Edit .env with your API credentials
# Then start the MCP server
npm run dev:mcp

# Or start the REST API server
npm run dev

MCP Integration

Add to your MCP client configuration (e.g., Claude Desktop):

{
  "mcpServers": {
    "netops": {
      "command": "node",
      "args": ["/path/to/netops/dist/mcp/server.js"],
      "env": {
        "ZEROTIER_API_TOKEN": "your-token",
        "UNIFI_CONTROLLER_URL": "https://your-controller:8443",
        "UNIFI_USERNAME": "admin",
        "UNIFI_PASSWORD": "your-password"
      }
    }
  }
}

Available MCP Tools

Tool Description
list_sites List all sites with locations and device counts
create_site Create a new site
create_location Create a location within a site
list_devices List devices with filters
get_device Get detailed device info + network connections
create_device Register a new device
update_device Update device properties
list_networks List networks by topology type
create_topology Create a network topology (ZeroTier, UniFi, etc.)
create_network Create a network within a topology
link_device_to_network Connect device to network
get_access_path Get access paths to a device
create_access_path Define multi-hop access path
test_access_path Test connectivity through path
get_network_overview High-level infrastructure summary

Architecture

┌─────────────────────────────────────────────┐
│              MCP Server (stdio)              │
├─────────────────────────────────────────────┤
│               REST API (Express)             │
├─────────────────────────────────────────────┤
│           Platform Connectors                │
│  • ZeroTier  • UniFi  • UISP  • (more...)   │
├─────────────────────────────────────────────┤
│           SQLite / PostgreSQL                │
└─────────────────────────────────────────────┘

Environment Variables

Variable Description
DATABASE_URL SQLite or PostgreSQL connection string
ZEROTIER_API_TOKEN ZeroTier Central API token
UNIFI_MODE local, sitemanager, or legacy (see below)
UNIFI_API_KEY UniFi API key for local/sitemanager modes
UNIFI_UDM_IP UDM IP address for local mode
UNIFI_CONSOLE_ID Console ID for sitemanager (cloud) mode
UNIFI_CONTROLLER_URL UniFi controller URL (legacy mode)
UNIFI_USERNAME UniFi username (legacy mode)
UNIFI_PASSWORD UniFi password (legacy mode)
UISP_URL UISP instance URL
UISP_API_TOKEN UISP API token

UniFi Connector Modes

The UniFi connector supports three modes:

1. local (Recommended)

Uses the official Site Manager API v1.0 via direct connection to your UDM.

  • Set UNIFI_MODE=local
  • Provide UNIFI_API_KEY from UDM > Settings > Integrations
  • Provide UNIFI_UDM_IP (e.g., 10.10.10.1)
UNIFI_MODE=local
UNIFI_API_KEY=your-api-key
UNIFI_UDM_IP=10.10.10.1

2. sitemanager (Cloud)

Uses the official Site Manager API v1.0 via api.ui.com.

  • Set UNIFI_MODE=sitemanager
  • Provide UNIFI_API_KEY and UNIFI_CONSOLE_ID

3. legacy (Cookie Auth)

Uses the original cookie-based authentication (for older controllers).

  • Set UNIFI_MODE=legacy
  • Provide UNIFI_CONTROLLER_URL, UNIFI_USERNAME, UNIFI_PASSWORD

Extended Device Data (Site Manager API)

When using local or sitemanager mode, the connector provides extended device metrics:

  • System Stats: uptimeSec, cpuUtilizationPct, memoryUtilizationPct
  • Load Averages: loadAverage1Min, loadAverage5Min, loadAverage15Min
  • Throughput: uplinkTxBps, uplinkRxBps
  • AP Specific: clientCount, ssids, radio stats
  • Heartbeat: lastHeartbeatAt, nextHeartbeatAt

Development

# Run MCP server in watch mode
npm run dev:mcp

# Run API server in watch mode
npm run dev

# Build for production
npm run build

# Run database studio
npm run db:studio

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选