# Add an MCP server

Give agents the tools of an MCP server by deploying a catalog entry, registering a server you already run or deploying your own image, then manage it from Tools.

An MCP server exposes tools that agents can call. Katonic can run one for you on the cluster from an image, or connect to one that already runs elsewhere. Servers are added and managed on **Tools** in the Control Room; the Catalog's **Tools** section shows anyone what the catalog offers and whether each server runs here. This page covers adding a server and what happens after; the tool catalog itself is explained in [The tool catalog](/tools/tool-catalog).

**Who can use it:** the **Admin** role, in a tenant licensed for tools; the **Server catalog** tab also needs the Catalog licence. Deleting a server needs the tools delete capability. In the Catalog, **Deploy** on a server needs the same Control Room access; everyone else sees **Ask an admin** there.

Video: Add an MCP server (2:24), https://katonicdocsmedia.blob.core.windows.net/docs/add-an-mcp-server/3e8021dcb8ae/index.html

## Three ways in

| Start from | What happens |
| --- | --- |
| The **Server catalog** tab of Tools, **Deploy** on a catalog card | The **Configure** dialog for that catalog entry opens: settings, authentication and access groups, then **Deploy**. |
| The Catalog, **Tools**, **Deploy** on a server | The same **Configure** dialog opens in the Control Room. A server already deployed offers **Manage in Control Room** instead. |
| **Add MCP Server** on Tools | The **Add Custom MCP Server** dialog opens for a server that is not in the catalog: your own image, or a server you already run. |

The catalog is synced from Ops Hub; see [The tool catalog](/tools/tool-catalog) for **Refresh Catalog** and the states the **Server catalog** tab reports.

## Deploy a catalog entry

Select **Deploy** on a card of the **Server catalog** tab. The dialog is headed **Configure** and the server's name. Under **Server Settings** you fill whatever the entry asks for, such as allowed paths; you can come back and correct a value here later instead of redeploying. A server the provider hosts shows **Hosted MCP**: no compute is needed on your cluster. A self-hosted entry offers **Resources** (**Select resource size...**) and, when the entry needs one, a **Stdio Command**.

