
vapiai/mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
vapiai/mcp-server は [https://github.com/vapiai/mcp-server. からインポートされた MCP サーバーの候補です
概要
vapiai/mcp-server は [https://github.com/vapiai/mcp-server. からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
モデルコンテキストプロトコルを使用してVapiでAIボイスアシスタントと電話エージェントを構築します。
セットアップ
MCP サーバーでは、Vapi API キーが必要です。 Vapiダッシュボードから1つ入手できます。
##ローカルサーバー(stdio)
ローカル stdio サーバーをサポートする MCP クライアントを構成して実行します。
サーバ環境でVAPI_TOKENを設定。 MCP クライアントの構成形式は異なりますが、サーバーの定義は一般的にこのように見えます。
リモートサーバー (HTTP の処理可能)
リモートMCPサーバーをサポートするクライアントは、直接接続できます。
- URL: [
https://mcp.vapi.ai/mcp - ヘッダー:
Authorization: Bearer your_vapi_api_key_here
クライアント固有の例
クローデコード
####Claudeデスクトップ
Claudeデスクトップ設定ファイルで上記のローカルサーバー構成を使用します。 ホストされているサーバーに接続するには、代わりに stdio ブリッジ:
任意エージェントスキル
[skill ディレクトリには、エージェントスキルをサポートするAIコーディングエージェントの再利用可能な指示が含まれています。 ホストのスキルインストールプロセスを使用してインストールします。
クロード コードのため:
お問い合わせ
使用例
音声アシスタントの作成
MCP-enabled エージェントに問い合わせる:
アウトバウンドコールを作る
今後のコールのスケジュール
お問い合わせ
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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>"
}
}
}
}