Labsco
VapiAI logo

Vapi MCP Server

โ˜… 54

from VapiAI

A server for integrating with Vapi's voice AI APIs using function calls.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedPaid serviceAdvanced setup

Vapi MCP Server

smithery badge

Build AI voice assistants and phone agents with Vapi using the Model Context Protocol.

<a href="https://glama.ai/mcp/servers/@VapiAI/mcp-server"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@VapiAI/mcp-server/badge" alt="Vapi Server MCP server" /> </a>

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

Copy & paste โ€” that's it
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)
  • {{month}} - Current month (UTC)
  • {{day}} - Current day of month (UTC)
  • {{year}} - Current year (UTC)
  • {{customer.number}} - Customer's phone number

See Vapi documentation for advanced date/time formatting.


Remote MCP Server

Connect to Vapi's hosted MCP server from any MCP client:

Streamable HTTP (Recommended)

  • URL: https://mcp.vapi.ai/mcp
  • Header: Authorization: Bearer your_vapi_api_key_here

SSE (Deprecated)

  • URL: https://mcp.vapi.ai/sse
  • Header: Authorization: Bearer your_vapi_api_key_here

Available Tools

Assistants

ToolDescription
vapi_list_assistantsList all assistants
vapi_get_assistantGet assistant by ID
vapi_create_assistantCreate new assistant
vapi_update_assistantUpdate assistant
vapi_delete_assistantDelete assistant

Calls

ToolDescription
vapi_list_callsList call history
vapi_get_callGet call details
vapi_create_callStart outbound call (immediate or scheduled)

Phone Numbers

ToolDescription
vapi_list_phone_numbersList phone numbers
vapi_get_phone_numberGet phone number details
vapi_buy_phone_numberPurchase new number
vapi_update_phone_numberUpdate number settings
vapi_delete_phone_numberRelease number

Tools (Function Calling)

ToolDescription
vapi_list_toolsList custom tools
vapi_get_toolGet tool details
vapi_create_toolCreate tool for API integration
vapi_update_toolUpdate tool
vapi_delete_toolDelete tool

Authentication

ToolDescription
vapi_loginStart OAuth flow
vapi_logoutLog out and clear credentials

Development

Copy & paste โ€” that's it
# Install dependencies
npm install

# Build
npm run build

# Test with MCP inspector
npm run inspector

Local Development Config

Copy & paste โ€” that's it
{
  "mcpServers": {
    "vapi-local": {
      "command": "node",
      "args": ["<path>/dist/index.js"],
      "env": {
        "VAPI_TOKEN": "<your_vapi_token>"
      }
    }
  }
}

Testing

Copy & paste โ€” that's it
# Unit tests (mocked)
npm run test:unit

# E2E tests (requires VAPI_TOKEN)
export VAPI_TOKEN=your_token_here
npm run test:e2e

# All tests
npm test

References