ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Pbx MCP

โดย ictinnovationsรุ่น 0.1.4i★ –iรันบนเครื่อง
ชื่อใน registryio.github.ictinnovations/pbx-mcp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Inspect and control Asterisk (AMI) and FreeSWITCH (ESL) PBX servers from your AI assistant.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ
  • ต้องใส่ค่าเหล่านี้: ASTERISK_AMI_PASSWORD, FREESWITCH_ESL_PASSWORD

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: ASTERISK_AMI_HOST, ASTERISK_AMI_PORT, ASTERISK_AMI_USERNAME, ASTERISK_AMI_PASSWORD, ASTERISK_AMI_TLS, FREESWITCH_ESL_HOST, FREESWITCH_ESL_PORT, FREESWITCH_ESL_PASSWORD, PBX_MCP_ALLOW_WRITE, PBX_MCP_TIMEOUT_MS

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "pbx": {
      "command": "npx",
      "args": [
        "-y",
        "pbx-mcp"
      ],
      "env": {
        "ASTERISK_AMI_HOST": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_PORT": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_USERNAME": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_PASSWORD": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_TLS": "ใส่ค่าของคุณ",
        "FREESWITCH_ESL_HOST": "ใส่ค่าของคุณ",
        "FREESWITCH_ESL_PORT": "ใส่ค่าของคุณ",
        "FREESWITCH_ESL_PASSWORD": "ใส่ค่าของคุณ",
        "PBX_MCP_ALLOW_WRITE": "ใส่ค่าของคุณ",
        "PBX_MCP_TIMEOUT_MS": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add pbx --env ASTERISK_AMI_HOST='ใส่ค่าของคุณ' --env ASTERISK_AMI_PORT='ใส่ค่าของคุณ' --env ASTERISK_AMI_USERNAME='ใส่ค่าของคุณ' --env ASTERISK_AMI_PASSWORD='ใส่ค่าของคุณ' --env ASTERISK_AMI_TLS='ใส่ค่าของคุณ' --env FREESWITCH_ESL_HOST='ใส่ค่าของคุณ' --env FREESWITCH_ESL_PORT='ใส่ค่าของคุณ' --env FREESWITCH_ESL_PASSWORD='ใส่ค่าของคุณ' --env PBX_MCP_ALLOW_WRITE='ใส่ค่าของคุณ' --env PBX_MCP_TIMEOUT_MS='ใส่ค่าของคุณ' -- npx -y pbx-mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "pbx": {
      "command": "npx",
      "args": [
        "-y",
        "pbx-mcp"
      ],
      "env": {
        "ASTERISK_AMI_HOST": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_PORT": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_USERNAME": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_PASSWORD": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_TLS": "ใส่ค่าของคุณ",
        "FREESWITCH_ESL_HOST": "ใส่ค่าของคุณ",
        "FREESWITCH_ESL_PORT": "ใส่ค่าของคุณ",
        "FREESWITCH_ESL_PASSWORD": "ใส่ค่าของคุณ",
        "PBX_MCP_ALLOW_WRITE": "ใส่ค่าของคุณ",
        "PBX_MCP_TIMEOUT_MS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "pbx": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pbx-mcp"
      ],
      "env": {
        "ASTERISK_AMI_HOST": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_PORT": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_USERNAME": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_PASSWORD": "ใส่ค่าของคุณ",
        "ASTERISK_AMI_TLS": "ใส่ค่าของคุณ",
        "FREESWITCH_ESL_HOST": "ใส่ค่าของคุณ",
        "FREESWITCH_ESL_PORT": "ใส่ค่าของคุณ",
        "FREESWITCH_ESL_PASSWORD": "ใส่ค่าของคุณ",
        "PBX_MCP_ALLOW_WRITE": "ใส่ค่าของคุณ",
        "PBX_MCP_TIMEOUT_MS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • ASTERISK_AMI_HOST env
    Hostname or IP of the Asterisk server. Set this to enable the Asterisk tools.
  • ASTERISK_AMI_PORT env
    Asterisk Manager Interface port. Defaults to 5038.
  • ASTERISK_AMI_USERNAME env
    AMI username from manager.conf.
  • ASTERISK_AMI_PASSWORD ความลับ env
    AMI secret from manager.conf.
  • ASTERISK_AMI_TLS env
    Connect to AMI over TLS. Set true if tlsenable=yes in manager.conf.
  • FREESWITCH_ESL_HOST env
    Hostname or IP of the FreeSWITCH server. Set this to enable the FreeSWITCH tools.
  • FREESWITCH_ESL_PORT env
    FreeSWITCH inbound event socket port. Defaults to 8021.
  • FREESWITCH_ESL_PASSWORD ความลับ env
    Event socket password from event_socket.conf.xml. Defaults to ClueCon, which you should change.
  • PBX_MCP_ALLOW_WRITE env
    Unlocks call control. When false the server is read-only and the originate and hangup tools are not registered at all. Placing a call on a live trunk costs real money, so leave this off unless you me…
  • PBX_MCP_TIMEOUT_MS env
    Per command timeout in milliseconds. Defaults to 10000.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub ictinnovations ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 18323 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 76% ของอีก 18323 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 18323 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Pbx MCP ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: ASTERISK_AMI_PASSWORD, FREESWITCH_ESL_PASSWORD

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.4) เข้า registry 12 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Date Math

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวานซืน
ติดตั้ง

Date Math

โดย JowenDelaPena

Exact date/time math for agents: business days, holidays, time zones, cron, RRULE, SLA. x402 paid.

รันบนคลาวด์อัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

pbx-mcp

An MCP server that lets an AI assistant inspect and control Asterisk and FreeSWITCH.

Ask "which extensions are offline right now?" or "why is my SIP trunk not registering?" and get a real answer from the live switch, not a guess.

Developed by Tahir Almas at ICT Innovations, the team behind ICTCore, ICTContact, ICTDialer, ICTFax and ICTPBX. The AMI and ESL clients in this repo are the same protocol groundwork those products run on.

Why

Debugging a PBX means memorising two very different command sets. Asterisk speaks AMI and a CLI with hundreds of verbs. FreeSWITCH speaks ESL with its own vocabulary. If you run both, you're context switching all day.

pbx-mcp puts a single, well described tool surface in front of both, so your assistant can go from "calls are failing" to sofia status gateway without you spelling out each step.

New here? The user guide walks through PBX setup, client config, worked examples and troubleshooting. This README is the quick reference.

What your assistant sees

Twelve read-only tools, six per engine, each one described well enough that the model picks the right one without being told. This is the server running under the MCP Inspector:

The four write tools, asterisk_originate, asterisk_hangup, freeswitch_originate and freeswitch_hangup, stay hidden until you set PBX_MCP_ALLOW_WRITE=true.

Install

npm install -g pbx-mcp

Or run it straight from npx, which is what most MCP client configs do:

npx -y pbx-mcp

You need Node 18 or newer.

Docker

There's a prebuilt image if you'd rather not put Node on the machine that talks to your PBX.

docker run -i --rm \

-e ASTERISK_AMI_HOST=10.0.0.10 \ -e ASTERISK_AMI_USERNAME=mcp \ -e ASTERISK_AMI_PASSWORD=change-me \ ghcr.io/ictinnovations/pbx-mcp

The same image is on Docker Hub as ictinnovations/pbx-mcp if that registry is an easier pull for you.

Three things to know:

  • -i is not optional. The server speaks MCP over stdio, so without stdin attached the container starts and then sits there saying nothing, which looks exactly like a broken server.
  • There is no port to publish. Nothing listens.
  • Your PBX has to be reachable from inside the container. If Asterisk runs on the Docker host itself, swap the IP above for host.docker.internal on Mac and Windows, or add --network host on Linux.

The image runs as a non-root user and, like every other way of running this, starts read only.

Configure

Everything comes from environment variables. Set the Asterisk block, the FreeSWITCH block, or both. The server only registers tools for what you've actually configured, so an Asterisk-only shop never sees a FreeSWITCH tool.

Asterisk
VariableDefaultNotes
ASTERISK_AMI_HOST*(required to enable)*Hostname or IP of the Asterisk box
ASTERISK_AMI_PORT5038AMI port from manager.conf
ASTERISK_AMI_USERNAMEAMI user
ASTERISK_AMI_PASSWORDAMI secret
ASTERISK_AMI_TLSfalseSet true if tlsenable=yes

Your manager.conf user needs at least read = system,call,command and write = command. Add originate only if you plan to turn on write mode.

[mcp]

secret = change-me read = system,call,command write = command

FreeSWITCH
VariableDefaultNotes
FREESWITCH_ESL_HOST*(required to enable)*Hostname or IP of the switch
FREESWITCH_ESL_PORT8021Inbound ESL port
FREESWITCH_ESL_PASSWORDClueConFrom event_socket.conf.xml
Shared
VariableDefaultNotes
PBX_MCP_ALLOW_WRITEfalseUnlocks call control. Read the safety section first
PBX_MCP_TIMEOUT_MS10000Per command timeout
Provisioning (Asterisk only, opt-in)
VariableDefaultNotes
PBX_MCP_ALLOW_PROVISIONfalseRegisters the six trunk and extension tools. Independent of PBX_MCP_ALLOW_WRITE
PBX_MCP_TRUNK_ALLOW*(unset)*Comma-separated IPv4 CIDRs and hostnames a trunk may point at. Unset means `asterisk_trunk_create` is refused
PBX_MCP_CONTEXT_ALLOW*(unset)*Comma-separated dialplan contexts new objects may use. Unset means every create is refused
PBX_MCP_PJSIP_FILEpjsip_mcp.confThe one include file provisioning writes to. A bare pjsip_*.conf name (never pjsip.conf, manager.conf or any other file)

Claude Desktop

Add this to claude_desktop_config.json:

{

"mcpServers": { "pbx": { "command": "npx", "args": ["-y", "pbx-mcp"], "env": { "ASTERISK_AMI_HOST": "10.0.0.10", "ASTERISK_AMI_USERNAME": "mcp", "ASTERISK_AMI_PASSWORD": "change-me", "FREESWITCH_ESL_HOST": "10.0.0.11", "FREESWITCH_ESL_PASSWORD": "ClueCon" } } } }

The same shape works for any MCP client that speaks stdio. There's a copy in examples/claude_desktop_config.json.

To run the container instead of npx, keep the env block and point command at Docker:

{

"mcpServers": { "pbx": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "ASTERISK_AMI_HOST", "-e", "ASTERISK_AMI_USERNAME", "-e", "ASTERISK_AMI_PASSWORD", "ghcr.io/ictinnovations/pbx-mcp" ], "env": { "ASTERISK_AMI_HOST": "10.0.0.10", "ASTERISK_AMI_USERNAME": "mcp", "ASTERISK_AMI_PASSWORD": "change-me" } } } }

Each -e NAME with no value forwards that variable from env into the container, which keeps the secrets out of the argument list.

Tools

Asterisk
ToolWhat it does
asterisk_statusVersion, uptime, active calls and calls processed
asterisk_channelsEvery live channel with caller ID, state, bridge, duration and dialplan position. Optional substring filter
asterisk_endpointsPJSIP endpoints with device state and contact count. Falls back to chan_sip peers on older installs
asterisk_dialplanDumps a context, or one extension inside a context
asterisk_cliAny CLI command, subject to the safety policy below
asterisk_hangup_previewShows which live channels a hangup would drop, without dropping them
asterisk_originatePlaces a call. Write mode only
asterisk_hangupKills a channel by name. Write mode only
FreeSWITCH
ToolWhat it does
freeswitch_statusVersion, uptime, current and maximum sessions
freeswitch_channelsEvery live call leg from show channels. Optional substring filter that keeps the header row
freeswitch_registrationsRegistered users on a Sofia profile, with contact URI, user agent and expiry
freeswitch_sofia_statusEvery SIP profile and gateway, including whether trunks are registered upstream
freeswitch_apiAny API command, subject to the safety policy below
freeswitch_hangup_previewShows which live legs a hangup would drop, without dropping them
freeswitch_originatePlaces a call. Write mode only
freeswitch_hangupuuid_kill on a channel UUID. Write mode only

Safety

A PBX is not a scratch pad. Reloading a profile drops registrations, and an originate spends real money on a live trunk. So the default posture is read-only and the guards are layered:

Read-only by default. asterisk_cli accepts an allow list of inspection prefixes (core show, pjsip show, dialplan show, queue show and friends). freeswitch_api accepts the same kind of list (status, show, sofia status, db list and friends), matched on the start of the command so the subcommand counts.

The FreeSWITCH list allows subcommands, it does not deny scary words. sofia status reads, sofia profile internal restart isn't on the list, so it's refused. This used to work the other way around, scanning each word against a list of state changing verbs, and that only ever catches the words somebody thought of. conference 3001 kick all walked straight through it. Reported by Electrical-Place-458 on r/mcp.

Write tools aren't registered at all in read-only mode. asterisk_originate and the other three never appear in tools/list unless you set PBX_MCP_ALLOW_WRITE=true. A model can't call a tool it can't see.

The hangup preview tools are always available. asterisk_hangup_preview and freeswitch_hangup_preview show which live channels a hangup would drop without touching them, so you can see the blast radius before setting the write flag, or catch a typo in a channel name before running the real thing. They're read-only by contract but exercise the same matching the write path uses.

Shell metacharacters are rejected on both transports before a command is sent.

AMI header injection is blocked. Every field that lands in an AMI action is checked for carriage returns and newlines, so a caller ID string can't smuggle in an extra header.

Output is clamped to 20,000 characters. One show channels on a busy switch won't flood the context window.

Even with all that, give the AMI user the narrowest permission set that answers your questions, and put the PBX behind a firewall rather than on the public internet.

Provisioning trunks and extensions (Asterisk, opt-in)

Six more tools create, list and delete PJSIP trunks and SIP extensions through AMI UpdateConfig. They are registered only when PBX_MCP_ALLOW_PROVISION=true, and they are separate from write mode: enabling one does not enable the other.

ToolWhat it does
asterisk_trunk_createIP-authenticated trunk: endpoint, aor and identify. Fields: name, host, port (5060), transport (udp, tcp, tls), codecs, context, dry_run
asterisk_trunk_list / asterisk_trunk_deleteList or remove trunks this server created
asterisk_extension_createA SIP endpoint phones register to (endpoint, aor, auth), not a dialplan extension. Fields: number, context, codecs, dry_run. The generated password is returned once
asterisk_extension_list / asterisk_extension_deleteList or remove extensions this server created. Passwords are never listed

Codecs are ulaw, alaw, g722, g729, opus. Names and numbers match ^[A-Za-z0-9_-]{1,32}$.

One-time setup
  1. Create the managed file, empty, beside pjsip.conf (a missing include is an error), and let Asterisk write to it:
   touch /etc/asterisk/pjsip_mcp.conf
  1. Add this single line at the end of pjsip.conf. Nothing else in pjsip.conf is ever touched:
   #include pjsip_mcp.conf
  1. Give the AMI user the extra permissions provisioning needs. config is for UpdateConfig/GetConfig, command for the reload and verify steps, originate only if you also use write mode:
   [mcp]

secret = change-me deny = 0.0.0.0/0.0.0.0 permit = 192.0.2.0/24 read = system,call,command write = command,originate,config

  1. Trunks reference a transport named transport-udp, transport-tcp or transport-tls; define the ones you will use in pjsip.conf.
How it works
  • Everything goes into the managed file

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx