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

# Connect your own MCP server to a voice agent

> Give a SmartAlex voice agent tools from an MCP server you run, so it can look up orders, bookings or customer records while it is on a call.

A SmartAlex voice agent can use your own system during its calls through an MCP server you run: look up an order, check a booking or read a customer record. You add the server to the agent as a custom connector, then pick which of its tools the agent may use. This is the opposite direction from [connecting SmartAlex to your AI app](https://docs.getsmartalex.com/mcp/getting-started.md).

> [!NOTE]
>
> Custom connectors are in beta.

## What you need

| You need | Details |
| - | - |
| A remote MCP server | Reachable on the public internet at an `https://` address. Internal and private addresses are refused. |
| How it signs in | An API key, a sign-in (OAuth), or nothing. |
| Your SmartAlex role | Permission to manage the agent's connectors. If **Add custom** is missing or refused, ask a workspace owner. |
| Time | About five minutes. |

## Add your server

**1. Open the agent's connectors**

In SmartAlex, open your agent, open its settings, then **Connectors**.

**2. Click Add custom**

The **Custom connector** panel opens.

**3. Name it and paste the address**

Give it a name, for example `Customer support`, and paste the MCP server URL, for example `https://example.com/mcp`.

**4. Choose Authentication**

* **API key**: paste the key. It is sent as `Authorization: Bearer <key>`. If your server wants it in another header, type that header name, such as `X-API-Key`.
* **Sign in**: your server's own sign-in opens in a separate window. If your server needs them, fill in **Client ID**, **Client secret** and **Scopes** under **Optional sign-in settings**.
* **None**: for a server that needs no key or sign-in.

**5. Add it**

Click **Add connector**, or **Continue to sign in** for a sign-in. SmartAlex contacts your server straight away and reads its list of tools.

**6. Pick the tools**

When it works, SmartAlex says the connector was added and how many tools it has. Open it, switch on the tools this agent should use, and save. Changes apply from the agent's next call.

> [!WARNING]
>
> Only add servers you trust. The agent sends them details from its calls.

## Choosing tools

* **Tools marked "Changes data"** write to your account in that system. Leave them off unless you want the agent making changes there.
* **Recommended sets**, when shown, switch on a sensible group of tools in one go.
* **An agent can have up to 20 tools switched on**, counting connector tools, built-in tools and APIs together. At the limit, turn one off to make room.
* **Tool instructions have a size limit too**, about 8,000 tokens per agent. Long tool descriptions use it up faster than short ones. Past it, SmartAlex names the heaviest tools so you can switch one off.
* **Each agent is separate.** Switching a tool on for one agent does not give it to the others.

## Add it from your AI app

If SmartAlex is connected to your AI app, you can ask it to do the same, for example "Add our order lookup MCP server at [https://example.com/mcp](https://example.com/mcp) to SmartAlex". The AI app shows a preview and waits for your yes. It can add a server that signs in or needs nothing. A server that needs an API key or a client secret is added in SmartAlex itself, because no key is ever taken in a chat. See the connector tools in the [tools reference](https://docs.getsmartalex.com/mcp/tools-reference.md).

## Remove it

Open the connector in the agent's **Connectors** and click **Remove**. Its tools come off every agent that had them, from the next call, and its saved sign-in is deleted.

To stop just one agent using it, switch its tools off for that agent instead and save.

## If it does not work

| What you see | What to do |
| - | - |
| "Enter a public https\:// server URL. Internal and private addresses are blocked." | Use the public `https://` address of your server. |
| "Could not reach that MCP server. Check the URL and token." | Check the address, that the server is running and reachable from the internet, and the key. |
| "That server turned down the token. Check it is correct and has not expired." | Create a new key on your server and add it again. |
| "Paste the API key, or set authentication to None." | You chose **API key** but left it empty. |
| "Use a header name made of letters, numbers and dashes, such as X-API-Key." | Fix the header name, or leave it empty to send `Authorization: Bearer`. |
| "Your browser blocked the sign-in window. Allow pop-ups for this site, then try again." | Allow pop-ups for SmartAlex, then click **Continue to sign in** again. |
| "Sign-in did not finish." | Click **Continue to sign in** again and complete your server's sign-in. |
| A tool name is reserved for built-in call actions | Rename that tool on your server. Custom tools must be data lookups. Call actions such as transferring or ending a call, booking an appointment or taking a payment are built in. |
| "You've reached the limit of 25 custom servers." | Remove one you no longer use. |
| The connector was not added because it is SmartAlex's own server | To use SmartAlex's own data, connect SmartAlex CRM from **Browse** instead. |

> [card] [Agent tools and connectors](https://docs.getsmartalex.com/essentials/agent-tools.md)
>
> The ready-made connectors your agent can use.

> [card] [Custom HTTP tools](https://docs.getsmartalex.com/guides/http-tools/overview.md)
>
> Call your own HTTPS endpoints during a call instead.


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