---
title: "Connect an MCP server"
description: "Connect your own MCP server to your agents, choose how Gleap signs in, and set what agents may do with each of the server's tools."
url: https://help.gleap.ai/en/articles/250-connect-an-mcp-server
collection: "Custom AI agents and skills"
updated: 2026-11-19
language: en
---

# Connect an MCP server

Connect your own MCP server to your agents, choose how Gleap signs in, and set what agents may do with each of the server's tools.

MCP (Model Context Protocol) is a standard way for a system to offer its actions to an AI agent. If you run your own MCP server, or a service you use offers one, you can connect it to a custom agent instead of building API calls one by one.

Some ready-made connections in the tool picker already work this way, Slack and Attio among them. You only need the steps below for your own server or one that isn't listed.

This is different from **Settings → Developer → MCP**. That page is Gleap's own MCP server, which lets AI assistants outside Gleap work with your Gleap data. This article is the other direction: your agent using someone else's server.

### Add the server

1.  Open the agent and go to **Settings → Tools**.
    
2.  Click **Add tool**, type **Custom MCP** in the search box and choose **Custom MCP**. (On the **Connect a tool** tab, **MCP server** under **Build your own** opens the same form.)
    
3.  Enter a **Name** your team will recognise and the **Server URL**, then click **Next**.
    
4.  Under **Authentication**, choose how Gleap signs in (see below). Click **Save**, or **Connect via OAuth** if you chose OAuth.
    
5.  Gleap asks the server which tools it offers and opens **What may agents do with <name>?**. Check the rows (see below) and click **Save and add**.
    

The server is now one of the agent's tools. It's also added to your project under **Settings → Apps**, so your other agents can use it too.

> **Info:** Gleap connects to the URL from its own servers, so the server must be reachable from the internet. A server on your laptop or inside a private network won't work.

### Authentication

-   **No authentication.** Only for a server that exposes nothing sensitive.
    
-   **Headers (manual).** Enter the header names and values yourself. Most token-based servers work this way. A header value can also use placeholders such as `{{session.userId}}` or `{{session.email}}`, filled in from each conversation's contact.
    
-   **OAuth 2.0.** Choose **Connect via OAuth** and sign in with the provider. If the server can't register Gleap on its own, enter a **Client ID** first, plus a **Client Secret** if it needs one. You can still add headers, which are sent next to the OAuth token.
    

Prefer OAuth where the server supports it. A pasted token stays valid until someone rotates it, while an OAuth connection can be revoked on the provider's side without touching Gleap.

### Choose what agents may do with each tool

What agents may do with a server's tools is set once for the project. Every agent that uses the server follows the same table, and each tool gets two settings:

-   **A customer asks**: **Allow** (guests too), **Identified users** (guests are passed on), **Ask first** (a teammate on the board you pick OKs it) or **Never** (Kai can still use it while investigating).
    
-   **Your team asks**: **Allow**, **Ask first** (a teammate confirms before it runs) or **Never**.
    

The starting points at the top set every row at once: **Careful**, **Recommended** or **Open**. **Recommended** lets look-ups run, asks first before changes that reach customers and never deletes. Read each row anyway: the starting values come from how Gleap classified the tool, and a tool that only reads can be classed as one that changes things.

To keep a server read-only, leave its look-ups on **Allow** and set every tool that changes or deletes something to **Never**.

To change the table later:

1.  Go to **Settings → Apps** and open the server.
    
2.  Under **What agents may do**, change any row. It applies to every agent that uses this server.
    

![Custom MCP setup with a fictional server address in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/kUfCaq9bjaoTP5k8HJTYjRPA4GIcaJm7RNYZxfi2LW0XiygHn3czMucQ4eCBxF8ih9peTc2Cui7.png)

### If the server shows no tools

If the permissions step or the server's page in **Settings → Apps** lists no tools, it's usually one of three things:

-   The URL has the wrong path. MCP endpoints often sit on a specific path, such as `/mcp`, not on the domain root.
    
-   The credentials were rejected, so the server returned nothing.
    
-   The server really offers no tools.
    

Check the URL against your provider's documentation first.

### Related

-   [Connect a tool to an agent](https://help.gleap.ai/en/articles/248-connect-a-tool-to-an-agent.md)
    
-   [Tool types reference](https://help.gleap.ai/en/articles/249-tool-types-reference.md)
    
-   [Connect an AI assistant with the Gleap MCP server](https://help.gleap.ai/en/articles/369-connect-an-ai-assistant-with-the-gleap-mcp-server.md)
    
-   [Choose what agents may do in each app](https://help.gleap.ai/en/articles/16751966-choose-what-agents-may-do-in-each-app.md)
