3CX MCP Server
Click on "Install 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., "@3CX MCP Servershow me the active calls right now"
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.
An MCP (Model Context Protocol) server that connects Claude to a 3CX Phone System (V20+). Manage users, monitor calls, search contacts, configure forwarding — directly from Claude Desktop, Claude Code, or any MCP-compatible client.
Features
User Management — list, create, update, delete users and extensions
Call Monitoring — view active calls and call history (CDR)
Contact Search — search and browse the 3CX phonebook
Queue & Ring Group Status — monitor call queues and ring groups
Forwarding Control — view and change forwarding profiles per extension
System Administration — system status, trunks, departments, event logs
The server authenticates via OAuth2 Client Credentials against the 3CX Configuration API (XAPI), manages token lifecycle automatically, and exposes 22 tools over MCP's stdio transport.
Quick Start
git clone https://github.com/SSIG-IT/3cx-mcp-server.git && cd 3cx-mcp-server npm install && npm run build cp .env.example .env # edit with your 3CX credentials npm start
Contents: Prerequisites · API Setup · Installation · Configuration · Usage · Tools (22) · Troubleshooting · Deutsch
Prerequisites
Node.js 20 or later
3CX V20+ (hosted or self-hosted)
3CX License with XAPI access — Enterprise (ENT/AI) or Enterprise Plus (ENT+)
3CX API Setup
Log in to your 3CX Web Client as System Owner. Click the gear icon (bottom left) to enter the Admin area.
Navigate to Integrations > API (German: Integrationen > API)
Click Add (Hinzufügen)
Enter a Client ID — must be a numeric extension number (e.g.
900,950). Text values likemcp-serverwill be rejected. Choose an unused number.Check the XAPI access checkbox
Set Department to your main department (usually DEFAULT)
Set the Role to System Owner (Systemeigentümer)
⚠️ The role MUST be "System Owner", NOT "System Administrator". With System Administrator, most tools work but
get_call_history,ChatHistoryView,RecordingsandScheduledReportsreturn 403.
Click Save
A popup shows the API Secret — copy it immediately, it is only shown once!
Store Client ID and API Secret securely (e.g. in a password manager)
Installation
git clone https://github.com/SSIG-IT/3cx-mcp-server.git
cd 3cx-mcp-server
npm install
npm run buildConfiguration
cp .env.example .envEdit .env with your values:
TCX_FQDN=your-company.my3cx.de
TCX_PORT=443
TCX_TIMEZONE=Europe/Berlin
TCX_CLIENT_ID=900
TCX_CLIENT_SECRET=your_api_secret_hereDeployment | Example FQDN | Port |
3CX Hosted |
| 443 |
Self-hosted (Linux/Windows) |
| 5001 |
If unsure, try port 443 first. If you get "Connection refused", switch to 5001.
For call-history queries like "missed calls today", set TCX_TIMEZONE to your business/PBX timezone. Otherwise, today falls back to the MCP host timezone, which may be UTC on remote hosts.
Usage
Add to your claude_desktop_config.json:
{
"mcpServers": {
"3cx": {
"command": "node",
"args": ["/absolute/path/to/3cx-mcp-server/build/index.js"],
"env": {
"TCX_FQDN": "your-company.my3cx.de",
"TCX_PORT": "443",
"TCX_CLIENT_ID": "900",
"TCX_CLIENT_SECRET": "your_api_secret_here"
}
}
}
}For Claude Code in VS Code, use the same configuration in your VS Code settings.json under claude.mcpServers.
MetaMCP
For MetaMCP, add the server with:
Command:
npxArguments:
-y github:SSIG-IT/3cx-mcp-server
Set these environment variables:
TCX_FQDN=your-company.my3cx.de
TCX_PORT=443
TCX_TIMEZONE=Europe/Berlin
TCX_CLIENT_ID=900
TCX_CLIENT_SECRET=your_api_secret_hereTCX_TIMEZONE is strongly recommended — it defines the day boundary for get_call_history(scope="today"). Without it, "today" falls back to the host timezone (may be UTC on remote systems).
To force a fresh install after updates: npx --force -y github:SSIG-IT/3cx-mcp-server
Standalone HTTP Transport
Run the server as a remote HTTP endpoint (without MetaMCP):
MCP_TRANSPORT=http
MCP_HTTP_PORT=8080npm run build && npm start
# Server listens on http://0.0.0.0:8080/mcp
# Health check: http://0.0.0.0:8080/healthDeploy behind a reverse proxy (nginx/Cloudflare) with HTTPS for production use.
Testing
Test with MCP Inspector: npm run inspect (macOS/Linux) or npm run inspect:win (Windows). The .env file is loaded automatically.
Available Tools (22)
Tool | Type | Description |
| Read | System health, version, license, active calls count, disk usage |
| Read | System event logs (filter by Type: Error, Warning, Info) |
Tool | Type | Description |
| Read | Search users by name, extension, email, or mobile. Set |
| Read | Full details of one user by extension number (returns Id needed for update/delete) |
| Read | Quick status: is registered? current profile? queue status? |
| Write | Create a new extension |
| Write | Update user fields by Id |
| Write | Delete users by Id array |
Tool | Type | Description |
| Read | All forwarding profiles and routing rules for an extension |
| Write | Change active profile (Available, Away, Out of office, etc.) |
Tool | Type | Description |
| Read | All departments/groups |
| Write | Create a department |
| Write | Update department fields by Id |
Tool | Type | Description |
| Read | All SIP trunks with registration status |
| Read | Full trunk config by Id |
Tool | Type | Description |
| Read | Currently live calls |
| Read | Call history (V20 U6+ ReportCallLogData) with scope (today/last_24h/all), missedOnly filter, extension/queue filter. Timezone-aware. |
Tool | Type | Description |
| Read | Search queues by number or name |
| Read | Agents/members of a specific queue, with optional logged-in filter |
| Read | All ring groups |
Tool | Type | Description |
| Read | Search phonebook by name, company, or phone number |
| Read | Exact phone number lookup with normalization |
Troubleshooting
Error | Cause | Fix |
401 Unauthorized | Invalid credentials | Re-check |
403 Forbidden on get_call_history | Wrong role | Service principal role must be System Owner, not System Administrator. |
"Format invalid" creating API key | Non-numeric Client ID | The Client ID must be a number (e.g. |
Connection refused | Wrong port | Set |
fetch failed / ENOTFOUND | Wrong hostname | Verify |
Not sure if API works | Test credentials | Run: |
License
MIT — see LICENSE
Contributing
See CONTRIBUTING.md
Deutsch
Einrichtung: [3CX Admin] Integrationen > API > Hinzufügen > Client-ID (numerisch, z.B. 900) > XAPI aktivieren > Rolle: Systemeigentümer > Speichern > API-Key sofort kopieren.
Port 443 für gehostete Instanzen (*.my3cx.de), Port 5001 für selbst-gehostete.
Vollständige Anleitung: siehe englische Dokumentation oben.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SSIG-IT/3cx-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server