# AI MCP Server

> The AI MCP Server of API Maker lets an AI app such as Claude, ChatGPT, Cursor, Lovable, Bolt, Claude Code, Codex, VS Code or Replit work in your account. You give the app one address and choose what it may do. Risky steps wait for your yes, every change to items can be undone, every call is written down, and secrets are never sent.

Source: https://docs.apimaker.dev/v4/docs/features/ai-mcp-server.html

The AI MCP Server lets an AI app work in your account : Claude, ChatGPT, Cursor, Lovable, Bolt, Claude Code, Codex, VS Code, Replit, or any app which speaks MCP. You give the app one address. You sign in and choose what it may do.

It is the other way round of [AI Assistant](https://docs.apimaker.dev/v4/docs/features/ai-assistant.html) : there the chat lives in the admin panel and uses your key of an AI provider. Here the chat lives in the AI app you already use, and that app pays for its own AI.

> **In short**
>
> - It is off until someone presses **Turn on**.
> - One address per account : `https://<your API address>/api/mcp/<api path>`.
> - The app signs in with your panel account, and you choose what it may do. Or you make a personal token for it.
> - Risky steps wait for your yes on the tab **Waiting for you**.
> - Every change an app makes to items can be undone on the tab **Undo**.
> - Every call is written down on the tab **Activity**.
> - Secrets are never sent : an app cannot read, change or delete one.
> - It never commits to Git. It can write the commit message. You press **Commit**.

| | |
|---|---|
| Where | `Dashboard → APIs & Logic → AI MCP Server`. The root user : `Dashboard → AI MCP Server`. |
| Who | Admins and developers, each with connections of their own. The root user decides what every account may do. |
| Address | `https://<API address>/api/mcp/<api path>` (build door), `…/api/mcp/<api path>/data` (data door). |
| Sign-in | OAuth 2.1 with PKCE, on the page **Allow access** of the admin panel. Or a personal token (`amcp_…`). |
| Protocol | MCP over Streamable HTTP : versions `2026-07-28`, `2025-11-25`, `2025-06-18`, `2025-03-26` and `2024-11-05`. |
| Activity | Kept 90 days. |
| Undo | Kept 30 days, or 90 days on a production server. |

## Turn it on

1. Open `Dashboard → APIs & Logic → AI MCP Server`.
2. Choose what this server is : **development**, **test** or **production**. On production AI apps only look.
3. Press **Turn on**.

Each account turns it on for itself. A new account starts with it off.

If your code holds a key written in it, the page names the file and the line first. Move such keys into a secret on [Secret Management](https://docs.apimaker.dev/v4/docs/secrets/secrets.html) : no AI reads a secret.

## The address

The tab **Connect** shows the address of your account. Copy it, or press the button of your AI app.

AI apps in the cloud (Claude, ChatGPT, Lovable, Bolt, Replit) call your server from the internet. They need an address with **HTTPS** that the internet reaches. Apps on your computer (Claude Code, Codex, Cursor, VS Code) also work with `http://localhost`.

Write your public address in the box and press **Check**. The server checks the address from itself : the certificate, the answer, and the documents of the sign-in. When every line is green, press **Use this address**.

> **Tip : HTTPS without a proxy**
>
> The [built-in web server](https://docs.apimaker.dev/v4/docs/features/built-in-web-server.html) gets a certificate for your domain by itself. Your address is then `https://api.example.com/api/mcp/<api path>`.

## Connect an AI app

Pick your app on the tab **Connect**. The steps, the button and the files come filled with your address. Below is what they say.

### Claude

Every plan of Claude can add a custom connector (Free : one). On Team and Enterprise an Owner adds it first.

1. Press **Open Claude** : Claude opens with the name and the address filled in.
2. Press **Add**. When Claude asks, press **Connect**.
3. Sign in to the admin panel and choose what Claude may do on the page **Allow access**.
4. In a chat, open the menu of tools and turn the connector on.

### ChatGPT

To change things you need ChatGPT Business, Enterprise or Edu, with developer mode on : Pro can only read. ChatGPT gets the short list of 18 tools.

1. Press **Open ChatGPT**, then press **+** and choose **Add custom MCP server**.
2. Name : your account. Server URL : your address. Authentication : **OAuth**.
3. Tick the line about the risk, press **Create as a plugin**, then **Install**.
4. Sign in and allow. In a chat type `@` and choose your account.

### Cursor / Grok Build

1. Press **Open Cursor** : it asks to install the server.
2. Or add the lines of the page to `.cursor/mcp.json`.
3. Press **Connect** next to the server, sign in and allow.

### Lovable

Lovable uses the tools in its chat while you build. A published app calls your APIs : ask the AI for `get_frontend_kit`.

1. In Lovable open **Connectors**, press **Add custom** and choose **MCP server**.
2. Name : your account. Server URL : your address. Authentication : **OAuth**.
3. Press **Add & authorize**, sign in and allow.

### Bolt

1. In Bolt press **+** in the chat box, then **Connectors**, then **Manage connectors**.
2. Press **Custom MCP server**. URL : your address. Transport type : **HTTP**. Authentication : **MCP OAuth**.
3. Press **Connect**, sign in and allow.
4. In your project press **+**, then **Connectors**, and turn the server on.

### Claude Code

```bash
claude mcp add --transport http <api path> https://api.example.com/api/mcp/<api path>
```

Then in Claude Code type `/mcp`, choose the server and press **Authenticate**.

### Codex

```bash
codex mcp add <api path> --url https://api.example.com/api/mcp/<api path>
codex mcp login <api path>
```

Codex is part of every ChatGPT plan, Free too. The terminal, the ChatGPT desktop app and the code editor share one list of servers.

### VS Code

Press **Open VS Code**, or add the lines of the page to `.vscode/mcp.json`. VS Code asks you to sign in.

### Replit

Press **Open Replit** : it opens with the server filled in. Or : **Settings → Integrations → Your integrations → Add custom → Add personal MCP server**, paste the address, **Test & save**.

### Another app

Any app which speaks MCP over Streamable HTTP works : Windsurf, Zed, Goose, the MCP Inspector, your own code.

- Kind of server : **Streamable HTTP**. Address : your address.
- Authentication : **OAuth**. The app finds the sign-in by itself from the address.

## Sign in, or a personal token

**Sign in** is the way of most apps. The app opens the page **Allow access** of your admin panel. It shows which app asks, which account, and where the browser goes back to. You choose what the app may do and for how long, then press **Allow** or **Refuse**.

An app which named itself (it registered on its own) is marked as such : allow it only if you started the connection just now. A known app (Claude, ChatGPT…) shows **Known app**.

A **personal token** suits an app without sign-in, a script, or a pipeline. Press **New personal token** on the tab **Connect** :

- Name it after the app or the script.
- Choose what it may do and how long it lives : 30, 90, 180 or 365 days.
- Limit it to some IP addresses if you like.

The token is shown once. Only its hash is kept. The commands of the app come filled with it.

```bash
curl -s https://api.example.com/api/mcp/<api path> \
  -H "Authorization: Bearer amcp_…" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

## What an app may do

| Profile | It may |
|---|---|
| **Look only** | See items, settings, table structure, reports and logs ; read rows. |
| **Builder** | Also make and change items (APIs, hooks, events, schedulers, sockets, classes, tests, websites), run code and call APIs, change tables. |
| **Operator** | Also Git pull, backups, caches, sandboxes. |
| **Everything** | Also write rows, API users and groups, and delete. |

Or tick the rights one by one. The root user can set the most any connection may get on the installation.

## Waiting for you

Some steps always wait for a person's yes, whatever the rights :

- deleting a table, a database or a column ;
- deleting rows by a filter, or changing many rows ;
- SQL that was not previewed ;
- making an API public ;
- running code on the native process ;
- API users, groups, sign-in providers ;
- account settings, backups and sandboxes.

The app tells you it waits. Open the tab **Waiting for you** : you see what it wants to do, on what, and why. A change of files shows each file and the lines which change ; **Look** compares the whole files, before and after. SQL shows the exact statement. Press **Refuse**, **Allow once**, or **Always allow this kind** for that connection. Add a note for the AI if you like. The app reads the answer and goes on.

A question nobody answers ends after a day. Change what waits in **Settings → A person's yes** : **Ask**, **Allow** or **Never** for each kind of step.

> **Warning : Rows are not undone**
>
> Undo brings back items. Rows and tables come back from a [backup](https://docs.apimaker.dev/v4/docs/features/automatic-backups.html) or a [clone of the database](https://docs.apimaker.dev/v4/docs/features/clone-database.html).

## Undo and activity

The tab **Undo** lists every change an app made to items. Press **Look** to see the differences, **Undo** to put them back.

The tab **Activity** lists every call : when, which app, which tool, on what, its result and how long it took. Press **Look** to read its input and the start of its result. Export it as CSV or JSON. **Live** reads new calls as they come.

## The data door

The address `…/api/mcp/<api path>/data` gives an app only rows and APIs, as one API user. It suits people who ask about data and change it, not build.

- You choose the API user when you allow the app. Its groups decide which tables and APIs the app reaches.
- Adding and changing rows, and deleting them, are each turned on apart.
- Its tools : `list_tables`, `describe_table`, `query_rows`, `count_rows`, `distinct_values`, `save_rows`, `update_rows`, `delete_rows`, `list_apis`, `call_api`.

## Tools, resources and prompts

The build door gives the tools of the [AI Assistant](https://docs.apimaker.dev/v4/docs/features/ai-assistant.html) : `get_overview`, `search_items`, `read_files`, `save_files`, `describe_tables`, `apply_table_change`, `call_api`, `run_tests`, `search_logs`, and more. The list follows the rights of the connection : a tool the connection may not use is not listed.

Resources : the guides of the server and the skills for AI agents (`am://guide/…`, `am://skill/…`), every item as a file (`am://item/{path}`), and the OpenAPI of an API user (`am://openapi/{apiUser}`).

Prompts : `build_an_api`, `review_my_account`, `why_did_this_fail`, `front_end_kit`.

## Settings

The tab **Settings** of an account :

| Group | Settings |
|---|---|
| General | What this server is. The profile the page **Allow access** offers first. Whether developers may connect apps. |
| A person's yes | Ask, Allow or Never for each kind of step. |
| What the AI may read | Rows. Tables never shown. Columns hidden in rows and logs. Bodies of logs. |
| Doors and limits | The build door and the data door. Calls a minute for one connection, calls at the same time. How long activity and undo are kept. |
| Mails | When a new app connects, when something waits for a yes, when many calls fail (10 in 10 minutes : one mail an hour at most). They go to you and to the addresses you add, through [Outgoing Email](https://docs.apimaker.dev/v4/docs/features/outgoing-email.html). |
| Git | Write `.mcp.json` and `.cursor/mcp.json` (no token) into the repository at the next commit. |
| Danger | Disconnect every AI app. Turn off. |

The root user's page `Dashboard → AI MCP Server` : whether accounts may turn it on, the accounts it is off for, the public API addresses and the address of the admin panel, plain HTTP on a private network, which apps may sign in, whether apps may register themselves, the sites browser apps may call from, the highest rights, the calls a minute of the installation, the connections an account may have, and every connection of every account with **Disconnect**.

## Security

- A token is bound to one address and one account. An access token lives one hour. A renew token is changed at every use : one used twice cuts the connection, since somebody holds a copy.
- Changing your password disconnects your apps : sign in again from each.
- A page of another site is refused before its token is read. Only the sites of the AI apps may call from a browser.
- Secrets show as `•••`. A key found in a text is hidden before it leaves the server.
- What an app reads goes to the company which makes it (Anthropic, OpenAI…). Keep production on **Look only**.

## When it does not work

| You see | Do this |
|---|---|
| The app says it cannot reach the server | Cloud apps need public HTTPS. Press **Check** on the tab **Connect**. |
| `421` | The app used an address this server does not know. Add it with **Check**, then **Use this address**. |
| `401` | The token ended or was removed. Sign in again from the app, or make a new token. |
| `403` | A site which is not an AI app called from a browser. The root user can add it to the sites of browser apps. |
| `429` | Too many calls a minute. Raise the limit in **Settings**. |
| The page **Allow access** says the sign-in ended | Sign-ins live 15 minutes. Connect again from the app. |
| "This address belongs to the account …" | You are signed in to another account. Sign in to the right one and connect again. |
| A tool is missing | The connection may not use it. Give more rights on the tab **Connections**, then let the app list its tools again. |

## Related

- [AI Assistant](https://docs.apimaker.dev/v4/docs/features/ai-assistant.html) : the chat of the admin panel.
- [Docs for AI assistants](https://docs.apimaker.dev/v4/docs/ai/llms.html) : what your coding assistant reads.
