---
title: "AMP MCP Server"
url: "https://docs.yugabyte.com/stable/yugabyte-cloud/serverless/mcp-server-amp/"
---

# AMP MCP Server

Connect an AI client to the AMP MCP Server to manage Serverless Postgres clusters in YugabyteDB Aeon.

Manage Serverless Postgres clusters from an AI client

Tech Preview

The AMP MCP Server is in Tech Preview. Tool names, parameters, and behavior may change in later versions, including in ways that aren't backward compatible.

The AMP MCP Server lets an AI client manage the [Serverless Postgres](/stable/yugabyte-cloud/serverless/ "Serverless Postgres") clusters in your YugabyteDB Aeon organization. After you connect the client, you can ask it to list, create, update, and delete clusters, branches, and endpoints.

The server works only on your organization's [Serverless account](/stable/yugabyte-cloud/managed-security/manage-accounts/#serverless-account "Serverless account"). A key created in any other account can't call the tools.

For information on MCP servers published by YugabyteDB, see [MCP servers](/stable/reference/mcp/ "MCP servers").

## Prerequisites

- A Serverless Postgres cluster, so the Serverless account exists. To create your first cluster, see [Quick start](/stable/yugabyte-cloud/cloud-quickstart/ "Quick start").
- An [API key](/stable/yugabyte-cloud/managed-automation/managed-apikeys/#create-an-api-key "API key") created while you are in the Serverless account.

The key's role needs the **AMP Managed cluster** permissions:

| Permission | Access                                                                |
|------------|-----------------------------------------------------------------------|
| Admin      | Full access to all operations, including billing and user management. |
| Viewer     | Read-only access.                                                     |

A key with Viewer can list resources. Select the permissions on **Security &gt; Access Control &gt; Roles**. See [Manage account roles](/stable/yugabyte-cloud/managed-security/managed-roles/ "Manage account roles").

YugabyteDB Aeon shows a new key only once. Store it in a password manager or another encrypted store. If you lose it, revoke it and create a new one.

## Connect a client

To add the AMP MCP Server, choose the client you use.

- Claude Code
- Other clients

Register the server, then confirm that it is listed as follows:

```sh
claude mcp add --transport http -s user amp https://cloud.yugabyte.com/mcp --header "Authorization: Bearer <API_KEY>"
```

```sh
claude mcp list
```

Replace `<API_KEY>` with your API key. `-s user` makes the server available in every project. Omit `-s user` to register it for the current project only.

Claude Code stores the header, including the API key, in plain text in `~/.claude.json`.

Restart Claude Code, or run `/mcp` and reconnect.

Any client that supports Streamable HTTP and a custom `Authorization` header can connect. The configuration shape depends on the client. Replace `<API_KEY>` with your API key.

**Cursor and other clients that take a remote HTTP entry**

In Cursor, open **Settings &gt; MCP**. Many of these clients use `mcpServers`:

```json
{
  "mcpServers": {
    "amp": {
      "type": "http",
      "url": "https://cloud.yugabyte.com/mcp",
      "headers": {
        "Authorization": "Bearer <API_KEY>"
      }
    }
  }
}
```

Use the key names your client documents. Some clients use `url` and omit `type`.

**Claude Desktop**

`claude_desktop_config.json` starts a local command. Wrap the URL with `mcp-remote`. This requires Node.js 18 or later.

```json
{
  "mcpServers": {
    "amp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://cloud.yugabyte.com/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer <API_KEY>"
      }
    }
  }
}
```

Keep `Authorization:${AUTH_HEADER}` as one argument, with no space after the colon. Claude Desktop on Windows doesn't escape spaces inside `args`, and neither does Cursor when it starts a local command, so `Authorization: Bearer <API_KEY>` is split and the key never arrives. `mcp-remote` substitutes `${AUTH_HEADER}` from `env`, where the space is preserved. The remote HTTP entry in this configuration passes the header as JSON, and a space in that value stays intact.

Configuration file locations:

- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`

Fully quit Claude Desktop from the menu bar, not by closing the window, for the change to take effect.

**Windsurf**

Windsurf remote entries use `serverUrl`. Open **Settings &gt; Cascade &gt; MCP Servers** and add:

```json
{
  "mcpServers": {
    "amp": {
      "serverUrl": "https://cloud.yugabyte.com/mcp",
      "headers": {
        "Authorization": "Bearer <API_KEY>"
      }
    }
  }
}
```

Refresh the MCP servers list after you save.

Keep the API key out of committed files

Don't put the API key in a project file that you commit, such as `.mcp.json` or `.cursor/mcp.json`. Anyone with the key can call the YugabyteDB Aeon API as that key's role until you revoke the key or it expires.

## Tools

These tools manage [clusters, branches, and endpoints](/stable/yugabyte-cloud/serverless/manage/ "clusters, branches, and endpoints") in the Serverless account. After you connect, the client lists the tools it has, including each tool's parameters.

| Tool              | Description                                                                                   |
|-------------------|-----------------------------------------------------------------------------------------------|
| `list_clusters`   | Lists the clusters in the account. Read-only.                                                 |
| `create_cluster`  | Creates a cluster. Write.                                                                     |
| `delete_cluster`  | Deletes a cluster. Write.                                                                     |
| `create_branch`   | Creates a branch from a parent branch. A new branch has no endpoint until you add one. Write. |
| `delete_branch`   | Deletes a branch. Write.                                                                      |
| `create_endpoint` | Creates an endpoint on a branch. Write.                                                       |
| `update_endpoint` | Updates an endpoint. Write.                                                                   |
| `delete_endpoint` | Deletes an endpoint. Write.                                                                   |
| `list_tasks`      | Lists the tasks for the account. Read-only.                                                   |
| `list_extensions` | Lists the extensions available in a region. Read-only.                                        |

Each write asks you to confirm before it changes anything. See [Read-only and write tools](/stable/reference/mcp/#read-only-and-write-tools "Read-only and write tools").

## Example prompts

After the client connects, ask it to manage [clusters, branches, and endpoints](/stable/yugabyte-cloud/serverless/manage/ "clusters, branches, and endpoints").

### List clusters

Prompt:

```text
List the Serverless Postgres clusters in this account.
```

The client lists the clusters in the Serverless account. You can ask it to include each cluster's branches and endpoints, the tasks for the account, or the extensions available in a region.

### Create a branch

Prompt:

```text
Create a branch named preview, forked from main.
```

The server asks you to confirm before it creates the branch, and it shows you the request, including the cluster and the parent branch. When the client supports MCP elicitation, that confirmation is a dialog, and auto-approve doesn't skip it. Otherwise, the client describes the request in the chat and sends it only after you agree. This relies on the client following the server's instructions, so don't set the client to auto-approve AMP tools. A new branch has no endpoint until you add one.

The server also asks you to confirm before it creates, updates, or deletes any cluster, branch, or endpoint. The API key's permissions still bound what the server can do. See [Read-only and write tools](/stable/reference/mcp/#read-only-and-write-tools "Read-only and write tools").

Responses from the AI client are generated by AI and may not be fully accurate. After a change, check the cluster in YugabyteDB Aeon. To see a task's progress, or the error if it failed, click **Tasks** in the left navigation.

## Replace an expired key

When the API key expires, the client can no longer call the server. [Create a new key](/stable/yugabyte-cloud/managed-automation/managed-apikeys/#create-an-api-key "Create a new key") in the Serverless account and replace the key in the client configuration. Revoke the old key if it is still listed.

## Read more

- [MCP servers](/stable/reference/mcp/ "MCP servers"), for how clients connect and how to handle credentials
- [YugabyteDB MCP Server](/stable/develop/ai/mcp-server/ "YugabyteDB MCP Server"), to query data in a database
- [Manage a cluster](/stable/yugabyte-cloud/serverless/manage/ "Manage a cluster"), for branches, endpoints, and compute
- [API keys](/stable/yugabyte-cloud/managed-automation/managed-apikeys/ "API keys"), to create or revoke the key this server uses
