Vapi MCP for Cursor logo

Vapi MCP for Cursor

by matthewdcage

This project implements a Model Context Protocol (MCP) server for integrating Vapi's voice AI capabilities with Cursor. It allows Cursor to utilize Vapi's voice AI tools.

View on GitHub

Last updated: N/A

What is Vapi MCP for Cursor?

The Vapi MCP server is a Model Context Protocol server designed to connect Vapi's voice AI services with the Cursor code editor. It acts as a bridge, enabling Cursor to leverage Vapi's voice capabilities.

How to use Vapi MCP for Cursor?

To use the server, you need to configure it within Cursor's MCP settings. This involves setting the correct working directory (cwd), providing the necessary Vapi API keys as environment variables, and ensuring the project is built correctly with npm install and npm run build. The server command path must be absolute and correctly formed in the Cursor MCP config. Also, the server uses ES modules, so the package.json must include "type": "module".

Key features of Vapi MCP for Cursor

  • Integration with Cursor

  • Model Context Protocol (MCP) implementation

  • Vapi voice AI capabilities

  • Outbound call functionality (vapi_call)

  • Voice assistant management (vapi_assistant)

  • Conversation detail retrieval (vapi_conversation)

Use cases of Vapi MCP for Cursor

  • Integrating voice AI into code editing workflows

  • Making outbound calls using voice commands within Cursor

  • Managing voice assistants directly from Cursor

  • Retrieving conversation details for analysis

  • Enhancing code editing with voice-driven interactions

FAQ from Vapi MCP for Cursor

What is the 'Client Closed' error in Cursor?

This error typically indicates a configuration issue. Check the working directory (cwd), environment variables, module type in package.json, and file permissions for dist/index.js.

How do I fix 'Module Not Found' errors?

Ensure you are running the server from the correct directory, rebuild the project with npm run build, and verify that all dependencies are installed with npm install.

Why is the cwd parameter important?

The cwd parameter ensures the server runs in the correct directory and can access the .env file containing API keys.

What environment variables are required?

The required environment variables are VAPI_ORG_ID, VAPI_PRIVATE_KEY, VAPI_KNOWLEDGE_ID, VAPI_JWT_PRIVATE, and NODE_ENV.

Why do I need "type": "module" in package.json?

This setting indicates that the server uses ES modules, which is necessary for proper functionality.