HT802 V2 MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@HT802 V2 MCP Server check if both FXS ports are registered and show their hook status"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-mcpEnvironment Variables
Variable | Default | Description |
|
| Device IP address |
|
| HTTP port |
|
| Login username ( |
| (empty) | Login password |
|
| Use HTTPS |
|
| Verify TLS certificate |
Related MCP server: @ucm-control-kit/mcp
Available Tools
Device Status
Tool | Description |
| Model, serial, MAC, firmware versions, uptime, CPU load |
| Product model and vendor name |
| IP addresses, cable status, NAT, PPPoE, VPN, certificate |
| FXS port 1 & 2: hook state, SIP user, registration |
| Current device clock |
| Whether a reboot/apply is pending |
| ATA process memory, provisioning status, core dump |
Port Settings
Each tool takes a port argument (1 or 2).
Tool | Description |
| SIP server, user ID, auth, NAT, DNS, outbound proxy |
| Registration, transport, timers, session, keep-alive |
| Vocoder priority, DTMF, RTP, jitter buffer, SRTP, fax |
| Impedance, caller ID, loop current, hook flash, ring |
| Dial plan, auto-dial, call waiting, caller ID, timeouts |
| Special feature, SIP security, certificate auth |
| DND, call forwarding, call waiting, transfer star-codes |
| Custom ring tones, ring cadences, call waiting tones |
Utilities
Tool | Description |
| Read arbitrary P-parameters by name |
| 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 formattingLicense
MIT
Available Tools
17 toolsget_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
Scored across 17 tools
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.
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.
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.
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
Related MCP Connectors
Read pages, components, incidents and maintenances; create and update incidents in Statuspage.
Read balance, tariffs, SIP and PBX status and call logs; send SMS in Zadarma.
Create, configure and manage an AI phone receptionist. Requires a Fonixia account.
Pingstack monitors cron jobs and scheduled tasks with heartbeat checks, and checks websites, TCP ports, DNS records, SSL certificates and domain expiry. This MCP server lets your agent create, update, pause and delete checks, build dashboards and publish them as status pages, manage notification groups, and read incidents with their causes, uptime, run history and latency. Pause, delete and unpublish stay off until you turn them on. Browser sign-in, no API key needed.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables querying sensors, devices, groups, channels, historical data, and system status from a PRTG Network Monitor instance via the classic PRTG HTTP API.92-
- AlicenseNot gradedqualityCmaintenanceEnables 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
- AlicenseBqualityCmaintenanceEnables 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.14AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables 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