> For the complete documentation index, see [llms.txt](https://docs.uptiq.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uptiq.ai/platform/core-concepts/mcp.md). Agents can also search and read this documentation through its [MCP server](https://docs.uptiq.ai/~gitbook/mcp).

# MCP

How the Uptiq Platform uses the Model Context Protocol: agents using outside MCP servers from the account's MCP registry, and coding agents connecting to the Platform's own MCP servers.

**Model Context Protocol (MCP)** is an open protocol for connecting language models to external tools and data. An **MCP server** exposes a set of **tools**; an **MCP client** connects to the server, lists its tools and calls them.

The Uptiq Platform is on both sides of that protocol:

| Direction    | MCP client                                       | MCP server                                                | Where it's set up                                                |
| ------------ | ------------------------------------------------ | --------------------------------------------------------- | ---------------------------------------------------------------- |
| **Outbound** | An agent                                         | An MCP server run by a vendor, by your company, or by you | The account's MCP registry, attached in Agent Builder            |
| **Inbound**  | Your coding agent, such as Claude Code or Cursor | The Platform's own MCP servers                            | **Build from your IDE** in the Agent Builder and the App Builder |

In neither direction do you build an MCP server inside the Platform. Outbound, the server already exists somewhere else, is saved in the account's MCP registry, and the agent connects to it. Inbound, the Platform runs the servers and your coding agent connects to them.

## MCP terms in the Platform

| Term                    | What it is in the Platform                                                                                                                                                                             |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **MCP server**          | A program, reached at a URL, that exposes tools over MCP. In the Platform it's always outside the agent: a vendor's, your company's, or one of the Platform's own.                                     |
| **MCP tool**            | One action an MCP server exposes. Each tool becomes something the agent can call.                                                                                                                      |
| **MCP registry**        | The account's one list of MCP servers, managed in **Connectors** › **MCP servers**. Agents attach servers from it and run their tools with the sign-in saved in it.                                    |
| **Add MCP Server**      | The agent builder window that lists the registry's servers, and adds or requests a new one.                                                                                                            |
| **MCP Marketplace**     | The tab under **Agent Config** › **Skills & Capabilities** that lists ready-made servers. Selecting one opens the add form with its details filled in.                                                 |
| **MCP Server** (skill)  | The Skill Library entry that opens **Add MCP Server**.                                                                                                                                                 |
| **Web Crawler** (skill) | A Skill Library entry that opens the add form filled in for Firecrawl.                                                                                                                                 |
| **Draft**               | A server or tool requested from an agent and not yet approved. Approved servers are **Active**.                                                                                                        |
| **MCP config file**     | A JSON file with an `mcpServers` object, the format MCP clients use. **Import Config File** fills the form from the first server in it.                                                                |
| **Connector**           | The Control Center word for anything an agent can reach. **Connectors** › **MCP servers** is the MCP registry.                                                                                         |
| **Redirect URL**        | The callback address the Platform gives you to register in an MCP server's OAuth app, so the server can return to the Platform after someone signs in.                                                 |
| **M2M**                 | Machine-to-machine: the OAuth client credentials grant, turned on with **Machine-to-Machine Sign-In (OAuth Client Credentials)**. The agent signs in to the server as itself, with no person involved. |
| **`$auth.token`**       | The verified identity token of the person calling the agent, available only inside MCP connection settings.                                                                                            |
| **Supervision mode**    | Per tool: **Always Ask Permissions** or **Allow Unsupervised**.                                                                                                                                        |
| **Build from your IDE** | The dialogs in the Agent Builder (**Connect to coding agents (MCP)**) and the App Builder that give your coding agent the Platform's MCP servers.                                                      |
| **`x-platform-key`**    | The header that carries the API key for the Platform's MCP servers. These keys are separate from an agent's API keys and widget keys.                                                                  |

## Outbound: an agent using an MCP server

An attached MCP server is a skill. Once it's attached, the server's enabled tools are available to the agent, and the agent chooses among them at run time. See [Skills & Tools](https://docs.uptiq.ai/platform/core-concepts/skills-and-tools.md).

### The MCP registry

Every MCP server an agent uses comes from the account's **MCP registry**, one list of servers for the whole account. Admins add, edit, reconnect, and refresh servers in [Connectors](https://docs.uptiq.ai/platform/control-center/govern/connectors/mcp-servers.md), and decide which servers and tools the account, a project, or an agent can use. Agents run a server's tools with the sign-in saved in the registry, so the server's credentials are entered once, not per agent.

### Three ways to get a server onto an agent

All three start from **Add MCP Server** in the agent builder. See [MCP Tools](https://docs.uptiq.ai/platform/console/agent-builder/build/mcp-tools.md).

| Start from                       | What happens                                                                                                                                                                                                                                                                        |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A server already in the registry | Pick it, choose its tools, and select **Attach**. A server marked **Request access** is attached at once and used once an approver accepts.                                                                                                                                         |
| **Add New Server**               | You need to manage the registry. The server is added to the registry and attached to this agent only.                                                                                                                                                                               |
| **Request New Server**           | Shown when the account requires approval and you can't manage the registry. The server is attached as **Draft** and used once an approver accepts the request in [Approval Requests](https://docs.uptiq.ai/platform/control-center/govern/approval-requests.md#mcp-server-request). |

**MCP Marketplace** servers and the **Web Crawler** skill open the add form with a server's details filled in. Every add form shows the same **Only Add Servers You Trust** warning first: UPTIQ hasn't verified the server, and agents that use it act with the credentials you enter.

{% hint style="warning" %}
**Core Banking Sandbox API returns simulated data.** Use it to build and test an agent, not to reach a real core banking system.
{% endhint %}

### Authentication: how the Platform signs in to the server

**Authentication (Optional)** doesn't create anything on the side. It holds the credentials that the Platform, as the client, presents to the MCP server.

| Setting                                                   | Use it when                                                        | What happens                                                                                                                                                                                                                                                                                        |
| --------------------------------------------------------- | ------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Register This Redirect URL**                            | The server signs people in through OAuth                           | Copy the Redirect URL and add it as an allowed redirect URI in the OAuth app on your MCP server. **OAuth Client ID** and **OAuth Client Secret** are optional if the server's authorization service supports dynamic client registration.                                                           |
| **Machine-to-Machine Sign-In (OAuth Client Credentials)** | The server issues a client ID and secret instead of a sign-in page | **Token URL**, **OAuth Client ID** and **OAuth Client Secret** become required; **Scope** is optional. There's no sign-in step and no Redirect URL. See [Connect with client credentials](https://docs.uptiq.ai/platform/console/agent-builder/build/mcp-tools.md#connect-with-client-credentials). |
| **Headers (Optional)**                                    | The server takes a key or token in a header                        | Key and value pairs sent with every request to the server.                                                                                                                                                                                                                                          |

Write a key or token in the URL or a header value as `{{name}}`, and add its value under **Variables (Optional)**, so it's never saved in the URL or headers.

When the agent has [Authentication](https://docs.uptiq.ai/platform/console/agent-builder/deploy/authentication-1.md) turned on, `$auth.token` resolves to the verified token of the person calling the agent, so the server can apply that person's permissions. It works only in MCP connection settings: skills and instructions can't read it. Without a token in the request, it resolves empty.

### Draft and Active

A server an admin saves in the registry is **Active** at once. A server or tool requested from an agent is **Draft** until an approver accepts it, and the agent shows where the request stands, such as **Waiting for admin approval**. An agent that uses a Draft or rejected server can still be submitted for publishing, and the publish request warns reviewers. See [Draft servers and approvals](https://docs.uptiq.ai/platform/control-center/govern/connectors/mcp-access-and-approvals.md#draft-servers-and-approvals).

### What an export carries

[Export Agent](https://docs.uptiq.ai/platform/console/agent-builder/deploy/export-agent.md) always includes the agent's MCP servers and their tool settings, but never their sign-in or OAuth client ID and secret. A `{{name}}` variable in a URL travels without its value.

On import, each server is matched to the registry by URL. A server the registry doesn't have arrives as **Draft** with its name and URL only, for someone to reconnect from the agent. Importing needs the View MCP Registry capability and access to each registry server the package uses; otherwise nothing is imported.

### Where a server shows up

| Place                                                                                                                           | What it shows                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| The [canvas](https://docs.uptiq.ai/platform/console/agent-builder/the-canvas.md)                                                | A node in the Skills band, with the server's name                                                                                   |
| [Skills & Capabilities](https://docs.uptiq.ai/platform/console/agent-builder/build/skills-and-capabilities.md)                  | The server's tools                                                                                                                  |
| [Connectors](https://docs.uptiq.ai/platform/control-center/govern/connectors/mcp-servers.md) › **MCP servers** (Control Center) | One row per registry server, with its URL, description, and **Available** switch. Its **Used by** tab lists the agents that use it. |
| [DB Query Logs](https://docs.uptiq.ai/platform/control-center/observe/db-query-logs.md) (Control Center)                        | Database operations in the **MCP** module                                                                                           |

### Scope

* **The registry belongs to the account.** A server is saved once and attached to as many agents as may use it.
* **Rules decide who can use it.** A block on the account, a project, or an agent wins, and with no rule that allows it, a server can't be used. See [Connectors](https://docs.uptiq.ai/platform/control-center/govern/connectors/mcp-access-and-approvals.md#control-which-servers-and-tools-agents-can-use).
* **The account sets the outer limit.** An agent can't use a connector the account hasn't made available, whatever its own configuration requests.

### MCP compared to Apps & Services

Both add outside capability to an agent, and the catalogs overlap. [Apps & Services](https://docs.uptiq.ai/platform/console/agent-builder/build/apps-and-services.md) lists SaaS connectors such as Stripe and Resend, connected through the [Integrations Hub](https://docs.uptiq.ai/platform/console/integrations-hub.md). MCP servers are reached by URL through the registry. For an HTTP endpoint that isn't an MCP server, use the [API Call](https://docs.uptiq.ai/platform/platform-resources/skill-library/api-call.md) skill.

## Inbound: a coding agent connecting to the Platform

The Platform runs MCP servers of its own, so an MCP-capable coding agent can build on the Platform from your editor. Your coding agent is the client; the Platform is the server.

### The three servers in Connect to coding agents (MCP)

In the Agent Builder, **Build from your IDE** opens **Connect to coding agents (MCP)**, with an example `claude mcp add` command for each server.

| Server                 | Endpoint                                  | What a coding agent can do with it                                                                                                                                                                                                                                                                       |
| ---------------------- | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Agent Builder MCP**  | `<BASE_URL>/agent-builder/mcp`            | Build and manage agents: create, update and delete agents; skills, knowledge, guardrails, execution plans, memory, secrets and access keys; MCP connections and integrations; versions, export and import; plus audit logs, models and usage.                                                            |
| **Knowledge MCP**      | `<BASE_URL>/agent-builder/knowledge/mcp`  | Manage knowledge: datasets and data sources, including uploads and Google Drive, OneDrive, SharePoint and website imports; ingestion, versions and sync; querying; governed graphs; attaching knowledge to agents. It's a separate server so a knowledge client isn't offered the rest of Agent Builder. |
| **Agent Executor MCP** | `<BASE_URL>/agent-executor/<version>/mcp` | Run agents: trigger an agent, follow or abort a run, read conversations and artifacts, answer an agent's questions, and handle documents. The **Executor version** menu, such as **1.4**, sets `<version>` in the command.                                                                               |

{% code title="Add the Agent Builder MCP server (Claude Code)" overflow="wrap" %}

```bash
claude mcp add --transport http agent-builder <BASE_URL>/agent-builder/mcp \
  --header "x-platform-key: <YOUR_API_KEY>"
```

{% endcode %}

The servers use streamable HTTP and are stateless: every request stands alone.

### The App Builder server

In the App Builder, **Build from your IDE** gives one server, at `<BASE_URL>/app-builder/api/v1/mcp`. Through it, a coding agent creates an app, follows its build, approves its plan, and makes the choices along the way, such as the design system, the database, and where each service is published. See [Build from your IDE](https://docs.uptiq.ai/platform/console/app-builder/creating-and-importing-apps.md#build-from-your-ide).

### Keys for the Platform's servers

* Every request carries the key in the `x-platform-key` header.
* Create keys in the dialog, under **API keys** › **+ Add Key**, and **Revoke** them at any time.
* **A key made in Connect to coding agents (MCP)** is valid only for the current workspace and account. It carries the agent capabilities you hold yourself, limited to building, viewing, importing, exporting, publishing, triggering and sharing agents, managing versions, attaching governed graphs, querying knowledge, stopping agents, and viewing credit usage and traces. A coding agent using the key can't do more than you can.
* The App Builder dialog has its own list of keys.

Treat a key as a credential: it lets an outside tool act in the Platform as far as the key allows.

## Under the hood

Two more uses of MCP need no setup and don't appear in the MCP registry:

* **Flows and Integrations Hub skills** reach the agent executor through the Platform's own internal MCP servers.
* **MCP tools can return an interactive view.** A tool result of type `text/html;profile=mcp-app` is rendered in a sandboxed view in the chat.

## Where this is configured

* [MCP Tools](https://docs.uptiq.ai/platform/console/agent-builder/build/mcp-tools.md): attaching, adding and requesting servers, and client credentials
* [Attach skill](https://docs.uptiq.ai/platform/console/agent-builder/build/attach-skill.md): the MCP Marketplace tab
* [Skill Library](https://docs.uptiq.ai/platform/platform-resources/skill-library.md): the MCP Server and Web Crawler skills
* [Authentication](https://docs.uptiq.ai/platform/console/agent-builder/deploy/authentication-1.md): `$auth.token`
* [Export Agent](https://docs.uptiq.ai/platform/console/agent-builder/deploy/export-agent.md): what an export carries
* [Connectors](https://docs.uptiq.ai/platform/control-center/govern/connectors.md): the MCP registry, access rules and approvals
* [Get Started](https://docs.uptiq.ai/platform/console/agent-builder/get-started.md) and [Importing apps](https://docs.uptiq.ai/platform/console/app-builder/creating-and-importing-apps.md): Build from your IDE

## What's next

{% content-ref url="/pages/T6JgYeciEEqYGeREIZGH" %}
[Embed Agent](https://docs.uptiq.ai/platform/core-concepts/embed-agent.md)
{% endcontent-ref %}

{% content-ref url="/pages/8bBmw8K6OWJO25M5na0a" %}
[Skill Library](https://docs.uptiq.ai/platform/platform-resources/skill-library.md)
{% endcontent-ref %}

{% content-ref url="/pages/eECUHFUt1uGOMwj9qqW0" %}
[Connectors](https://docs.uptiq.ai/platform/control-center/govern/connectors.md)
{% endcontent-ref %}

***

{% columns %}
{% column width="83.33333333333334%" %}

<p align="right"><em>Maintained by</em> <mark style="color:green;">Abhishek Paul</mark><br><code>AI-assisted, human-approved</code></p>
{% endcolumn %}

{% column width="16.666666666666664%" %}

<div align="left"><img src="https://1326225582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0qmgQjJ5aArDTj2ACFHG%2Fuploads%2Fgit-blob-d034645b4f8f8ee661985f5306b60ded3289653c%2Fmaintainer-abhishek-paul.png?alt=media" alt="" width="60"></div>
{% endcolumn %}
{% endcolumns %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.uptiq.ai/platform/core-concepts/mcp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
