Skip to main content
Glama

HT802 V2 MCP Server

MCP server for managing Grandstream HT802 V2 analog telephone adapters.

Usage

With Claude Code

Add to your .claude/settings.json:

{
  "mcpServers": {
    "ht802": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/ht802v2-mcp", "ht802v2-mcp"],
      "env": {
        "HT802_HOST": "192.168.1.1",
        "HT802_PASSWORD": "your-password"
      }
    }
  }
}

Standalone

HT802_HOST=192.168.1.1 HT802_PASSWORD=secret uv run ht802v2-mcp

Environment Variables

Variable

Default

Description

HT802_HOST

192.168.1.1

Device IP address

HT802_PORT

80

HTTP port

HT802_USERNAME

admin

Login username (admin, user, or viewer)

HT802_PASSWORD

(empty)

Login password

HT802_USE_SSL

false

Use HTTPS

HT802_VERIFY_SSL

false

Verify TLS certificate

Related MCP server: @ucm-control-kit/mcp

Available Tools

Device Status

Tool

Description

get_system_info

Model, serial, MAC, firmware versions, uptime, CPU load

get_base_info

Product model and vendor name

get_network_status

IP addresses, cable status, NAT, PPPoE, VPN, certificate

get_port_status

FXS port 1 & 2: hook state, SIP user, registration

get_device_time

Current device clock

get_apply_status

Whether a reboot/apply is pending

get_system_process_info

ATA process memory, provisioning status, core dump

Port Settings

Each tool takes a port argument (1 or 2).

Tool

Description

get_port_general

SIP server, user ID, auth, NAT, DNS, outbound proxy

get_port_sip

Registration, transport, timers, session, keep-alive

get_port_codec

Vocoder priority, DTMF, RTP, jitter buffer, SRTP, fax

get_port_analog_line

Impedance, caller ID, loop current, hook flash, ring

get_port_call_settings

Dial plan, auto-dial, call waiting, caller ID, timeouts

get_port_advanced

Special feature, SIP security, certificate auth

get_port_call_features

DND, call forwarding, call waiting, transfer star-codes

get_port_ring_tone

Custom ring tones, ring cadences, call waiting tones

Utilities

Tool

Description

get_values

Read arbitrary P-parameters by name

reboot

Reboot the device (~60s downtime)

Device API Overview

The HT802 V2 web UI is a Vue.js SPA backed by a JSON HTTP API under /cgi-bin/.

Authentication

Login via POST /cgi-bin/dologin with the password base64-encoded in the P2 field. Returns a session token (MD5 hex string) and a session_id cookie — both must be included in all subsequent requests. Sessions time out after ~15 minutes of inactivity; the MCP client re-authenticates automatically on expiry.

P-Parameters

All device configuration is stored as numbered P-parameters (e.g. P47 = Primary SIP Server, P35 = SIP User ID). The two FXS ports share the same settings structure but use different P-numbers:

Setting

Port 1

Port 2

Account Active

P271

P401

SIP Server

P47

P747

SIP User ID

P35

P735

Auth Password

P3

P703

Local SIP Port

P40

P740

The primary read endpoint is POST /cgi-bin/api.values.get with a colon-separated list of parameter names. All values are returned as strings. Virtual fields like mac_display, serial_number, and cpu_load use the same endpoint.

Full endpoint and field documentation is in api-docs.md.

Development

Requires Python 3.13+ and uv.

uv sync                  # install dependencies
tox -e lint              # run ruff linter
tox -e format            # check formatting

License

MIT

Available Tools

17 tools
get_apply_statusA

Check if a reboot or apply is pending. Status '0' means no pending changes.

Inputs: no named parameters. Returns: result

get_base_infoA

Get basic product identification: product model and vendor name.

Inputs: no named parameters. Returns: result

get_device_timeA

Get current device date and time.

Inputs: no named parameters. Returns: result

get_network_statusA

Get network status: IP addresses, cable status, NAT type, PPPoE, VPN, certificate.

Inputs: no named parameters. Returns: result

get_port_advancedA

Get advanced settings for a port: special feature, SIP security, certificate auth.

