
vapiai/mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
vapiai/mcp-сервер - кандидат на сервер MCP, импортированный из https://github.com/vapiai/mcp-server.
Обзор
vapiai/mcp-сервер - кандидат на сервер MCP, импортированный из https://github.com/vapiai/mcp-server.
Обзор (машинный перевод)
Создайте голосовых помощников и телефонных агентов с помощью Vapi с помощью протокола Model Context.
Настройка
Сервер MCP требует ключа API Vapi. Возьмите один из приборной панели Vapi.
Локальный сервер (stdio)
Настройка любого клиента MCP, который поддерживает локальные серверы stdio для запуска:
Настройка VAPI_TOKEN в серверной среде. Форматы конфигурации MCP-клиентов различаются, но определение сервера выглядит следующим образом:
Удаленный сервер (Streamable HTTP)
Клиенты, поддерживающие удаленные MCP-серверы, могут подключаться напрямую:
- URL:
https://mcp.vapi.ai/mcp - Заголовок: [[Т2]]
Клиентские примеры
####Клауд Код
####Клод Десктоп
Используйте конфигурацию локального сервера выше в файле конфигурации Claude Desktop. Чтобы подключиться к хост-серверу через стио-мост:
###Факультативный агент
Каталог skill содержит многоразовые инструкции для агентов кодирования ИИ, которые поддерживают Agent Skills. Установите его, используя процесс установки навыков вашего хоста.
Клод Код:
Пример использования
Создайте голосового помощника
Спросите своего агента с поддержкой MCP:
Сделай исходящий звонок
Расписание будущего
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Vapi MCP Server
Build AI voice assistants and phone agents with Vapi using the Model Context Protocol.
Setup
The MCP server requires a Vapi API key. Get one from the Vapi dashboard.
Local Server (stdio)
Configure any MCP client that supports local stdio servers to run:
npx -y @vapi-ai/mcp-server
Set VAPI_TOKEN in the server environment. MCP client configuration formats vary, but the server definition generally looks like this:
{
"mcpServers": {
"vapi": {
"command": "npx",
"args": ["-y", "@vapi-ai/mcp-server"],
"env": {
"VAPI_TOKEN": ""
}
}
}
}
Remote Server (Streamable HTTP)
Clients that support remote MCP servers can connect directly:
- URL:
https://mcp.vapi.ai/mcp - Header:
Authorization: Bearer your_vapi_api_key_here
Client-Specific Examples
Claude Code
claude mcp add -e VAPI_TOKEN=your_vapi_token vapi -- npx -y @vapi-ai/mcp-server
Claude Desktop
Use the local server configuration above in the Claude Desktop configuration file. To connect to the hosted server through an stdio bridge instead:
{
"mcpServers": {
"vapi": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.vapi.ai/mcp",
"--header",
"Authorization: Bearer ${VAPI_TOKEN}"
],
"env": {
"VAPI_TOKEN": ""
}
}
}
}
Optional Agent Skill
The skill directory contains reusable instructions for AI coding agents that support Agent Skills. Install it using your host’s skill installation process.
For Claude Code:
mkdir -p ~/.claude/skills/vapi
curl -o ~/.claude/skills/vapi/SKILL.md https://raw.githubusercontent.com/VapiAI/mcp-server/main/skill/SKILL.md
Example Usage
Create a Voice Assistant
Ask your MCP-enabled agent:
I want to build a voice assistant that can schedule appointments
Make an Outbound Call
Call +1234567890 using my appointment reminder assistant with these details:
- Customer name: Sarah Johnson
- Appointment date: March 25th
- Appointment time: 2:30 PM
Schedule a Future Call
Schedule a call with my support assistant for next Tuesday at 3:00 PM to +1555123456
Using Variable Values in Assistant Prompts
The create_call action supports passing dynamic variables through assistantOverrides.variableValues. Use double curly braces in your assistant’s prompts: {{variableName}}.
Example Prompt with Variables
Hello {{customerName}}, this is a reminder about your appointment on {{appointmentDate}} at {{appointmentTime}} with {{doctorName}}.
Default Variables
These are automatically available (no need to pass):
{{now}}- Current date and time (UTC){{date}}- Current date (UTC){{time}}- Current time (UTC)
Установка
npx -y @vapi-ai/mcp-serverКонфигурация
{
"mcpServers": {
"vapi": {
"command": "npx",
"args": ["-y", "@vapi-ai/mcp-server"],
"env": {
"VAPI_TOKEN": "<your_vapi_token>"
}
}
}
}