cucm-emulator-mcp
Enables AI assistants and automation agents to interact with Cisco CUCM Emulator instances through dynamically generated tools for telephony operations, call simulation, routing policies, CDR buffers, and optional offline mock state.
README
@calltelemetry/cucm-emulator-mcp
OpenAPI-driven Model Context Protocol (MCP) server for Cisco Unified Communications Manager (CUCM) Emulator.
Overview
@calltelemetry/cucm-emulator-mcp is an OpenAPI-driven MCP server that connects AI coding assistants and automation agents directly to Cisco CUCM Emulator instances. It parses the emulator's OpenAPI 3.1.0 contract specification to dynamically generate strongly-typed discrete MCP tools across all 6 core telephony domains:
- Fixtures & Topology:
emu_seed_fixtures,emu_reset_store,emu_inspect_fixtures - Nodes & Cluster Health:
emu_list_nodes,emu_set_node_status(ADR 0120/0122 failover) - Phones & Registration:
emu_list_phones,emu_set_phone_status,emu_get_phone_web - Call Simulation & Legs:
emu_simulate_call,emu_call_action,emu_list_active_calls - CURRI / ECC Policy Routing:
emu_evaluate_curri,emu_get_curri_history - CDR / CMR Buffers:
emu_generate_cdrs,emu_get_cdr_history - Dynamic OpenAPI Operations: 46+ auto-compiled operations (
emu_get_summary,emu_get_topology,emu_query_sql,emu_list_inventory,emu_upsert_inventory, etc.)
Architecture
┌─────────────────────────────────────────────────────────────┐
│ AI Agents / MCP Clients │
│ (Claude Code, Cursor, Windsurf) │
└──────────────────────────────┬──────────────────────────────┘
│ JSON-RPC 2.0 (Stdio / SSE)
┌──────────────────────────────▼──────────────────────────────┐
│ CucmEmulatorMcpServer │
│ │
│ ┌───────────────────────┐ ┌────────────────────────┐ │
│ │ Tool Registry │ │ OpenAPI Spec Parser │ │
│ │ (15 Domain + Dynamic) │◄─────┤ (Dereferencer/Build) │ │
│ └───────────┬───────────┘ └────────────────────────┘ │
│ │ │
│ ┌───────────▼───────────────────────────────────────────┐ │
│ │ ICucmEmulatorClient Abstraction │ │
│ └───────────┬───────────────────────────┬───────────────┘ │
└──────────────┼───────────────────────────┼──────────────────┘
│ │
┌──────────────▼────────────┐ ┌────────────▼──────────────────┐
│ HttpCucmClient │ │ DirectStoreCucmClient │
│ Live In-Guest / Container│ │ In-Memory Mock Store State │
│ (http://127.0.0.1:8443) │ │ (100% Offline Zero-Config) │
└───────────────────────────┘ └───────────────────────────────┘
Installation & Quick Start
Global CLI
npm install -g @calltelemetry/cucm-emulator-mcp
Run Stdio Server (for AI Agents / Claude Desktop)
cucm-emulator-mcp --transport stdio
Run SSE Server
cucm-emulator-mcp --transport sse --port 3000 --host 127.0.0.1
Configuration Options
| Option | Flag | Environment Variable | Default | Description |
|---|---|---|---|---|
| Transport | -t, --transport |
MCP_TRANSPORT |
stdio |
Transport type: stdio or sse |
| Port | -p, --port |
PORT / MCP_PORT |
3000 |
Port for SSE HTTP server |
| Host | -h, --host |
HOST / MCP_HOST |
127.0.0.1 |
Bind host for SSE transport |
| Target URL | -u, --target-url |
CUCM_EMULATOR_URL |
undefined |
Target live emulator URL |
| Spec Path | -s, --spec-path |
CUCM_OPENAPI_SPEC |
Bundled | Path or URL to OpenAPI 3.1.0 spec |
| Mock Mode | -m, --mock |
CUCM_MOCK |
false |
Force in-process in-memory mock store |
| Seed Profile | --seed-profile |
CUCM_SEED_PROFILE |
lab-small |
lab-small, standard-enterprise, empty |
| Auth Token | --auth-token |
CUCM_EMULATOR_AUTH_TOKEN |
undefined |
Bearer auth token for live emulator |
| Redact Secrets | --redact-secrets |
REDACT_SECRETS |
false |
Redact sensitive strings in logs |
MCP Client Configuration
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"cucm-emulator": {
"command": "cucm-emulator-mcp",
"args": ["--transport", "stdio", "--mock", "--seed-profile", "lab-small"]
}
}
}
SSE Integration
{
"mcpServers": {
"cucm-emulator-sse": {
"url": "http://127.0.0.1:3000/sse"
}
}
}
Available Tool Reference
Fixtures & Topology
emu_seed_fixtures: Seeds deterministic cluster topology, nodes, phones, dial plan partitions, CSS, and CURRI policies.emu_reset_store: Resets or wipes emulator state and re-seeds with a specified topology profile.emu_inspect_fixtures: Inspects and returns a comprehensive summary of active CUCM cluster state.
Nodes & Failover
emu_list_nodes: Lists all CUCM cluster nodes (Publisher, Subscribers, TFTP) with roles and RIS return codes.emu_set_node_status: Sets node status (Online,Offline,NotFound,SearchLimitExceeded) for ADR 0120/0122 failover testing.
Phones & Registration
emu_list_phones: Lists configured and registered Cisco IP phone endpoints with directory numbers and MACs.emu_set_phone_status: Updates phone registration status (Registered,UnRegistered,Rejected,Unknown).emu_get_phone_web: Fetches phone XML, HTML, or JSON serviceability / status web responses.
Call Simulation
emu_simulate_call: Simulates an end-to-end telephone call through CUCM dial plan routing with RTP media metrics.emu_call_action: Executes mid-call actions (answer,hold,resume,drop).emu_list_active_calls: Lists active in-progress call sessions in the emulator.
CURRI / ECC Policy Routing
emu_evaluate_curri: Evaluates external call routing policies via CURRI / ECC, returning permit, deny, or divert verdicts.emu_get_curri_history: Retrieves the log of past CURRI routing evaluation decisions.
CDR / CMR Buffers
emu_generate_cdrs: Generates batches of synthetic CDR records (normal, abandoned, curri-blocked, burst).emu_get_cdr_history: Retrieves recent CDR records in structured JSON or raw Cisco CSV export format.
Development & Verification
# Typecheck
npm run typecheck
# Build TypeScript
npm run build
# Run Full Test Suite (155 Tests)
npm test
# Run with Coverage
npm run test:coverage
# Verify Packaging
npm pack --dry-run
License
MIT © Call Telemetry
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。