Args: port: FXS port number (1 or 2).

Inputs: port (required). Returns: result

get_port_analog_lineB

Get analog line settings for a port: impedance, caller ID, loop current, hook flash, ring.

Args: port: FXS port number (1 or 2).

Inputs: port (required). Returns: result

get_port_call_featuresA

Get call feature star-codes for a port: DND, call forwarding, call waiting, transfer codes.

Args: port: FXS port number (1 or 2).

Inputs: port (required). Returns: result

get_port_call_settingsA

Get call settings for a port: dial plan, auto-dial, call waiting, caller ID, timeouts.

Args: port: FXS port number (1 or 2).

Inputs: port (required). Returns: result

get_port_codecA

Get codec settings for a port: vocoder priority, DTMF, RTP, jitter buffer, SRTP, fax.

Args: port: FXS port number (1 or 2).

Inputs: port (required). Returns: result

get_port_generalB

Get general settings for a port: SIP server, user ID, auth, NAT, DNS, outbound proxy.

Args: port: FXS port number (1 or 2).

Inputs: port (required). Returns: result

get_port_ring_toneA

Get ring tone settings for a port: custom ring tones, ring cadences, call waiting tones.

Args: port: FXS port number (1 or 2).

Inputs: port (required). Returns: result

get_port_sipA

Get SIP protocol settings for a port: registration, transport, timers, session, keep-alive.

Args: port: FXS port number (1 or 2).

Inputs: port (required). Returns: result

get_port_statusA

Get FXS port status for both ports: hook state, SIP user, registration, SIP port.

Inputs: no named parameters. Returns: result

get_system_infoA

Get device identity and versions: model, serial, MAC, firmware versions, uptime, CPU load.

Inputs: no named parameters. Returns: result

get_system_process_infoA

Get system process info: ATA process memory, provisioning status, core dump status.

Inputs: no named parameters. Returns: result

get_valuesA

Read arbitrary P-parameters by name. Pass a list of parameter names like ['P30', 'P64'].

All values are returned as strings. Useful for reading any device setting not covered by a dedicated tool.

Inputs: parameters (required). Returns: result

rebootA

Reboot the device. The device will be unreachable for ~60 seconds after this call.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 17 tools

    Disambiguation4/5

    The get_port_* tools are cleanly partitioned by settings domain (SIP, codec, analog line, call features, ring tone), so an agent can pick by topic. Minor overlap exists: get_base_info and get_system_info both return model information, and get_values is a generic catch-all that overlaps with every dedicated getter.

    Naming Consistency4/5

    Reads consistently follow the get_<subject> pattern, with a clean get_port_* namespace for the eight per-port getters. The only deviation is the bare verb 'reboot', which is conventional for an action and easy to read.

    Tool Count4/5

    With 17 tools the server is slightly heavy, but the count is driven by a genuine 8-category settings split repeated across two FXS ports. Each getter maps to a coherent slice of device state, so no tool feels redundant filler.

    Completeness2/5

    The surface is almost entirely read-only: there is no set_values or per-port setter, no factory reset, no firmware or provisioning configuration tool, and reboot is the sole action. For a device-management server, an agent can inspect everything but cannot change anything beyond rebooting, a significant capability gap.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      Enables querying sensors, devices, groups, channels, historical data, and system status from a PRTG Network Monitor instance via the classic PRTG HTTP API.
      9
      2
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents and MCP clients to audit, monitor, diagnose, and safely manage Grandstream UCM phone systems, including extension status, call reports, site reconciliation, and confirmed test calls or admin edits.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables interaction with Neptune Apex aquarium controllers through their local REST API, providing read-only monitoring of probes, outlets, power, inputs, and history by default, with opt-in write tools for outlet control, feed cycles, and guarded program edits.
      14
      AGPL 3.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables an agent to inspect and manage GL.iNet routers on firmware 4.x over the same JSON-RPC API the router's own admin panel uses, covering status, client lists, Wi-Fi and LAN configuration, static DHCP reservations, port forwards and reboots, plus a generic call for any method the router exposes — all without installing anything on the device.
      MIT