callwright
Supports tracking calls from TickTick tasks by storing task IDs and using them for webhook-based call completion notifications.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Callwright
A voice agent that places phone calls (reservations, appointments, confirmations, general inquiries) on your behalf, and answers the ones that come back. Your assistant shapes each call with direction and grounding. The agent says it's an AI, negotiates within bounds you set, never makes things up, and reports the outcome.
It runs on OpenAI GPT-Live over your own Twilio number by default, with Retell as a supported alternative. Both are exposed as an MCP server, so any MCP-capable assistant (Claude, ChatGPT, Cursor, Copilot) can place calls for you, combining Callwright (the actuator) with your other MCPs (Gmail, calendar and so on, the sensors) for context.
Just ask
You don't fill out forms — you ask your assistant in plain language, and it gathers the context (from your calendar, email, or the chat), shapes the call, reads it back to you, and dials on your OK:
"Find the repair appointment in my calendar and call the contractor to confirm it's still on for Thursday."
"Call Sakura Sushi and book a table for 4 this Friday at 7 — anytime between 6:30 and 8 is fine."
"Ring my dentist and move my cleaning to sometime next week; my member ID is in my profile."
"電話して、東京の美容院に明日の午後カットの予約を取って." — (places the call in Japanese; Retell server)
"Call this hotel in Kyoto and ask their hire-car rate to the airport — just gathering info, don't book."
The assistant pulls only the minimal details each call needs, confirms the plan with you first, then places it fire-and-forget and fetches the outcome when you ask.
Related MCP server: Phony
How it works
You (chat) --> Host LLM --gathers context from other MCPs--> shapes a place_call
|
v
callwright MCP --validate + profile + compose + guard--> GPT-Live + Twilio (or Retell) --> phone
| |
+-- get_call_outcome / list_inbound_messages <------- outcome ---------+Generic agent, not per-scenario. One agent prompt = fixed guardrails (disclose AI, never pay, never fabricate, PII-minimize) + injected per-call direction. Both servers share the same job format (
place_call.schema.json), prompt (generic-prompt.md) and outcome fields.Purpose-first disclosure. Opens with the goal and a clear "I'm an AI assistant." Your name surfaces only when a business needs it.
Data minimization. PII lives in
principal.facts(shared only if asked); each call carries only the minimal relevant subset, and the dry-run read-back lists exactly which data types go out.Dry run first.
place_callreturns a read-back; it dials only after you confirm.Both directions (Twilio). Answers calls to your number and takes messages, recognises callbacks from businesses you called (answers attach to the original call), and stores inbound texts.
Learning, languages and retries (Retell). The Retell server can enrich scenario profiles from each call, add call languages at runtime, and re-dial an unanswered call once.
Which server?
GPT-Live + Twilio (default) | Retell (alternative) | |
Command |
|
|
Outbound calls | ✅ same job format, prompt and outcome fields | ✅ |
Turn-taking | full-duplex: listens while it speaks | silence-based |
Phone menus (press 1…) | ❌ no keypad tones | ✅ |
Inbound calls to your number | ✅ message-taking agent, uses caller ID | — |
Callbacks from businesses you called | ✅ recognised; answers attach to the original call | — |
Inbound texts | ✅ stored, linked to calls; opt-in | — |
Languages | English (German experimental) | English, Japanese, add your own |
Learning from calls, auto retry | — | ✅ |
Concurrent calls | one at a time | many |
Accounts you need | Twilio (upgraded) + OpenAI with GPT-Live access | Retell |
Hosting | always-on process (Fly, Render, Railway; not serverless) | any host with a persistent disk |
Test history and design decisions for the GPT-Live server are in
docs/gpt-live-spike-findings.md.
Quick start (GPT-Live + Twilio)
You need Node.js 22.13+, an upgraded Twilio account with a voice- and SMS-capable number, an OpenAI
API key with GPT-Live access and credit, and a public HTTPS address (ngrok works locally). The full
guide, including Fly.io deployment, every setting and webhooks, is
twilio/README.md.
Install:
npm install -g callwrightCreate a
.envfrom the GPT-Live + Twilio section of.env.examplein the folder you'll run from.Start a tunnel and the server:
ngrok http 8000callwrightIn the Twilio Console, point your number's "A call comes in" at
https://<domain>/twimland "A message comes in" athttps://<domain>/sms(both POST).Check the setup without placing a call:
callwright-verifyConnect your assistant to
https://<domain>/mcp(see Connect a client).
By default it only dials numbers in CALLWRIGHT_ALLOWED_NUMBERS. Set CALLWRIGHT_DIAL_POLICY=confirm
to call any number in the allowed countries after you confirm the dry run.
From a clone instead: npm ci, then npm start and npm run verify.
Tools
GPT-Live + Twilio server
Tool | Purpose |
| What's configured or missing, and what this server can't do |
| Dry-run by default (returns read-back); |
| Outcome + analysis + transcript by |
| Recent calls, inbound and outbound |
| Messages taken on inbound calls, and inbound texts |
| Opt-in ( |
Retell server
Setup & profiles
Tool | Purpose |
| What's configured / missing |
| Save your name, callback, standing facts (+ optional provisioning) |
| Known scenario profiles (+ pending candidates) |
Calling
Tool | Purpose |
| Dry-run by default (returns read-back); |
| Outcome + analysis + transcript by |
| Recent calls |
| Recent automatic no-answer re-dials |
Languages
Tool | Purpose |
| Browse Retell voices (for adding a language) |
| Languages this server can call in |
| Add a new call language at runtime (translate → agent) |
| Quality-gate a new language (review card + optional live test call) |
| Change / remove an added language |
Learning
Tool | Purpose |
| Enrich a profile, or stage a new-scenario candidate |
| Staged scenario candidates (pending new profiles) |
| Create a new scenario profile (propose-and-confirm, guarded) |
| Merge a call type into an existing profile |
| Drop a noise/one-off candidate |
On both servers, place_call is fire-and-forget and gated: the first call returns a read-back (including the PII footprint); you dial only after confirming with confirm:true.
get_call_outcome returns a canonical outcome object on both servers. On Retell, its custom-analysis-first status is authoritative when Retell's built-in call_successful signal disagrees; both raw signals remain available for diagnosis. Successful informational calls use completed, while booked is reserved for an actual reservation, appointment, or commitment.
Connect a client
Replace the URL with your host and the token with yours: one of the CALLWRIGHT_MCP_TOKENS pairs on the GPT-Live + Twilio server (one token per assistant), or MCP_AUTH_TOKEN on the Retell server. The GPT-Live + Twilio server listens on port 8000 locally, the Retell server on 8787. The server accepts the token two ways: an Authorization: Bearer header (Desktop/Code/Cursor) or a ?key= URL query param (web clients whose connector form has no header field).
Claude.ai (web)
The web connector form only takes a URL, so put the token in the URL:
Settings → Connectors → Add custom connector (or Browse connectors → Add custom).
Name:
CallwrightURL: paste your host +
/mcp+ your token as?key=:https://your-host.example.com/mcp?key=<token>Save, then enable it in a chat (the 🔌/tools menu). Ask "what callwright tools do you have?" to confirm it connected.
Because the token is in the URL, treat that connector URL like a password — anyone with it can place calls billed to your account. Rotate the token and update the connector.
Claude Desktop / Cursor
{
"mcpServers": {
"callwright": {
"url": "https://your-host.example.com/mcp",
"headers": { "Authorization": "Bearer <token>" }
}
}
}Claude Code
claude mcp add --transport http callwright https://your-host.example.com/mcp \
--header "Authorization: Bearer <token>"ChatGPT (Developer mode / connectors)
Add a custom MCP connector with the same URL — header or ?key= both work.
Keep "confirm before running tools" on.
place_callis already dry-run-by-default, but tool-confirmation is a good second gate for an actuator that spends money and reaches real people.
Security notes
Tokens are your lock. Anyone with a token can place calls billed to your account. Treat tokens like passwords. The GPT-Live + Twilio server takes one token per assistant (
CALLWRIGHT_MCP_TOKENS), so you can revoke one without the others; the Retell server takes one (MCP_AUTH_TOKEN).Dial policy (Twilio). The default
allowlistdials only your listed numbers;confirmdials others after you confirm. Both cap calls per hour and block premium-rate numbers.Least-privilege keys. Use a Standard Twilio API key, and a scoped Retell key if you don't need full admin.
PII. Standing facts are stored in
config.jsonon your host. Calls send only the minimal subset, shared only if the business asks; the read-back shows the footprint every time.With no tokens set, either server accepts local connections only.
Key files
File | Purpose |
| GPT-Live + Twilio server (the default |
| Retell MCP server ( |
| Validate → profile → compose vars → dispatch (shared core) |
| CLI over dispatch-core |
| Provisioning + config + status + lazy-save helpers (shared by init & MCP) |
| Runtime language management (add/verify/update/remove, voices) |
| Per-language composed phrasing (data, not code) |
| Profile enrichment + new-scenario candidate staging (anti-splintering) |
| No-answer retry policy + bounded re-dial decisions |
| Idempotent Retell call completion → Claude Routine trigger |
| Terminal setup wizard ( |
| Push a prompt + tools + etiquette + webhook to an existing agent |
| The job contract the LLM fills |
| Generic agent prompts (guardrails + |
| Learning profiles (recommended details per scenario) |
| CLIs: enrich a profile / fetch a call outcome |
| Resolves mutable state paths (honors |
| One-shot release: version bump + test + push + npm & MCP-registry publish |
| Container and Fly config for the Retell server; the Twilio server's are in |
| Design specs (add-language, profile-learning) |
| Optional serverless Retell→Resend email notifier (independent of the MCP) |
Per-user runtime files —
config.json,agents.json,.retell-ids.json,job.*.json,grounding.*.json— are git-ignored. They're created at runtime (byinit/configure) or are personal call data; never commit them. Start fromconfig.example.jsonandexamples/.
A note on disclosure & legality
The agent always discloses that it's an AI at the start of every call — this is a hard, non-removable behavior. AI-call disclosure is legally required in some jurisdictions (e.g. California's B.O.T. Act) and is good practice everywhere. The agent also never fabricates information and shares personal data only when a business asks for it. For commercial or at-scale use, confirm requirements with counsel in your jurisdiction.
Optional: push events and email
The GPT-Live + Twilio server can push signed events for finished calls and inbound texts to your own endpoint; see Webhooks.
For the Retell server, see webhook/: a serverless Retell→Resend notifier that emails you each outcome.
It is independent of the MCP (which retrieves outcomes on demand via get_call_outcome) and
is not deployed or wired by default.
Alternative: Retell server
Use the Retell server when you need phone menus (keypad tones), Japanese or another added
language, profile learning and automatic retries, or several calls at once. It's in the same
package: run callwright-retell instead of callwright.
Retell setup (prerequisites)
The Retell server dials through Retell, so you need a Retell account with outbound calling enabled before anything works. In the Retell dashboard:
Create an account and add a payment method (Stripe). Calls and phone numbers are pay-as-you-go; there's no Callwright fee on top.
Complete KYC verification. This is required to unlock outbound calling and phone-number purchases — without it, calls are blocked. (It's a one-time identity/business check; approval is usually quick.)
Buy a phone number. This becomes your caller ID (the
fromnumber). A US local number is cheapest; Callwright auto-selects it duringconfigure run_provisioning.Create an API key (Settings → API Keys). This is your
RETELL_API_KEY— it stays server-side and must never go in a browser or chat.
Optional, recommended:
Verified phone number / branded calling (dashboard → Telephony) — registers your number so carriers are less likely to tag it "Spam Likely", which meaningfully improves pickup rates on outbound calls.
Not required (and currently dormant here):
A2P 10DLC registration — only needed to send SMS, via a multi-step business-profile → brand → campaign approval with a recurring cost. Callwright's SMS notifications are built but shelved, so you can skip this entirely for placing calls.
Costs are per-minute and destination-driven (roughly ~$0.015/min US, higher internationally) plus the monthly number rental.
Install
The Retell server ships in the same npm package:
npm install -g callwrightIt gives you callwright-retell (the Retell MCP server) and callwright-init (its setup wizard).
Or clone this repo and npm install to run from source (node server.js, node init.js).
Either way, it's a self-hosted, single-user HTTP MCP server: you run your own instance with your own Retell credentials. Nothing is shared or multi-tenant.
Run the Retell server locally
Using the global install:
callwright-init # one-time setup wizard (number, agent, your identity)
export RETELL_API_KEY=key_xxx # [Environment]::SetEnvironmentVariable on Windows
callwright-retell # MCP server on :8787 (POST /mcp)From a cloned repo, use node init.js and node server.js instead.
Check setup anytime: callwright-init status (or node init.js status).
Place a call from the CLI (bypassing MCP): node dispatch.js <job.json> --go.
For local use,
MCP_AUTH_TOKENis optional — with it unset the server accepts loopback connections only. Set it once you expose the server beyond localhost (see Deploy the Retell server).
Deploy the Retell server (single-user)
Goal: a remote MCP URL only you can use. Works in both web clients (claude.ai, chatgpt.com) and local clients.
1. Pick a host with a persistent disk
config.json and scenario-profiles.json are written at runtime (by configure and learn_from_call), so avoid ephemeral/serverless filesystems. Good fits: Fly.io (volume), Railway (volume), Render (disk). A small always-on instance is fine — call volume is tiny.
2. Set environment variables (host dashboard)
RETELL_API_KEY = key_xxx # your Retell secret - stays server-side
MCP_AUTH_TOKEN = <long random> # the bearer token only you hold
PORT = 8787 # or whatever the host injects
CALLWRIGHT_DATA_DIR = /data # persistent volume for runtime state
CALLWRIGHT_PUBLIC_URL = https://your-host.example.com # optional: enables the auto-learn webhook (Retell posts call_analyzed back here)
CLAUDE_ROUTINE_URL = https://api.anthropic.com/v1/claude_code/routines/trig_xxx/fire # optional immediate call completion wake-up
CLAUDE_ROUTINE_TOKEN = <routine trigger token> # dedicated token generated by the Claude RoutineSee .env.example. Never put the Retell key in a browser or chat.
When a call originates from a TickTick task, the calling assistant can pass
tracking.ticktick_task_id to place_call. Callwright stores that opaque ID
in Retell's storage-only metadata, preserves it through automatic retries, and
uses the final call_analyzed webhook to wake the configured Claude Routine.
The Routine URL and token are optional; hourly polling remains the fallback.
3. Deploy
The root Dockerfile is for the Retell server:
docker build -t callwright .
docker run -p 8787:8787 --env-file .env callwrightOr point the host at this repo (it auto-detects the Dockerfile). Mount a volume at the app dir so config.json / scenario-profiles.json persist across restarts.
No-Docker alternative: install from npm on the host and run the binary directly (point CALLWRIGHT_DATA_DIR at your persistent volume so runtime state survives restarts):
npm install -g callwright
CALLWRIGHT_DATA_DIR=/data callwright-retell # reads RETELL_API_KEY / MCP_AUTH_TOKEN from env4. First-run setup over MCP (no webpage needed)
Do setup in chat:
Connect the server (below).
Ask the assistant to call
configurewithrun_provisioning: trueand your name + callback number. That verifies the key, selects your Retell number, creates the generic agent, and saves your profile.get_setup_statusshould now reportready: true.
(Or run node init.js once on the host shell if you prefer.)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Phone call MCP server: AI agents place and answer real calls, text, email and WhatsApp via KaiCalls.
JooVoice lets your AI assistant make real phone calls for you through MCP. Ask it to book a table or appointment, change a reservation, cancel a subscription, request a refund, or check stock and opening hours. Get the outcome back in your chat, with the call recording and transcript. You choose when calls need your approval. Personal calls, such as birthday wishes or family check-ins, use a recipient consent link. Learn more at https://joovoice.com.
AI phone receptionist and ticket line MCP server: calls, bookings, orders, deposits, FAQ, stats.
Lets Claude, Cursor or any MCP client build voice agents and place real phone calls.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for BubblyPhone that lets AI assistants make real phone calls, manage AI voice agents, buy phone numbers in 30+ countries, and track billing. Supports 20 tools for full telephony control.201MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server enabling AI assistants to make voice calls, send SMS/MMS, and manage group conversations using Twilio and OpenAI.21 npmMIT
- AlicenseNot gradedqualityDmaintenanceA hosted MCP server that enables AI agents to place real phone calls from a verified caller ID, with async call management and built-in safety controls.72 npm2MIT
- AlicenseNot gradedqualityCmaintenanceGives an AI assistant its own real phone number and email address so it can place and answer calls, book reservations by phone, send and receive texts, and read written summaries, structured details, and transcripts of every conversation. Also manages contacts, persona and voice settings, webhooks, and a unified call/message history through a hosted OAuth-secured MCP endpoint requiring no local code.MIT