Skip to main content

Model Context Protocol (MCP) Server Integration

Connect external AI clients like Cursor, Claude Desktop, and Claude Code to NetBeez NextGen via the Streamable HTTP /mcp endpoint and Bot User tokens.

Written by Panickos Neophytou

NetBeez NextGen (Version 20.0+) includes a built-in, first-party Model Context Protocol (MCP) server at /mcp over Streamable HTTP. External AI assistants, IDEs, and automation agents—including Cursor, Claude Desktop, Claude Code, and custom MCP SDK clients—can securely query live NetBeez telemetry, inspect per-hop routes and wireless logs, read the OpenAPI 20.0 specification, and manage monitoring configurations using role-scoped Bot Users.

In this article:

Overview & Streamable HTTP Endpoint

  • MCP Endpoint URL:https://<your-netbeez-hostname>/mcp

  • Transport Protocol: Stateless Streamable HTTP (JSON-RPC 2.0 over HTTPS).

  • No In-App LLM Provider Required: Because your external MCP client supplies its own LLM, /mcp works out of the box with a Bot User token even if no AI provider is enabled in Settings → Artificial Intelligence.

  • UUIDs & UTC Timestamps: All NetBeez entity identifiers are UUID strings, and all tool time arguments (start_at, end_at, started_at) and returned timestamps use UTC ISO 8601 format (for example, 2026-11-23T14:00:00Z).

Bot User Authentication, Permissions & License Behavior

Every request to /mcp must authenticate with a Bot User HTTP Authorization header created by an Administrator in Settings → Users & Access → Bot Users (browser session cookies, MFA-enabled human accounts, and legacy Bearer <api_key> headers are rejected with 401 Unauthorized):

Authorization: Token token=<bot_password>, email=<bot_email>
Settings Users &amp; Access Bot Users creation form showing Description field and Permissions dropdown
  • Read Only Bot Users (Recommended Default): Can call all 26 query, metric, hop-analysis, log, Buzz summary, migration, and OpenAPI tools (annotated with MCP readOnlyHint: true). Any call to a create_* or update_* tool is denied.

  • Read Write Bot Users: Can call all 26 read tools plus create and update Targets, Scheduled Test templates, and Ad-Hoc Tests—including attaching existing Alert Profiles and Monitoring Conditions. Note that because Bot Users cannot hold the Administrator role, global definition write tools (create_alert_detectors, update_alert_detectors, create_monitoring_conditions, and update_monitoring_conditions) return permission denied for Bot Users.

  • Immediate Write Execution (Client-Side Confirmation): Unlike in-app Buzzy chat—which pauses write actions on an in-app Approve / Deny card—MCP tool calls execute immediately when invoked. All NetBeez write tools advertise MCP destructiveHint: true so your MCP client (such as Cursor or Claude Desktop) can prompt you locally before sending the call.

  • Expired License Lockout (403 Forbidden): If the NetBeez server license expires, /mcp returns 403 Forbidden (License is expired) until an Administrator updates the license in Settings → License.

Connecting Cursor, Claude Code, Claude Desktop & curl

Cursor (~/.cursor/mcp.json)

Add your NetBeez instance to ~/.cursor/mcp.json (or project-level .cursor/mcp.json):

{
  "mcpServers": {
    "netbeez": {
      "url": "https://<your-netbeez-hostname>/mcp",
      "headers": {
        "Authorization": "Token token=<bot_password>, email=bot-00000000-0000-0000-0000-000000000000@netbeez.local"
      }
    }
  }
}

Claude Code CLI & Claude Desktop

In Claude Code, register the Streamable HTTP server with one command:

claude mcp add --transport http netbeez "https://<your-netbeez-hostname>/mcp" \
  --header "Authorization: Token token=<bot_password>, email=bot-00000000-0000-0000-0000-000000000000@netbeez.local"

For desktop MCP clients that use stdio bridges (such as claude_desktop_config.json via mcp-remote), pass the Authorization header through mcp-remote:

{
  "mcpServers": {
    "netbeez": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://<your-netbeez-hostname>/mcp",
        "--header",
        "Authorization: Token token=<bot_password>, email=bot-00000000-0000-0000-0000-000000000000@netbeez.local"
      ]
    }
  }
}

Verifying Connectivity with curl

Test your Bot User credentials and list all registered MCP tools with a JSON-RPC 2.0 tools/list request:

curl -sS -X POST "https://<your-netbeez-hostname>/mcp" \
  -H "Authorization: Token token=<bot_password>, email=bot-00000000-0000-0000-0000-000000000000@netbeez.local" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

Read-Only Query & Reference MCP Tools (26 Tools)

