> For the complete documentation index, see [llms.txt](https://help.botpenguin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.botpenguin.com/ai-agents/prompts-and-tools/custom-mcp.md).

# Custom MCP

The Custom MCP tool lets your AI agent use the tools of your own MCP server with BotPenguin.

The Custom MCP tool lets your AI agent use the tools of your own MCP server. You add it on the Prompt & Tools page, choose which actions the agent may use, and tell the agent when to use it.

### Prerequisites

* An AI agent. See Create your first AI Agent.
* An MCP server.
* Edit access to AI Agents.&#x20;

### Key definitions

| Term               | Meaning                                                                              |
| ------------------ | ------------------------------------------------------------------------------------ |
| Tool               | Something your agent can use to take an action.                                      |
| Action             | One thing a tool can do. You turn each action on or off with Allowed.                |
| Usage instructions | Your words that tell the agent when to use the tool and what to do.                  |
| Connected account  | The account of the other service. You connect it once and reuse it for other agents. |

### What the Custom MCP tool can do

| Action                         | What it does                                         |
| ------------------------------ | ---------------------------------------------------- |
| Create or select an MCP server | Picks the server your tools come from.               |
| Add its tools                  | Chooses which tools of the server the agent may use. |
| View added tools               | Shows the tools you already added.                   |

You fill in these fields when you set up the tool:

* MCP server (create a new one or pick one)
* Tools to add

### Steps

1. Open **Prompt & Tools** under Setup in the AI Agent sidebar. Click **Add tool**. In the Add tools window, find **Custom MCP**. You can search for it, or look under Third-party MCP tools. Click it.

![Find Custom MCP in the Add tools window](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/ZTzwZCsattKQvedjP9O7/images/custom-mcp-step-1.png)

2. On the MCP provider step, choose your MCP server, or click **Add new** to add one. Click **Continue**.

![Choose the MCP server for Custom MCP](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/BPXXgtjoabfVWjy15HNH/images/custom-mcp-step-2.png)

3. On the Configure step, fill in: MCP server (create a new one or pick one); Tools to add. Turn on the actions you want the agent to use. Under "How should the agent use Custom MCP?", write when the agent should use the tool and what it should do. This is required.
4. Click **Add tool**. The button stays grey until the required fields are filled. The tool now shows under Connected tools with an Active label. Click **Done**, then click **Update** to save the page.

### Example usage instructions

> Use the Custom MCP tool to help customers with product questions, orders and support issues.
>
> Search knowledge base: Use this first when the customer asks a question about products, policies or how something works. Answer only from what it returns. If nothing is found, say so and offer to create a ticket.
>
> Get order status: Use this when the customer asks where their order is. Ask for the order number if you don't have it. Look up the order and tell the customer the status. If no order is found, ask them to check the number.
>
> Create ticket: Use this only when the customer has a problem you can't solve, or asks for a human. Ask for a short description of the issue first. After creating the ticket, tell the customer it has been created.
>
> Rules: Never guess an order status or an answer. If the tool gives an error, say "I could not check that right now" and offer to create a ticket.

Write your own in the same way: say when to use the tool, then what to do.

***

### Change or remove the tool

Under Connected tools, click the gear icon to open the tool's settings again. Click the delete icon to remove it. You are asked to confirm. Deleting removes the tool and its usage instructions from the agent. The connected account stays, so other agents can still use it.

***

### Common errors

<details>

<summary>The agent does not use the tool</summary>

Check that the tool shows Active under Connected tools. Check that the action you need is allowed. Make your usage instructions clearer about when to use the tool.

</details>

<details>

<summary>I cannot save the tool</summary>

The usage instructions are required. Fill them in. Also fill in the other required fields.

</details>

<details>

<summary>I do not see Custom MCP in the Add tools window</summary>

Your partner may not have turned this integration on. Ask your partner or account owner.

</details>

<details>

<summary>The Continue button is grey</summary>

Choose an account first. If you have none, click Connect another account.

</details>

<details>

<summary>Can I use the same account for more than one agent?</summary>

Yes. Connected accounts belong to your account, so other agents can use them.

</details>

<details>

<summary>What happens if I delete the tool?</summary>

The agent can no longer use it, and its usage instructions are removed. Text about the tool in your prompt stays, so remove it too.

</details>

### Support

Still not working? Write to us at <support@botpenguin.com>. We will reach out to you within 24 hours.
