Skip to main content
An MCP server is a service that publishes a list of tools over the Model Context Protocol. Connect one to your AI agent and pick the tools you want: each one becomes a Custom Action the AI agent can call during a conversation. There’s no endpoint, request body, or input list to configure by hand, because the server describes its tools itself.

Best for:

Giving your AI agent a whole set of tools from a product that already runs an MCP server, in a minute instead of one Custom Action at a time.
Common Use Cases:
  • Letting the AI agent look things up in a tool your team already uses, such as a CRM, a project tracker or a knowledge base
  • Exposing your own internal service to the AI agent by running an MCP server in front of it
  • Trying a new integration quickly before building a dedicated Custom Action

How to connect an MCP server

1

Navigate to Actions

Go to your Chatbase dashboard and select your AI agent. Click Build > Actions in the left sidebar.
2

Open MCP servers

Click Create Action, then select MCP servers.
The MCP servers card with its New badge, next to Custom actions on the Create Action tab
3

Paste the server URL

Enter the server’s address in Server URL and click Connect. The address must start with https://. Your MCP provider lists it in their docs, usually ending in /mcp.
The Add MCP server dialog with a server URL entered
4

Sign in, if the server asks

If the server needs an account, the dialog changes to Sign in to followed by the server’s name. Click Sign in and approve access in the window that opens, or use a token instead. See Signing in below. Servers that don’t need an account, like the one in these screenshots, skip this step.
5

Pick the tools

The Import tools step lists every tool the server offers, with a badge showing what it does. Tick the tools your AI agent should be able to call, then click Import N Actions. See Choosing tools below.This server doesn’t say which of its tools only read data, so they’re all marked Unknown and start unticked. In this example, all three are ticked by hand.
The Import tools step with three tools ticked and an Import 3 Actions button
6

Review the new Actions

You land on My Actions, where the server has its own section with one Action per imported tool, each switched on. Click Customize on a tool to change its name or when the AI agent uses it. See Customize an imported tool.
The MCP server's section in My Actions with its imported Actions switched on
Saving puts your changes in a draft. Your customers see them once you click Publish in the top-right corner. A few settings go live as soon as you save. See Drafts and versions.
7

Test it

Ask your AI agent something in the Playground that needs one of the tools, and check that the answer uses what the server returned.
The Playground, where the AI agent answers using a tool from the connected MCP server
If the AI agent refuses or answers without the tool, check its instructions: an AI agent told to answer only about your product will decline questions the tool is meant for. Add the new topic to its instructions.
You can also start from the Custom actions card: click Import tools from an MCP server below Start customizing.

Signing in

Chatbase connects to the server in one of three ways, depending on what the server asks for:
The Sign in step with a Sign in button and the option to use a token header instead
Chatbase stores Secret header values encrypted and never shows them again. To change one, enter it again.
Your AI agent calls the server as the account you signed in with, for every visitor. Anything that account can see or change, any customer chatting with your AI agent can ask about. Sign in with an account that only has access to what customers should reach, and import only the tools they need.
If the server doesn’t let apps sign in on their own, the dialog says “This server doesn’t let Chatbase sign in on its own. Use a token header instead.” Ask your MCP provider for an API key and use a token header.

Choosing tools

Each tool carries a badge that comes from the server’s own description of it: When a server has 10 tools or fewer, its Read-only tools start ticked. Everything else starts unticked, so you choose each tool that can change data. Servers with more than 10 tools show a Search tools box and start with nothing ticked. Each imported tool is an enabled Action and counts toward your plan’s limit of Actions per AI agent. If you tick more than your plan allows, the step tells you how many more you can add and the Import N Actions button stays off until you untick some.

Customize an imported tool

Click Customize on an imported Action to open its settings.
The General section of an imported MCP tool, with its Action name and When to use fields
You can change:
  • Action name: the name shown in My Actions. Letters, numbers, _ and -, 3 to 64 characters.
  • When to use: when the AI agent should call the tool. It starts as the tool’s own description. Or turn on Only use in Procedures.
  • Action type: Server only calls the tool, and Server with UI also shows the result in a Widget.
  • Channels: where the Action is available. Server only works on the same channels as a Call API Custom Action, and Server with UI on the same channels as Call API + show Widget. See Channels.
The Action type choice between Server only and Server with UI
The tool’s inputs are set by the server and shown read-only. To pick up changes the server made, use Refresh tools.
The read-only list of inputs an MCP tool takes, set by the server

Manage a server

Open the ⋯ menu on the server’s section in My Actions:
The MCP server menu with Edit connection, Refresh tools and Remove server
  • Edit connection: change the server URL or its token headers, or sign in again.
  • Refresh tools: fetch the server’s current tool list. Chatbase updates imported tools to match, turns off tools the server dropped, and opens new tools in the import step so you can add them.
  • Remove server: delete the server and every Action imported from it, and sign Chatbase out of it. This can’t be undone, and it applies to your live AI agent right away, without Publish.
The Remove this MCP server confirmation dialog
You can’t remove a server while a Procedure uses one of its Actions. Remove those Actions from your Procedures first.

Status badges

An MCP server section with the Needs sign-in badge and a Sign in again button

Limits and requirements

  • The server must be reachable on the public internet over https://. Chatbase rejects private and internal addresses with “The MCP server address must be public.”
  • Chatbase talks to servers over Streamable HTTP. Older SSE addresses (often ending in /sse) and local (stdio) servers can’t be connected. Use the server’s Streamable HTTP address, usually ending in /mcp.
  • A tool’s response can be up to 20 KB. Larger responses reach the AI agent as an error.
  • Every call has a 60 second timeout.
  • Actions aren’t available on the Free plan, and each imported tool counts toward your plan’s Actions per AI agent.
  • A tool’s input schema can be up to 32 KB. Larger tools can’t be imported.
  • Copying an AI agent to another workspace doesn’t copy sign-ins or secret tokens. The copy shows Needs sign-in or Needs credentials until someone signs in again.

Troubleshooting

Best Practices

Import Only What You Need

Every tool is another choice the AI agent has to make. A few well-described tools work better than dozens.

Use a Limited Account

Sign in with an account that can only reach what your customers should, because every visitor uses the same connection.

Be Careful With Writes

Read the description of every Writes, Destructive and Unknown tool before you import it.

Sharpen When to use

Server descriptions are written for developers. Rewrite When to use in plain words about when customers need the tool.

Frequently asked questions

A Custom Action calls one API endpoint you describe by hand: method, URL, inputs and headers. An MCP server describes its own tools, so you only paste a URL and tick the tools you want. Each imported tool is still listed as a Custom Action.
Yes. Each server gets its own section in My Actions. All their tools together count toward your plan’s Action limit.
No. The AI agent uses the one account that connected the server, for every conversation.
Nothing changes until you click Refresh tools. Chatbase then updates existing Actions, turns off removed tools, and opens new tools in the import step.
No. The server defines them. You can change the Action’s name, When to use, type and channels.
No. This page is about your AI agent using other MCP servers. To manage Chatbase from Claude, ChatGPT or another AI assistant, see MCP.