Vapi MCP Server
Configuration
View docs{
"mcpServers": {
"vapiai-mcp-server": {
"url": "https://mcp.vapi.ai/mcp",
"headers": {
"VAPI_TOKEN": "your_token_here"
}
}
}
}You can run and connect to the Vapi MCP Server to build and manage AI voice assistants and phone agents. It enables you to use the Model Context Protocol with either a hosted MCP endpoint or a local runtime, giving you flexible options to scale and customize your voice automation workflows.
Connect to an MCP client and choose your preferred server method. You can use the hosted Vapi MCP server for streaming HTTP access or run a local MCP server process for development. Once connected, you can create, modify, and manage assistants, schedule outbound calls, handle phone numbers, and execute integrated tools to build interactive voice experiences. For first-time setup, you can add the Vapi MCP server to your client, then start creating assistants and prompts that reference dynamic variables for personalized interactions.
Prerequisites: you should have Node.js and npm installed on your machine. You will also need a modern terminal or command prompt. Follow these steps to prepare and run the MCP server locally or connect to the hosted server.
# Install dependencies for local development (if you are building or testing locally)
npm install
# Build and run the local MCP server (example from development flow)
npm run build
npm run inspector
# Start unit and e2e tests (optional, with token for E2E)
npm run test:unit
export VAPI_TOKEN=your_token_here
npm run test:e2eYou can connect in two primary ways: use the hosted MCP server with a streamable HTTP endpoint, or run a local MCP server process via your MCP client. The hosted endpoint requires an API key for authorization, while the local process uses a local node runtime.
{
"mcpServers": {
"vapi": {
"type": "http",
"url": "https://mcp.vapi.ai/mcp",
"args": []
}
}
}You can inject dynamic values into prompts using variables. Pass values to actions like create_call through assistantOverrides.variableValues and reference them in prompts with double curly braces, for example: {{variableName}}.
Hello {{customerName}}, this is a reminder about your appointment on {{appointmentDate}} at {{appointmentTime}} with {{doctorName}}.Create a voice assistant that can schedule appointments, make outbound reminders, or handle customer support calls by configuring assistants and calls through the MCP client. You can schedule future calls, trigger outbound messages, and manage phone numbers and tools through the available endpoints.
List all assistants available in the MCP system.
Retrieve details for a specific assistant by ID.
Create a new assistant with specified configuration.
Update an existing assistant.
Delete an existing assistant.
List outbound call history.
Get details for a specific call.
Start an outbound call, either immediately or scheduled.
List configured phone numbers.
Get details for a specific phone number.
Purchase a new phone number.
Update settings for a phone number.
Release a phone number.
List custom tools available for integration.
Get details for a custom tool.
Create a tool for API integration.
Update an existing tool.
Delete a tool.
Start OAuth flow to authenticate the MCP client.
Log out and clear credentials.