MCP Vapi Caller
Enables Claude to make outbound phone calls through Vapi API, supporting any call type and language with features like call initiation, result polling, and structured data extraction.
README
MCP Vapi Caller
MCP server that lets Claude make AI-powered outbound phone calls via Vapi. Works with any type of call — customer service, sales, surveys, scheduling, etc. — in any language.
How It Works
Claude → make_call(phone, goal, script) → Vapi API → AI voice agent calls the number
Claude → get_call_result(call_id) → transcript, summary, structured data, recording
The caller (Claude) provides domain-specific building blocks — goal, script, caller identity. The server wraps them in a voice-optimized system prompt (language enforcement, natural-speech style, goodbye handling) and sends the call to Vapi.
Tools
make_call
Initiate an outbound call. Required parameters:
phone_number— E.164 format (e.g.+33142000000)call_goal— What the call should achieve (one sentence, used for automatic success evaluation)call_script— Behavioral instructions for the voice agent
Optional: language, caller_name, caller_context, first_message, structured_data_schema, structured_data_prompt, end_call_phrases, voice_id, customer_name, system_prompt_override.
Returns a call_id.
get_call_result
Poll for the call outcome. Pass wait_seconds (e.g. 180) to poll every 5s until the call ends. Returns status, transcript, AI summary, success evaluation, structured extracted data, and recording URL.
Supported Languages
Built-in voice tuning (end-call phrases, goodbye rules, natural-speech style) for: French (fr, default), English (en), Spanish (es), German (de), Italian (it), Portuguese (pt). Any other BCP-47 code still works — it falls back to English conversation rules while instructing the agent to speak the requested language.
Setup
1. Prerequisites
- uv — Python package manager (
curl -LsSf https://astral.sh/uv/install.sh | sh) - A Vapi account
- An ElevenLabs voice ID (Vapi's default TTS provider here)
2. Get Vapi credentials
From the Vapi dashboard:
- API key → Settings → API Keys
- Phone number ID → Phone Numbers. Buy a Vapi number or import a Twilio one, then copy its ID (a UUID, not the phone number itself).
Pick a voice ID from the ElevenLabs voice library.
3. Install
git clone git@github.com:sebastienfi/mcp-vapi-generic-caller.git
cd mcp-vapi-generic-caller
uv sync
4. Configure secrets
Create ~/.config/mcp/secrets.env (and chmod 600 it):
VAPI_API_KEY=your-vapi-api-key
VAPI_PHONE_NUMBER_ID=your-phone-number-id
VAPI_VOICE_ID=your-elevenlabs-voice-id
These three are required. See .env.example for all optional variables (default language, caller name, LLM provider/model, voice tuning).
5. Run (optional smoke test)
uv run python server.py # stdio transport; Ctrl-C to stop
# or, using PEP 723 inline metadata:
uv run --script server.py
The server communicates over stdio and is normally launched by Claude, not run manually — this just confirms it starts without errors.
6. Register with Claude
Claude Code
Add to ~/.claude.json under mcpServers:
{
"mcpServers": {
"vapi-caller": {
"command": "/bin/bash",
"args": ["-c", "set -a; source ~/.config/mcp/secrets.env; set +a; exec uv run --directory /path/to/mcp-vapi-generic-caller python server.py"]
}
}
}
Replace /path/to/mcp-vapi-generic-caller with the absolute clone path. Restart Claude Code and verify with /mcp — vapi-caller should list two tools.
Claude Desktop
Add the same block to claude_desktop_config.json
(macOS: ~/Library/Application Support/Claude/claude_desktop_config.json).
Use absolute paths for both bash and uv (e.g. /opt/homebrew/bin/uv) — Claude Desktop is an Electron app and does not inherit your shell PATH. The source secrets.env wrapper is what makes env vars available at runtime.
Usage Example
You: Call +33142000000 and book a haircut for next Tuesday afternoon.
My name is Jean Dupont.
Claude: [make_call with goal, script, language="fr"]
Call initiated, waiting for result...
[get_call_result(call_id=..., wait_seconds=180)]
The salon confirmed a haircut appointment for Tuesday at 15:00
with stylist Marie. Recording: [link]
Docker (HTTP / cloud deployment)
For non-local deployments, run the server over Streamable HTTP instead of stdio:
cp .env.example .env # fill in your secrets
docker compose up --build
This exposes the MCP server on http://localhost:8000 (MCP_TRANSPORT=streamable-http). Point an HTTP-capable MCP client at it. For local Claude Code/Desktop use, the stdio setup above is simpler.
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
VAPI_API_KEY |
✅ | — | Vapi API key |
VAPI_PHONE_NUMBER_ID |
✅ | — | Vapi phone number ID (UUID) |
VAPI_VOICE_ID |
✅ | — | ElevenLabs voice ID |
DEFAULT_LANGUAGE |
fr |
Default BCP-47 call language | |
DEFAULT_CALLER_NAME |
— | Who the agent calls on behalf of | |
VAPI_LLM_PROVIDER |
anthropic |
Vapi LLM provider | |
VAPI_LLM_MODEL |
claude-sonnet-4-6 |
LLM model (validated against Vapi's Anthropic list) | |
VAPI_VOICE_PROVIDER |
11labs |
TTS provider | |
VAPI_VOICE_MODEL |
eleven_flash_v2_5 |
ElevenLabs TTS model | |
VAPI_VOICE_STABILITY |
0.5 |
Voice stability (0.0–1.0) | |
VAPI_VOICE_SIMILARITY_BOOST |
0.75 |
Voice similarity boost (0.0–1.0) | |
VAPI_VOICE_SPEED |
1.0 |
Speech speed | |
MCP_TRANSPORT |
stdio |
stdio or streamable-http |
Project Structure
server.py # MCP server (single file, PEP 723 inline metadata)
pyproject.toml # Project metadata & dependencies
uv.lock # Locked dependency versions
.env.example # Environment variable template
Dockerfile # Multi-stage Docker build
docker-compose.yml # HTTP/cloud deployment
CLAUDE.md # Claude Code guidance
No test suite or linter is configured.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。