> ## Documentation Index
> Fetch the complete documentation index at: https://docs.voice.wixzel.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Let a voice agent use other apps' MCP servers during a call

> Connect HubSpot, Cal.com, GoHighLevel, Stripe and 30 other apps, or any remote MCP server, choose which tools are allowed, and attach them to an agent. During a call the agent looks things up and makes changes in those apps.

An agent can call tools on another app's MCP server while it is on the phone:
look up an order in your backend, check a calendar, add a note to a CRM contact.
There is no integration to build per app. Any app with a **remote MCP server**
(Streamable HTTP or SSE) can be connected.

Three steps:

1. Connect the server with `POST /v1/mcp-servers`. Its tools are read straight away.
2. Choose which tools agents may use with `enabled_tools`.
3. Attach the server to an agent with `mcp_server_ids`.

The console does the same under **Integrations**, at
[voice.wixzel.com/integrations](https://voice.wixzel.com/integrations), where
33 popular apps are already set up. See [Connect a popular app](#connect-a-popular-app).

## Connect a popular app

In the console, open **Integrations**, pick an app, and follow its page. The page
lists the tools the app offers and switches on the ones a phone agent needs most.
Connecting an app creates an ordinary MCP server, so everything on this page
applies to it, and you can connect the same apps from the API with the URLs below.

Apps connect in one of four ways:

* **Sign in.** Press the button and sign in to the app. Wixzel Voice registers
  itself with the app, so there is nothing to set up first.
* **API key.** Paste a key or token from the app. It is sent as a header.
* **Your own app.** The app does not let other apps register themselves. Create
  an OAuth app with the vendor once, give it the redirect URL below, and paste
  its client id and secret.
* **No sign-in.** Nothing to enter, or only the server's URL.

| App | Category | Connects with | MCP server URL |
| - | - | - | - |
| HubSpot | CRM | Your own app | `https://mcp.hubspot.com` |
| Salesforce | CRM | Your own app | `https://api.salesforce.com/platform/mcp/v1/platform/sobject-all` |
| GoHighLevel | CRM | API key | `https://services.leadconnectorhq.com/mcp/` |
| Pipedrive | CRM | Sign in | `https://mcp.pipedrive.ai/mcp` |
| Close | CRM | Sign in | `https://mcp.close.com/mcp` |
| Attio | CRM | Sign in | `https://mcp.attio.com/mcp` |
| monday.com | CRM | Sign in | `https://mcp.monday.com/mcp` |
| Apollo | CRM | Sign in | `https://mcp.apollo.io/mcp` |
| Zoho CRM | CRM | No sign-in | The URL Zoho MCP gives you (it contains its key) |
| Cal.com | Booking | Sign in | `https://mcp.cal.com/mcp` |
| Calendly | Booking | Sign in | `https://mcp.calendly.com` |
| Google Calendar (preview) | Booking | Your own app | `https://calendarmcp.googleapis.com/mcp/v1` |
| Intercom | Support | Sign in | `https://mcp.intercom.com/mcp` (EU: `https://mcp.eu.intercom.com/mcp`) |
| Freshdesk | Support | API key | `https://<subdomain>.freshdesk.com/mcp` |
| Help Scout | Support | Sign in | `https://mcp.helpscout.net/mcp` |
| Gorgias | Support | Sign in | `https://mcp.gorgias.com/mcp` |
| Stripe | Payments | Sign in | `https://mcp.stripe.com` |
| PayPal | Payments | Sign in | `https://mcp.paypal.com/http` (sandbox: `https://mcp.sandbox.paypal.com/http`) |
| Razorpay | Payments | API key | `https://mcp.razorpay.com/mcp` |
| Dodo Payments | Payments | Sign in | `https://mcp.dodopayments.com/mcp` |
| Klaviyo | Marketing | Sign in | `https://mcp.klaviyo.com/mcp` |
| Slack | Team | Your own app | `https://mcp.slack.com/mcp` |
| Notion | Team | Sign in | `https://mcp.notion.com/mcp` |
| Linear | Team | Sign in | `https://mcp.linear.app/mcp` |
| ClickUp | Team | Sign in | `https://mcp.clickup.com/mcp` |
| Airtable | Team | Sign in | `https://mcp.airtable.com/mcp` |
| Asana | Team | Your own app | `https://mcp.asana.com/v2/mcp` |
| Todoist | Team | Sign in | `https://ai.todoist.net/mcp` |
| Zapier | Automation | Sign in | `https://mcp.zapier.com/api/v1/connect` |
| Make | Automation | Sign in | `https://mcp.make.com` |
| n8n | Automation | API key | `https://<your-n8n>/mcp-server/http` |
| Home Assistant | Smart home | API key | `https://<your-home-assistant>/api/mcp` |
| Exa | Search | No sign-in | `https://mcp.exa.ai/mcp` |

For an app that is not listed, connect its remote MCP server with **Add custom
MCP server**, or with the API as shown below.

### Apps that use an API key

From the API, send these as `auth.headers`:

| App | Headers |
| - | - |
| GoHighLevel | `Authorization: Bearer <Private Integration Token>` and `locationId: <sub-account id>` |
| Freshdesk | `Authorization: <API key>` |
| Razorpay | `Authorization: Basic <base64 of key_id:key_secret>` |
| n8n | `Authorization: Bearer <MCP access token>` from Settings, Instance-level MCP |
| Home Assistant | `Authorization: Bearer <long-lived access token>` |

```bash theme={null}
curl https://api.voice.wixzel.com/v1/mcp-servers \
  -H "Authorization: Bearer $WIXZEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "GoHighLevel",
    "url": "https://services.leadconnectorhq.com/mcp/",
    "auth": {
      "type": "headers",
      "headers": [
        { "name": "Authorization", "value": "Bearer pit-..." },
        { "name": "locationId", "value": "ve9EPM428h8vShlRW1KT" }
      ]
    }
  }'
```

### Apps that need your own OAuth app

HubSpot, Salesforce, Slack, Asana and Google Calendar do not let other apps
register themselves. Create an OAuth app with the vendor once:

1. Create the app in the vendor's developer settings:
   * **HubSpot:** Development, then MCP Auth Apps.
   * **Salesforce:** an External Client App with the scopes `mcp_api` and `refresh_token`.
   * **Slack:** an app in your workspace at api.slack.com/apps. Slack only lets
     internal or directory apps use MCP, and a workspace admin may need to approve it.
   * **Asana:** an MCP app in the Asana developer console.
   * **Google Calendar:** a Web application OAuth client in a Google Cloud project
     with the Google Calendar API and the Calendar MCP API enabled. The Calendar
     MCP server is in Google's Workspace Developer Preview Program.
2. Add this redirect URL to it: `https://api.voice.wixzel.com/mcp-oauth/callback`
3. Paste its client id and client secret on the app's page in the console and
   press **Sign in**. From the API, send them as `auth.oauth.client_id` and
   `auth.oauth.client_secret`, then start the sign-in as below.

The console shows the redirect URL with a copy button. A self-hosted install
uses its own API address in place of `api.voice.wixzel.com`.

### Things to know about some apps

* **GoHighLevel** has no tool to book an appointment yet. Use Cal.com, Calendly
  or the built-in booking for that.
* **Calendly** has no reschedule tool; the agent cancels and books again. Booking
  a slot needs a paid Calendly plan.
* **Close** is signed in with read and safe-write access. Updating existing
  records needs Close's destructive scope, which is not asked for.
* **Help Scout** is read-only. It cannot create tickets or notes.
* **Stripe:** live or test mode is chosen on Stripe's sign-in screen. Refunds wait
  for someone to approve them in Stripe.
* **Razorpay** cannot make refunds over its hosted server.
* **Dodo Payments** asks for your API key and test or live mode when you sign in.
  Its `execute` tool can do anything the key can, including refunds, so it starts
  switched off.
* **Zapier** charges 2 Zapier tasks for each tool call. Choose the actions in
  Zapier, then refresh the tools.
* **Make** scenarios should answer within 25 seconds to be useful on a call.
* **Freshdesk** limits MCP actions by plan.
* **Home Assistant** must be reachable at a public `https` address. Home Assistant
  Cloud gives every instance one; `homeassistant.local` cannot be reached. Add the
  Model Context Protocol Server integration in Home Assistant first. The agent
  only sees the devices exposed to voice assistants. See
  [Smart home devices](#smart-home-devices).
* **Exa** uses Exa's free, rate-limited tier. No account is needed.

## Connect any MCP server

```bash cURL theme={null}
curl https://api.voice.wixzel.com/v1/mcp-servers \
  -H "Authorization: Bearer $WIXZEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Orders",
    "url": "https://mcp.example.com/mcp",
    "auth": {
      "type": "headers",
      "headers": [{ "name": "Authorization", "value": "Bearer sk_live_..." }]
    }
  }'
```

```ts TypeScript theme={null}
const server = await wixzel.mcpServers.create({
  name: 'Orders',
  url: 'https://mcp.example.com/mcp',
  auth: { type: 'headers', headers: [{ name: 'Authorization', value: 'Bearer sk_live_...' }] },
});
console.log(server.status, server.tools.map((t) => t.name));
```

`name` is what the agent is told the app is called, so use the name a caller
would say. The answer lists every tool the server offers and a `status`:

| status | meaning |
| - | - |
| `ready` | Tools were read. Agents can use it. |
| `needs_auth` | An OAuth server that has not been signed in to, or whose sign-in expired. |
| `error` | It could not be reached. `last_error` says why. |
| `pending` | Not tried yet. |

Agents only use servers that are `ready`. `POST /v1/mcp-servers/{id}/refresh`
reads the tools again and updates the status.

### Authentication

* `none` for a public server.
* `headers` for an API key or any fixed header. Values are encrypted at rest and
  never returned; responses list only the header names. On update, send a header
  without `value` to keep the stored one.
* `oauth` for a server that signs in. Most hosted MCP servers do.

## Servers that sign in with OAuth

Create the server with `"auth": { "type": "oauth" }`, then start the sign-in:

```bash theme={null}
curl -X POST https://api.voice.wixzel.com/v1/mcp-servers/$ID/oauth/start \
  -H "Authorization: Bearer $WIXZEL_API_KEY"
```

```json theme={null}
{
  "object": "mcp_server_oauth",
  "authorization_url": "https://auth.example.com/authorize?client_id=...&state=...",
  "redirect_uri": "https://api.voice.wixzel.com/mcp-oauth/callback",
  "expires_at": "2026-10-02T10:10:00.000Z"
}
```

Open `authorization_url` in a browser and sign in. When the provider sends the
browser back, the server is connected and its tools are read. The link works
once and expires after ten minutes.

Wixzel Voice registers itself with the server's authorization server
automatically when the server allows it. If it does not (GitHub's, for one),
register an OAuth app with the provider using the `redirect_uri` above, and
send its id and secret as `auth.oauth.client_id` and `auth.oauth.client_secret`.

Tokens are refreshed automatically during calls. If a refresh fails, the server
moves to `needs_auth` and agents stop using it until it is connected again.

## Choose the tools

Only tools in `enabled_tools` are ever offered to an agent. Until you set it,
the first discovery enables only the tools the server marks read-only
(`readOnlyHint`). Anything that can change data has to be switched on on
purpose.

```bash theme={null}
curl -X PATCH https://api.voice.wixzel.com/v1/mcp-servers/$ID \
  -H "Authorization: Bearer $WIXZEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "enabled_tools": ["lookup_order", "create_note"] }'
```

The list is replaced as a whole. A tool that disappears from the server is
removed from it at the next refresh.

> [!TIP]
>
> For an action of your own, rather than another app's, create a [tool](https://docs.voice.wixzel.com/tools.md):
> a webhook to your server, or something your app or website does.

## Attach it to an agent

```bash theme={null}
curl -X PATCH https://api.voice.wixzel.com/v1/agents/$AGENT_ID \
  -H "Authorization: Bearer $WIXZEL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "mcp_server_ids": ["'$ID'"] }'
```

An agent can use up to five servers and 40 tools in total. Send `[]` to detach
all of them. Deleting a server detaches it from every agent.

## What happens on a call

* The tools are declared to the model when the call starts, from the stored
  list, so connecting a server never delays the greeting. The connections open
  in the background.
* Each tool is named `<app>__<tool>`, for example `orders__lookup_order`, and its
  description starts with the app's name.
* The agent says a few words before it uses a tool, so the caller is not left in
  silence. On the classic and Sarvam engines, if the model goes straight to the
  tool, the agent says "One moment, let me check that." for it.
* Before using a tool the server marks as changing data, the agent asks the
  caller to confirm.
* A tool call times out after 10 seconds. Failures become a sentence the agent
  can say ("I couldn't reach Orders right now"); they never end the call.
* Results are cut to 4,000 characters before the model sees them.
* At most 20 tool calls per call, and three rounds of tool calls per caller turn
  before the agent has to answer in words.

Every tool call is recorded on the call. `GET /v1/calls/{id}` returns them in
`tool_calls`, with the arguments, whether it worked, and how long it took.

All five engines support tools: `classic`, `sarvam`, `gemini-live`,
`deepgram-agent` and `openai-live`.

## Cost

Tool calls are free. The extra language-model tokens a tool result adds to the
conversation are billed as usual, on the agent's LLM line in
`/v1/usage/events`.

## Security

* **Allowlist.** Only enabled tools are declared, and a call to any other name is
  refused even if the model guesses it.
* **Untrusted results.** The agent is told that tool results are data, not
  instructions.
* **Network.** Server URLs must be public `https` (or `http`) on port 443 or 80.
  Private, loopback and link-local addresses are refused when the server is saved
  and again on every request, including each redirect, and the connection goes
  to the address that was checked. A redirect to another host does not carry
  your headers.
* **Secrets.** Header values, OAuth tokens and client secrets are encrypted at
  rest and never returned by the API.
* **Scopes.** Managing servers needs `mcp_servers:read` and `mcp_servers:write`.

### Smart home devices

Caller id can be faked, and a caller can try to talk an agent into things. When
an agent can control devices through Home Assistant:

* Do not expose locks, alarms or garage doors to voice assistants in Home Assistant.
* Only the read tool (`GetLiveContext`) is switched on when it is connected.
  Switch on the tools that change devices only for an agent whose prompt checks
  who it is talking to.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.