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
Visit Server

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

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
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
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
Qdrant Server

Qdrant Server

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

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
E2B

E2B

Using MCP to run code via e2b.

Official
Featured