MCP tools
The MCP tool connects a voice agent to an external Model Context Protocol (MCP) server. When a call starts, Vapi asks the server which tools it has and gives each one to the model as a normal tool. When the model calls one of them, Vapi forwards the request to the server and returns the result to the model.
When to use an MCP tool
Use an MCP tool when:
- A server already provides the actions you need. This can be a provider such as Zapier, Make, or Composio, or an MCP server you run yourself.
- You want many actions from one setup. One MCP tool gives the voice agent the server’s whole set of tools, with no per-tool setup in Vapi.
- The actions change often. When the server adds or changes a tool, new calls pick up the change automatically.
Use a Function tool or an API Request tool instead when:
- You need one specific action with a fixed name, description, and parameters that you control in Vapi.
- Authentication needs a different value on each call. MCP tools can’t use variables in anything the server needs to list its tools. For more information, see Use variables in headers.
How MCP tools work
- The call or chat starts. Vapi connects to the MCP server and requests its tool list once.
- Vapi adds the server’s tools to the model. Each tool gets a name prefix. The MCP tool itself is never shown to the model; it only tells Vapi which server to use. For more information, see Tool names the model sees.
- The model calls a tool. Vapi opens a new MCP session, sends the tool call, and closes the session. Every tool call uses its own session.
- The server’s result goes back to the model, which uses it to reply to the caller.
Vapi requests the tool list only at the start of each call or chat. It doesn’t refresh the list during a conversation, so changes on the server show up on the next call.
Pinned assistant versions and squad members also get the server’s current tool list when the call starts, not the list from when the version was saved.
Creating or updating an MCP tool doesn’t contact the server. The first request happens when a call or chat uses the tool.
Prerequisites
- An MCP server URL. Use a server that supports Streamable HTTP. The legacy HTTP+SSE transport is deprecated. For Zapier, Composio, and Make, see MCP providers.
- Any authentication the server needs. See Authentication.
Create an MCP tool
Dashboard
cURL
Name the tool
Under Tool Settings, enter a Tool Name and Description so you and your team can identify this MCP tool.
Set the timeout (optional)
Set Timeout to how long Vapi waits for each request to the server. The default is 20 seconds.
Add authentication (optional)
If the server needs authentication, select a saved credential under Authorization, or add the auth header under HTTP Headers. See Authentication.
Add other headers (optional)
Under HTTP Headers, add any other headers your server needs. Header values can use variables, which Vapi fills in for tool calls only. See Use variables in headers.
Encrypt sensitive arguments (optional)
Under Encryption Settings, add the argument paths to encrypt. This needs a custom credential with encryption enabled. See Encrypt sensitive arguments.
Add spoken messages (optional)
Under Messages, click Add Message to set what the caller hears while a tool runs. These messages apply to every tool from the server. See Spoken messages during tool calls.
Next steps
- Configure MCP tools: set authentication, headers, variables, encryption, and transport.
- MCP tool messages and results: control what the caller hears and what the model receives.
- Troubleshoot MCP tools: fix common problems and follow best practices.
- MCP providers: connect Zapier, Composio, or Make.