CallHuman
Lets an AI agent phone a real person, read a message and get back the option they choose by keypress or voice. Human approval by phone before refunds, payments or deploys; booking reconfirmations; urgent alerts and one-time codes.
เซิร์ฟเวอร์ MCP แบบโฮสต์
npx add-mcp 'https://api.callhuman.es/mcp'ติดตั้งลง Claude Code, Codex, Cursor และอื่นๆ
เอกสาร
MCP server (/docs/mcp)
The CallHuman MCP server lets AI agents phone a human before taking an important action (a refund, a deploy, a deletion) and continue with the answer. It's the same engine as the REST API, exposed as tools an agent can call on its own.
[Listen to a recorded call](/demo) before you connect your agent: the message, the options and the answer that comes back.https://api.callhuman.es/mcp
Connect your app [#connect-your-app]
Add the URL above as a remote MCP server. The first time, your browser opens CallHuman: sign in, choose the project whose plan the calls are charged to, and allow it. You come back to your app already connected. There are no keys to copy. New to CallHuman? You create your project right there and come back to finish connecting; you can choose a plan then or later, and your assistant gives you the link if you ask for a call before.
| App | How to add it |
|---|---|
| Claude (claude.ai, Desktop) | Settings → Connectors → Add custom connector → paste the URL |
| Claude Code | claude mcp add --transport http callhuman https://api.callhuman.es/mcp, then /mcp to sign in |
| ChatGPT | Settings → Apps & Connectors → Advanced → Developer mode, then create a connector with the URL |
| Cursor | Add it to mcp.json (below) and click Connect |
| VS Code | Add it to .vscode/mcp.json (below) and click Start |
{
"mcpServers": {
"callhuman": { "url": "https://api.callhuman.es/mcp" }
}
}
{
"servers": {
"callhuman": { "type": "http", "url": "https://api.callhuman.es/mcp" }
}
}
If you have several projects, the sign-in page asks which one to use. Each connection works with one project: connect again to use another.
Without signing in (scripts, CI, n8n) [#without-signing-in-scripts-ci-n8n]
Tools with no person to click Allow can send an API key instead:
{
"mcpServers": {
"callhuman": {
"url": "https://api.callhuman.es/mcp",
"headers": { "Authorization": "Bearer ch_live_xxxxxxxxxxxx" }
}
}
}
Tools [#tools]
| Tool | What it does |
|---|---|
call_human | Calls a person, reads your message and the options, and returns the option they chose (keypress or voice). |
notify_human | Calls a person and reads a one-way message (a code, an alert). No options. |
get_call | Status and answer of a call. Can wait until it ends. |
cancel_call | Stops a queued call or hangs up one in progress. |
list_calls | The project's recent calls, newest first. |
get_project | Plan, calls left this cycle, limits, settings (answer mode, time to answer, voice), rate limits, callable countries and every number calls come from. |
call_human and notify_human take the same fields as POST /v1/calls (to, message, options, language, voice, answer_mode, answer_seconds, hide_caller_id, retries, retry_delay_seconds, metadata; notify_human has no options, answer_mode or answer_seconds), plus:
| Field | Meaning |
|---|---|
wait_seconds | How long to wait for the answer inside the tool call, up to 180 s. Default 150 for call_human, 0 for notify_human. |
idempotency_key | Same value, same call: the agent can retry without calling twice (24 h). |
Every result is the same object as GET /v1/calls/{id} (status, option_id, option_label, answer_method, answer_transcript, metadata) plus finished. Errors use the same codes and messages as the API (for example quota_exceeded or destination_not_allowed).
When the call takes longer [#when-the-call-takes-longer]
Most calls end within a minute. While it waits, call_human sends progress updates, so the app doesn't give up. If the person hasn't answered after wait_seconds, the tool returns the call id with finished: false, and the agent continues with get_call (with wait_seconds) instead of calling again.
Example [#example]
You: Refund order 8812 if Laura approves it.
Agent: I'll ask Laura first. (calls
call_humanwithanswer_mode: "keypad_voice": "Pedro García asks for a refund of 640 euros for order 8812. Press 1 or say approve, press 2 or say reject." Laura's phone rings and she says "approve it".)Agent: Laura approved it (by voice). Refund sent.
{
"to": "+34600111222",
"language": "en",
"message": "Hi Laura, this is the support assistant. Pedro García asks for a refund of 640 euros for order 8812.",
"options": [
{ "id": "approve", "label": "Approve", "reply": "Done, I'll refund it now." },
{ "id": "reject", "label": "Reject", "reply": "Understood, I won't refund it." }
],
"metadata": { "order": "8812" }
}
Plans, limits and safety [#plans-limits-and-safety]
- Same rules as the API. Calls count against the project's plan, with the same limits, allowed countries, content screening and rate limits.
- One project per connection. The app can place and read that project's calls, and nothing else: no API keys, billing, team or other projects.
- You stay in control. See and disconnect apps in the dashboard under Developers → Connected apps. Removing someone from the team also disconnects the apps they authorized.
- Responsibility. When you allow an app, you accept responsibility for the calls it places, as with an API key.
For client developers [#for-client-developers]
The server speaks Streamable HTTP (MCP revisions 2025-06-18, 2025-11-25 and 2026-07-28) and follows the MCP authorization spec:
- Protected resource metadata:
https://api.callhuman.es/.well-known/oauth-protected-resource/mcp - Authorization server metadata:
https://www.callhuman.es/.well-known/oauth-authorization-server - OAuth 2.1 authorization code with PKCE (S256), Dynamic Client Registration (public clients) and refresh tokens (rotated on every use). Access tokens last 1 hour.
- A
401response carriesWWW-Authenticatewith theresource_metadataURL.