unifi-talk-mcp
Provides tools for interacting with Ubiquiti UniFi Talk, enabling users to retrieve call history, call timelines and transcriptions, manage users and extensions, phone numbers, devices, ring groups, queues, IVR, and view service health and usage.
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., "@unifi-talk-mcp show me today's call history and any missed calls"
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.
unifi-talk-mcp
A Model Context Protocol server for UniFi Talk, Ubiquiti's phone system: call history, call timelines and transcriptions, users and extensions, phone numbers, devices, ring groups, queues, IVR, service health, and usage.
Unofficial. Ubiquiti publishes no Talk API. This server uses the private API behind the Talk web UI, as documented by the reverse-engineering project millsbrandon/UniFi-Talk-API against Talk 5.1.2. Any Talk update can rename or remove endpoints.
How it works
Talk does not accept UniFi integration API keys. It sits behind the UniFi OS web session, so the
server logs in to /api/auth/login with a local account, holds the session cookie and CSRF token in
memory, and logs in again when the session expires. Login happens on the first tool call, not at
startup.
Tools
Tool | Purpose |
| Talk version and region, console summary, service health |
| Paginated call history ( |
| Event timeline and transcription for one call |
| Phones and softphones: user, ext, status, SIP registration, last seen, firmware |
| Catalog of known endpoints with parameters, filterable by area |
| Call any read endpoint by id (users, numbers, devices, ring groups, config…) |
| Call a write endpoint by id. Disabled unless |
Safety
Read-only by default.
talk_invokerefuses every call unlessTALK_ALLOW_WRITES=true.Secrets are always redacted. SIP registration passwords, SIP trunk credentials, PINs, device key hashes, and tokens are replaced with
[redacted]before results reach the model.Redacted values can't be written back.
talk_invokerejects any body containing[redacted], so a read-modify-write can't overwrite a real SIP password with the placeholder.Path parameters are validated. IDs can't contain
/or dot segments, so calls can't escape/proxy/talk/api.Left out on purpose: binary downloads (recordings, greetings, PCAPs), file uploads, and writes that would need credentials typed into chat (SIP trunks, third-party SIP devices).
Related MCP server: mcp-unifi-network
Setup
1. Create a dedicated local account
In UniFi OS on the console that runs Talk, open Admins & Users and create an admin:
Choose Restrict to local access only. Cloud (UI.com) accounts and accounts with MFA can't sign in through
/api/auth/login.Give it the least-privileged Talk role that covers what you need, and no access to other apps.
2. Build
Requires Node.js 22 or later.
npm install
npm run build
npm test3. Configure your MCP client
Variable | Required | Default | Description |
| yes | — | Console address, e.g. |
| yes | — | Local UniFi OS account |
| yes | — | Its password |
| no |
| Enable |
| no | — | Path to the console's CA certificate (PEM) |
| no |
| Skip TLS verification. Last resort |
| no |
| Per-request timeout |
Claude Desktop: merge this into mcpServers in
~/Library/Application Support/Claude/claude_desktop_config.json, then restart the app. Use absolute
paths; GUI apps don't inherit your shell's PATH (command -v node gives yours).
"Unifi-talk": {
"command": "/usr/local/bin/node",
"args": ["/absolute/path/to/unifi-talk-mcp/dist/index.js"],
"env": {
"TALK_BASE_URL": "https://192.168.1.1",
"TALK_USERNAME": "talk-mcp",
"TALK_PASSWORD": "…",
"TALK_CA_CERT": "/absolute/path/to/console-ca.pem"
}
}Claude Code:
claude mcp add unifi-talk -s user \
-e TALK_BASE_URL=https://192.168.1.1 \
-e TALK_USERNAME=talk-mcp \
-e TALK_PASSWORD=… \
-- node /absolute/path/to/unifi-talk-mcp/dist/index.jsTLS
UniFi consoles use self-signed certificates issued to unifi.local, which never match the address
you connect to. Save the console's certificate as a PEM file and point TALK_CA_CERT at it. The
server trusts that certificate, and it accepts the hostname mismatch only when the console presents
that exact certificate (matched by SHA-256 fingerprint). Any other certificate is rejected.
Before trusting the saved file, compare its fingerprint with the one your browser shows for the console. If UniFi OS regenerates its certificate (after a reset, for example), connections fail until you save the new one.
TALK_INSECURE_TLS=true turns verification off entirely and prints a warning at startup. Use it
only as a last resort.
Smoke test
npm run smokeWith no TALK_* variables set, the test runs offline: it starts the server against a closed
local port and checks tool registration, input validation, the write gate, and error reporting.
With TALK_BASE_URL, TALK_USERNAME, and TALK_PASSWORD exported, it runs live, read-only
calls (talk_status, one call-log record, users, devices) and prints only success and field names,
never data.
Troubleshooting
Symptom | Cause |
| The client config doesn't pass |
| Wrong credentials, a cloud account, or MFA enabled |
| Too many logins; wait a few minutes |
| Self-signed certificate; set |
| Talk isn't installed on this console, or the endpoint changed in your Talk version |
| Wrong address, or HTTPS isn't reachable from this machine |
Known gaps
No real-time events (Talk's WebSocket at
/proxy/talk/ws).No recording or voicemail audio downloads; voicemail audio has no HTTP endpoint at all.
Sending SMS: the endpoint is unknown.
Endpoints marked
candidateintalk_list_endpointshaven't been confirmed on a live console.
Available Tools
7 toolstalk_getRead from TalkBRead-only
Call any read-only Talk endpoint by id. See talk_list_endpoints for descriptions and parameters.
Inputs: endpoint (required), query, path_params.
talk_get_callGet call detailsARead-only
Event timeline and transcription (if enabled) for one call, by the uuid from talk_list_calls.
Inputs: uuid (required).
talk_invokeChange Talk configurationADestructive
Call a Talk endpoint that changes or deletes data. Disabled unless the server runs with TALK_ALLOW_WRITES=true. Confirm with the user before calling. See talk_list_endpoints for body shapes.
Inputs: endpoint (required), body, path_params.
talk_list_callsList callsBRead-only
Call history with caller ID, direction, status, and voicemail data. Paginated.
Inputs: page, per_page.
talk_list_devicesList devicesBRead-only
Talk desk phones and softphone apps with user, extension, status, SIP registration, last seen, IP, and firmware. A compact view of the devices endpoint; filter by status or kind.
Inputs: kind, status.
talk_list_endpointsList Talk endpointsARead-only
Catalog of known UniFi Talk API endpoints (users, numbers, devices, routing, voicemail, billing, and more) with their parameters. Use it to find an endpoint id for talk_get or talk_invoke.
Inputs: area.
talk_statusTalk statusARead-only
Talk version and region, console summary, and service health. A good first call.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools have clearly distinct purposes: status, write operations, call history, call detail, devices, endpoint catalog, and generic reads. Slight overlap exists between talk_get_call (specialized call timeline) and talk_get (generic read by endpoint id), but descriptions clarify the intended use.
All tools share the talk_ prefix and mostly follow verb_noun (talk_list_calls, talk_get_call, talk_list_devices). talk_status and talk_invoke deviate slightly from the pattern, but the naming remains predictable and readable.
Seven tools is well-scoped for a UniFi Talk integration: a status check, a write dispatcher, a catalog of endpoints, and a few high-value read wrappers. Each tool earns its place without redundancy or bloat.
The combination of generic talk_get for reads, talk_invoke for writes, and talk_list_endpoints for discoverability covers the full API surface. Convenience tools for calls and devices cover the most common workflows, so there are no obvious dead ends.
Maintenance
Related MCP Connectors
Read calls, contacts, users, teams and numbers; tag calls and create or update contacts.
Read Spoke calls, transcripts, directory and users; manage phonebook contacts and send SMS.
Place calls, send WhatsApp, manage contacts, leads and campaigns, and read call records and billing
Video, voice, AI agent and SIP calls: create rooms, place calls, read recordings and usage.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables read-only querying of a UniFi fleet via the Site Manager API and per-console connector proxy, allowing users to list hosts, sites, devices, ISP metrics, and live network clients through Claude.-
- AlicenseAqualityBmaintenanceProvides read-only access to UniFi Network consoles for sites, devices, clients, vouchers, networks, Wi-Fi, and firewall configuration, with optional opt-in tools for controlled write operations and legacy controller support.14256 npmMIT
- AlicenseAqualityBmaintenanceQueryable UniFi API documentation for Network, Protect, Site Manager, InnerSpace, Mobility and Carrier Fabric - endpoint search, schema drill-down and code examples in five languages. Read-only: it serves scraped docs and never connects to a controller.10145 PyPI40MIT
- AlicenseNot gradedqualityBmaintenanceEnables call-recording upload and retrieval, compliance metadata and tag management, group/account/user administration, REST-hook (webhook) notifications, and Dub.Point telecom-system integration against the Dubber platform. All destructive operations are consent-gated and confirmation-protected.Apache 2.0