MCP server user authentication
How do I add a user token to MCP server tool call when voice agent makes a call to my own mcp server?
⤵️ Mention @Vapi Support Bot for follow-ups 🐥
Authorization header at the tool call level in your MCP tool configuration. This allows you to pass a unique token per request:Authorization{
"server": {
"url": "https://your-mcp-server.com/endpoint",
"headers": {
"Authorization": "Bearer your-user-token"
}
}
}{
"server": {
"url": "https://your-mcp-server.com/endpoint",
"headers": {
"Authorization": "Bearer <user-session-token>"
}
}
}