> This page is for Unified.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.merge.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.merge.dev/_mcp/server.

# Manage integrations with MCP

> Set up the Merge Unified Management connector in Agent Handler so Claude, Cursor, or any MCP client can check integration health, find a customer's connections, and explain open issues.

The Merge Unified Management connector lets your AI agent read the health of every integration your organization runs through Merge Unified. Your team asks a question such as "What's broken with our integrations?" and gets an answer that names the affected connections, the customers they belong to, the cause, and who has to act. Use it when your engineers, support analysts, or customer success team want answers about Linked Accounts and issues without clicking through the Merge Dashboard.

The connector runs in [Agent Handler](/merge-agent-handler/overview), Merge's product for giving AI agents access to third-party tools. Agent Handler stores your Merge API key and serves the tools to your AI client over MCP, so the key never sits in a local config file on anyone's laptop. This page assumes you already run Merge Unified and walks through Agent Handler from signup.

## Agent Handler in Unified terms

Agent Handler has its own dashboard at [ah.merge.dev](https://ah.merge.dev) and its own account, separate from your Merge Unified Dashboard. Most of its concepts map to ones you already know from Unified:

| In Unified     | In Agent Handler   | What it means here                                                                    |
| -------------- | ------------------ | ------------------------------------------------------------------------------------- |
| Integration    | Connector          | Merge Unified Management is the Connector. It calls the Merge API on your behalf      |
| Merge Link     | Agent Handler Link | The screen where you enter the credential. Here, the credential is your Merge API key |
| Linked Account | Connection         | Your saved Merge API key. You connect once, and every tool call reuses it             |
| API request    | Tool call          | One question can lead to several tool calls. Each tool call spends one credit         |

Your AI client connects to one Agent Handler URL, `https://ah-api.merge.dev/mcp`, and sees the tools from every Connector you have access to.

## What your agent can answer

The connector is read-only. It reads your Linked Accounts and issues from the Merge API and never changes anything in your organization. It works across every Merge Unified category.

| Question                                                   | Tool your agent calls |
| ---------------------------------------------------------- | --------------------- |
| How healthy are our integrations overall?                  | `get_org_health`      |
| Which connections need relinking, and for which customers? | `list_connections`    |
| What's broken, why, and who has to fix it?                 | `list_issues`         |
| Why is this customer's integration broken?                 | `find_customer`       |
| What happened on this specific issue?                      | `get_issue`           |

Every issue comes back classified by who must act: the end user, an admin at your customer, your team, or nobody. Issues that share a cause are grouped, so when 40 connections fail for the same missing permission, your agent reports one root cause and the customers it affects instead of 40 separate errors. Support and customer success get a list of customers to contact. Your integration engineers can fix the shared cause once.

> **What the connector does not cover yet**
>
> The connector reads Linked Accounts and issues. It does not read per-model sync status, enabled scopes, field mappings, or logs, and it cannot resync, relink, or change configuration. For those, use the [Merge Dashboard](https://app.merge.dev) or call the Merge API directly.

## Before you start

You need permission to create API keys in your Merge Unified Dashboard, and an MCP-capable AI client such as Claude, Claude Code, Cursor, Codex, Windsurf, or VS Code.

## Set up the connector

#### Agent Handler – Create an account

[Sign up for Agent Handler](https://ah.merge.dev/signup). Signup needs no card. The Free plan includes 2,000 credits per month, and each tool call spends one credit, so a team checking integration health a few times a day stays well within it. [Billing and usage](/merge-agent-handler/administer/billing) covers the other plans and what happens at the limit.

#### Merge Dashboard – Create an API key

In [API keys](https://app.merge.dev/keys), create a new Remote Production access key for the agent, named something like `agent-handler-management`. Create it in the dashboard for your organization's region (US, EU, or AP), since you pick the same region when you connect.

A dedicated key lets you revoke the agent's access without touching the key your production integration uses. The agent sees the Linked Accounts that match the key: production Linked Accounts for a production key, test Linked Accounts for a test key.

> **Warning**
>
> Merge API keys are not read-only. The connector only reads data, but the key itself can do anything your organization's API key can do. Store it in Agent Handler only, and revoke it from the Merge Dashboard if it is ever exposed.

#### AI client – Connect to Agent Handler

Add Agent Handler to your AI client as a remote MCP server. The first connection opens your browser so you can sign in to Agent Handler.

#### Claude Code

```bash
claude mcp add --transport http agent-handler https://ah-api.merge.dev/mcp
```

#### Claude (web & desktop)

1. Go to [claude.ai/customize/connectors](https://claude.ai/customize/connectors)
2. Click **Add custom connector**
3. Paste `https://ah-api.merge.dev/mcp` and click **Add**
4. Click **Connect** and sign in to Agent Handler

On a Claude Team or Enterprise plan, an owner adds the connector once for the whole organization. See [Agent Handler for Employees](/merge-agent-handler/setup/agent-handler-for-employees) for the admin steps.

#### Cursor

Add to `~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project):

```json
{
  "mcpServers": {
    "agent-handler": {
      "url": "https://ah-api.merge.dev/mcp"
    }
  }
}
```

#### Codex

```bash
codex mcp add agent-handler --url https://ah-api.merge.dev/mcp
```

The [Agent Handler quickstart](/merge-agent-handler/quickstart) has setup for Windsurf, VS Code, and the Merge CLI.

#### Agent Handler Link – Connect Merge Unified Management

Ask your agent a question about your integrations:

> How healthy are our Merge integrations?

Because the connector is not connected yet, the agent replies with a link. Open it to start Agent Handler Link, then:

1. Select the **Merge instance** that hosts your organization: **US** (the default), **EU**, or **AP**
2. Paste the API key you created in step 2
3. Click **Connect**

Link checks the key against the instance you selected before saving it. If the check fails, confirm the key was created in the same region you selected. After the connection saves, go back to your agent. It retries the question and answers it.

> **Note**
>
> If your Agent Handler organization restricts which tools people can use, an admin grants the Merge Unified Management tools under **Provisioning → Manage access**. See [Managing tool access](/merge-agent-handler/administer/managing-tool-access).

## Try it out

Start broad, then narrow to one customer or one issue. Your agent picks the right tool for each question.

* "Which of our connections need relinking? Group them by customer."
* "What are the top root causes of our open issues, and who has to fix each one?"
* "Show me every open Google Drive issue from the last 7 days."
* "Why is Acme Corp's integration broken?"
* "Explain issue `a1b2c3d4` and tell me what the customer needs to do."

When an issue belongs to a customer with more than one connection, the agent says the issue is ambiguous and lists the candidate connections. It does not guess which connection the issue belongs to.

## Use the connector in your own agent

The steps above connect a person's AI client. To run the same tools from an agent you build, such as a support bot that checks a customer's integration before opening a ticket, add Merge Unified Management to a [Tool Pack](/merge-agent-handler/build/tools/tool-packs) and call it through the Tool Pack's MCP URL. [Building an agent](/merge-agent-handler/setup/building-an-agent) covers that setup.

## Next steps

#### [Connector reference →](/merge-agent-handler/connectors/merge-unified-management)

Every tool, its pagination limits, and the credential check

#### [Agent Handler quickstart →](/merge-agent-handler/quickstart)

Connect more clients and make your first call with other connectors