All 26 read-only tools are available to both Read Only and Read Write Bot Users. Entity query tools support find (by UUID), list, and filtered search operations, while metric tools route automatically across raw hypertables and TimescaleDB hour, day, and week continuous aggregates:

MCP Tool Name

Domain & Capabilities

query_buzz_components

Live Buzz Network Experience Summary cards (Overall Status, Sites Monitored, Remote Users, 6-category Remote Users Network Experience, Geolocation, ISP Performance, Target Performance, and Wi-Fi Networks).

query_agents

Find, list, or search Network Agents and Remote Workers by status, category, group, ISP, ASN, location, or alert/incident state.

query_agent_groups

Query Agent Groups and their associated agents, targets, and scheduled test templates.

query_agent_metrics

Agent CPU, RAM, disk, interface throughput, and heartbeat availability (summary, time_series, raw, availability, and availability_series).

query_agent_logs

Search agent operational and wireless logs (including wpa_supplicant and DHCP events).

query_targets

Find, list, or search Targets by name, group, test type, or incident/alert status.

query_target_test_templates

Inspect real-time Ping, DNS, HTTP, Traceroute, and Path Analysis test templates (sensitive values masked as [FILTERED]).

query_target_test_template_options

Catalog of valid configuration keys, types, bounds, and defaults per Target test type.

query_target_saas_apps

Built-in SaaS application definitions available for Target creation.

query_target_templates

Built-in Target template recipes (Website, DNS, VPN, and Gateway).

query_target_nb_test_metrics

Probe-level and continuous-aggregate metrics (summary, time_series, raw) for Ping (RTT, jitter, MOS, packet loss), DNS, HTTP, and Traceroute.

query_target_nb_test_hop_results

Per-hop Path Analysis and Traceroute inspection (probes, full result_set up to 5,000 rows, or search by IP, FQDN, and RTT ms range with ASN/geolocation enrichment).

query_scheduled_test_templates

Find, list, or search Iperf, Network Speed, VoIP, Packet Capture, and Custom Command templates.

query_scheduled_test_types

Catalog of Scheduled Test types and valid configuration options.

query_scheduled_nb_test_metrics

Scheduled Test run metrics (summary, time_series, raw) across Iperf, Network Speed, VoIP, and Custom Command.

query_ad_hoc_tests

List ad-hoc test runs tracked for the authenticated caller.

query_ad_hoc_test_types

Catalog of Ad-Hoc Test types and configuration options.

query_wifi_profiles

Find, list, or search Wi-Fi Profiles by SSID, encryption, band, or incident/alert status.

query_wifi_hopping_groups

Query Wi-Fi Hopping Groups and member profiles/agents.

query_wifi_access_point_connections

Wi-Fi Timing connection attempts, WPA association/authentication and DHCP durations, BSSIDs, and failure states.

query_alerts

Search open and historical Alert events by time window, entity, test type, or severity.

query_alert_detectors

Browse configured Alert Profiles and detector rules.

query_incidents

Search open and historical Incident events across Agents, Targets, and Wi-Fi Profiles.

query_monitoring_conditions

Query Monitoring Condition definitions.

query_api_migrations

Reference mapping from legacy nb-api routes/parameters to canonical NextGen JSON:API endpoints and MCP tools—ideal when migrating legacy scripts with an AI coding assistant.

get_openapi_spec

Returns the full NetBeez OpenAPI 20.0 YAML specification (equivalent to GET /openapi.yaml) when building HTTP JSON:API integrations.

Create & Update MCP Tools

Write tools carry destructiveHint: true and enforce strict JSON Schema validation and role permissions:

MCP Tool Name

Required Role

Action

create_targets

Read Write

Create SaaS, template, or custom Targets with agent/group assignments and optional Alert Profile attachments.

update_targets

Read Write

Incrementally patch Target fields, test templates, agent/group assignments, Monitoring Conditions, Alert Profiles, and SMTP alert contacts.

create_scheduled_test_templates

Read Write

Create Iperf, Network Speed, VoIP, or Custom Command Scheduled Test templates with cron schedules and Alert Profiles.

update_scheduled_test_templates

Read Write

Patch Scheduled Test schedules, agents/groups, destinations, Monitoring Conditions, and Alert Profiles (Packet Capture templates excluded).

create_ad_hoc_tests

Read Write

Launch one-shot Ad-Hoc Tests (Ping, DNS, HTTP, Traceroute, Iperf, Network Speed, VoIP, Packet Capture, or Custom Command).

create_alert_detectors / update_alert_detectors

Administrator (in-app Buzzy only)

Registered on the shared tool server, but restricted to human Administrators (Bot Users cannot hold the Administrator role).

create_monitoring_conditions / update_monitoring_conditions

Administrator (in-app Buzzy only)

Registered on the shared tool server, but restricted to human Administrators.

Did this answer your question?