![The Configure dialog for the PostgreSQL catalog entry, opened from Deploy on its Marketplace card: the server's logo and name, the Tools Provided list with its count and a chip per tool, the Authentication Method list reading API Key / Token with its key field, the Access Groups list of the tenant's groups with a checkbox each, and the Resources list reading Select resource size...](https://docs.katonic.ai/img/tools/add-an-mcp-server/tools-catalog-configure.png)
*Deploy on a Server catalog card opens Configure for that entry: the tools it provides, how it authenticates, the access groups that may use it, and a resource size for a self-hosted server. Deploy at the foot of the dialog starts the server; a hosted entry shows Hosted MCP instead of Resources.*

**Authentication Method** offers five choices. **None** for a server that needs no credential. **API Key / Token**: enter the key or token the server expects. **Custom Header**: a header name such as X-API-Key and its value. **OAuth 2.0**: your **OAuth Client ID** and **OAuth Client Secret**, plus a **Redirect / Callback URL** to copy into the provider's app settings. **OAuth (auto-discover)**: no client ID or secret; when you select **Connect & Authorize**, Katonic reads the server's OAuth metadata, registers itself and opens the provider's sign-in, which suits hosted, OAuth-protected servers.

Under **Access Groups**, tick each of your tenant's groups that may use the server's tools; if the groups cannot be loaded, a field appears instead where you type a group name and press Enter. **Tools Provided** lists what the entry exposes. Select **Deploy**, or **Connect & Authorize** for an OAuth choice; the button reads **Deploying...** while the server starts. Editing later shows the same dialog with **Update MCP**.

## Add your own server

  
**Step 1. Open the dialog**

On **Tools**, select **Add MCP Server**. The **Add Custom MCP Server** dialog opens with two modes: **Docker Container**, to deploy an image as an MCP server on the cluster, and **Remote / Hosted**, to connect to a server that already runs at an address.
    ![The Add Custom MCP Server dialog in Docker Container mode, with Remote / Hosted as the other mode: the Server Name and Docker Image fields, the Transport list with its note that the image must listen on port 8080, the Authentication list and the start of Environment Variables.](https://docs.katonic.ai/img/tools/add-an-mcp-server/tools-add-mcp-dialog.png)
*Add MCP Server opens Add Custom MCP Server for a server that is not in the catalog: deploy an image as a Docker Container, or connect to a Remote / Hosted server by its endpoint. Authentication, resources and at least one access group follow below.*

  
**Step 2. Describe the server**

Enter a **Server Name**. For a container, enter the **Docker Image** and pick its **Transport**: the image exposes an SSE endpoint on port 8080, listens for Streamable HTTP on port 8080, or is wrapped with a stdio bridge, in which case a **Stdio Command** field appears and can be left blank to use the catalog's command for that image. For a remote server, enter the **Endpoint URL**, the full HTTPS address of its SSE or streamable-HTTP endpoint, and set **Transport** to match.

  
**Step 3. Set authentication and resources**

**Authentication** offers **None**, **API Key** (an API key or bearer token), **OAuth 2.0** (a client ID and secret) and **Custom Header** (a header name and value). A container also takes **Environment Variables**, one per line as KEY=VALUE, and a **Resources** size: **Small (1 CPU, 2Gi)**, **Medium (2 CPU, 4Gi)** or **Large (4 CPU, 8Gi)**. **Description** is optional.

  
**Step 4. Choose the access groups and finish**

Under **Access Groups**, select the groups that may use the server, or type a new name and select **Add**; at least one is required. Select **Deploy** for a container, or **Connect** for a remote server. The dialog names anything missing: a server name, a Docker image, an endpoint URL or an access group.

## After the server is added

The server appears as a card on the **Servers** tab, with its authentication, its tool count and a status pill: **DEPLOYING** while it starts, then **RUNNING**, or **STOPPED** or **ERROR**. The switch on the card starts and stops the server; **Fix Auth** replaces it when a credential has expired. Select the card to open its detail: **Status**, **Health**, **Type** (**Hosted** or **Self-hosted**), **Auth Type**, **Transport**, **Groups** and **Endpoint** with **Copy URL**, then **Tools** with **Search tools...**; until discovery finishes it reads **Tools will be discovered after deployment.** The detail's actions are **Start** or **Stop**, **Reconnect**, **Edit**, **Delete**, and **Update Available** when the catalog has a newer version, which reads **Upgrading...** while it applies. The tools then appear on **All tools** with their risk, and Builders can attach them to agents in Studio.

## Verify

On the **Servers** tab the card reads **RUNNING** with a tool count, and on **All tools** the server's tools are listed with a **Risk** and a **Basis**.

## Troubleshooting

- **Cannot start - server is in an error state. Edit configuration or check pod logs.** The detail shows this instead of **Start**. Select **Edit**, correct the settings and try again; your platform team can read the pod's logs.
- **OAuth connection failed.** The provider refused the sign-in or the pop-up closed. Check the client ID and secret, or use **OAuth (auto-discover)** for a server that publishes its OAuth metadata.
- **Couldn't load servers.** The tab could not read the list and says **The MCP servers service is unreachable or denied the request.** Select **Retry**; if it persists, the service behind Tools is down or your role lacks access.
- **A tool count of zero.** Discovery has not finished, or the server exposes no tools. Open the detail and wait for **Tools** to fill, then **Reconnect** if it does not.
- **Delete is disabled with You don't have permission to perform this action.** Deleting needs the tools delete capability; ask your administrator.

## Related

- [The tool catalog](/tools/tool-catalog)
- [Connect an API as a tool](/tools/connect-an-api-as-a-tool)
- [Tools and connectors in the Catalog](/user-guide/catalog/catalog-tools-and-connectors)
- [Connect an MCP client to the Katonic MCP Server](/tools/katonic-mcp-server)

Source: https://docs.katonic.ai/tools/add-an-mcp-server
