# Connect another AI app or coding tool

Perplexity, Grok, Le Chat and the Gemini app add Page Lemon as a custom connector. Claude Code, Codex, Cursor, VS Code, Antigravity, Gemini CLI, Windsurf, Cline and Trae take one command or config block. Then your AI can publish and update your sites.

## Before you start

> **Plans:** works on every Page Lemon plan, Free included. Sign-in makes you a free account if you don't have one. Each app's own plan needs are listed below.

Using Claude or ChatGPT? See [Connect Claude](/docs/connect/claude) or [Connect ChatGPT](/docs/connect/chatgpt).

What happens at sign-in is the same everywhere: a Page Lemon page opens in your browser, you sign in with Google or your email, check what the app may do, and click **Allow**. Then go back to your app. [What you allow](/docs/connect#what-you-allow) explains the choices.

These apps change their menus from time to time. If a step looks different, look for **Connectors** or **MCP**.

## Chat apps

Perplexity, Grok and Le Chat ask for this link:

```text
https://mcp.pagelemon.com/mcp
```

### Perplexity

You need Perplexity Pro, Max or Enterprise. Add the connector on the web or in the desktop app; the mobile apps may not show it yet.

1. Open **Settings → Connectors** and add a custom connector.
2. Name it `Page Lemon` and paste the link above.
3. For authentication, choose **OAuth**, then save.
4. Click **Connect** and sign in to Page Lemon, then click **Allow**.
5. In a new chat, turn on **Page Lemon** in the sources or connectors menu.

### Grok

Works on every Grok plan, Free included (at busy times the free plan may answer "High Demand"; try again later). Add it on the web at grok.com; once added, it also works in the Grok mobile apps.

1. Open [grok.com/connectors](https://grok.com/connectors), click **New Connector**, then **Custom**.
2. Name it `Page Lemon`, paste the link above as the **Server URL** and click **Add Connector**.
3. A Page Lemon window opens: sign in, then click **Allow**.
4. In a chat, ask Grok to use Page Lemon.

### Mistral Le Chat

Works on every Le Chat plan, Free included, on the web. On Team and Enterprise plans, an admin adds connectors for everyone.

1. In Le Chat, open **Connectors** (under Intelligence in the side menu) and add a connector.
2. Choose **Custom MCP Connector**, name it `Page Lemon` and paste the link above.
3. Le Chat finds the sign-in method on its own. Click **Connect**, sign in to Page Lemon and click **Allow**.
4. In a chat, turn on **Page Lemon** in the tools menu.

You can also connect Le Chat with an [API token](/docs/api-tokens) instead of signing in. Choose header authentication and send `Authorization: Bearer pl_...` with your token. A token works until it expires (after the time you chose when you made it, 90 days unless you chose another) or you revoke it.

## Coding tools

The link for coding tools is:

```text
https://mcp.pagelemon.com/mcp
```

Until you sign in, this link can still publish new sites (they expire after 72 hours unless you keep them). Once you sign in, your AI works with all your sites.

### Claude Code

Works with any Claude plan that includes Claude Code. In a terminal:

```bash
claude mcp add --transport http pagelemon https://mcp.pagelemon.com/mcp
```

Then run `/mcp` inside Claude Code, pick **pagelemon** and sign in.

### Codex

```bash
codex mcp add pagelemon --url https://mcp.pagelemon.com/mcp
codex mcp login pagelemon
```

The second command opens Page Lemon so you can sign in. To use an [API token](/docs/api-tokens) instead, keep it in an environment variable, not in the config file.

### Cursor

Works on every Cursor plan. Add this to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (one project):

```json
{
  "mcpServers": {
    "pagelemon": {
      "url": "https://mcp.pagelemon.com/mcp"
    }
  }
}
```

Open Cursor's settings and find the MCP section (Tools and MCP in recent versions). Next to **pagelemon**, click to sign in if it asks.

### VS Code

Works with GitHub Copilot in VS Code, Copilot Free included. Add this to `.vscode/mcp.json` in your project, or run **MCP: Add Server** from the Command Palette and choose HTTP:

```json
{
  "servers": {
    "pagelemon": {
      "type": "http",
      "url": "https://mcp.pagelemon.com/mcp"
    }
  }
}
```

Click **Start** above the server in `mcp.json`. VS Code asks if Page Lemon may sign you in; allow it, then sign in. Use Copilot Chat in agent mode.

On Copilot Business or Enterprise, your organisation can turn MCP servers off. If you can't add one, ask your admin.

### Antigravity

Google's coding tool, in the Antigravity IDE and the Antigravity CLI (`agy`). Add this to `~/.gemini/config/mcp_config.json` (all projects) or `.agents/mcp_config.json` (one project):

```json
{
  "mcpServers": {
    "pagelemon": {
      "serverUrl": "https://mcp.pagelemon.com/mcp"
    }
  }
}
```

In the IDE, open the **MCP Servers** panel, click **Manage MCP Servers**, then **View raw config** to open the file. Antigravity calls the address `serverUrl`; it is not `httpUrl`.

Your AI can publish a first site with this alone. To sign in, open Agent settings, go to **Customizations** and click **Authenticate** next to **pagelemon**. Sign in to Page Lemon, click **Allow**, then paste the code Antigravity asks for. Or use an [API token](/docs/api-tokens) instead: replace the block with this, putting your token in place of `pl_...`.

```json
{
  "mcpServers": {
    "pagelemon": {
      "serverUrl": "https://mcp.pagelemon.com/mcp",
      "headers": {
        "Authorization": "Bearer pl_..."
      }
    }
  }
}
```

The file is on your computer, not in your project, when you use the first path, so the token stays out of git. Don't put a token in `.agents/mcp_config.json` in a shared project.

### Gemini CLI

Gemini CLI stopped serving personal Google accounts (the free tier, Google AI Pro and Ultra) on 18 June 2026. Those accounts now use [Antigravity](#antigravity). Gemini CLI still works with a Gemini API key or a Gemini Code Assist licence. Add this to `~/.gemini/settings.json` (all projects) or `.gemini/settings.json` (one project):

```json
{
  "mcpServers": {
    "pagelemon": {
      "httpUrl": "https://mcp.pagelemon.com/mcp"
    }
  }
}
```

Start Gemini CLI and run `/mcp auth pagelemon` to sign in. If you moved to Antigravity, `agy plugin import gemini` copies your Gemini CLI servers across; check that `pagelemon` in the new file uses `serverUrl`.

### Windsurf

Works on every Windsurf plan. On Teams plans, an admin may need to allow remote MCP servers first. Add this to `~/.codeium/windsurf/mcp_config.json`:

```json
{
  "mcpServers": {
    "pagelemon": {
      "serverUrl": "https://mcp.pagelemon.com/mcp",
      "headers": {
        "Authorization": "Bearer pl_..."
      }
    }
  }
}
```

Windsurf connects with an [API token](/docs/api-tokens): replace `pl_...` with your token. You can also open the file from Cascade's MCP menu, then refresh the server list.

### Cline and Trae

Cline and Trae connect with an [API token](/docs/api-tokens) in a header. Create one first, then add Page Lemon to the tool's MCP settings.

In Cline, open the MCP Servers panel and edit the settings file (`cline_mcp_settings.json`):

```json
{
  "mcpServers": {
    "pagelemon": {
      "type": "streamableHttp",
      "url": "https://mcp.pagelemon.com/mcp",
      "headers": {
        "Authorization": "Bearer pl_..."
      }
    }
  }
}
```

In Trae, open MCP in the settings, choose to add a server manually, and paste:

```json
{
  "mcpServers": {
    "pagelemon": {
      "url": "https://mcp.pagelemon.com/mcp",
      "headers": {
        "Authorization": "Bearer pl_..."
      }
    }
  }
}
```

Replace `pl_...` with your token. These settings files are on your computer, not in your project, so the token stays out of git. When a token expires (after the time you chose when you made it, 90 days unless you chose another), make a new one and paste it in.

## The Gemini app

The Gemini app (gemini.google.com) adds Page Lemon as a custom app, on the web, then it works in the Gemini mobile app too. Google says it needs a personal Google Account (not work or school), age 18 or over, and Keep Activity on; its help page also says US and English only, but the option showed for us on a UK Google AI Plus account. If you don't see **Custom**, use [Antigravity](#antigravity), or ask Gemini for your site as one complete page, copy the code and [paste it on pagelemon.com/publish](/publish).

1. Open [gemini.google.com/customize/connectors](https://gemini.google.com/customize/connectors) (on a phone, use the browser, not the app). Or tap **Menu → Settings → Connected apps**.
2. Click **Custom**, paste `https://mcp.pagelemon.com/mcp` as the **MCP server URL** and click **Next**.
3. Read Google's note, tick the box and click **Connect**.
4. A Page Lemon page opens: sign in, then click **Allow**.
5. In a chat, type `@`, pick **Page Lemon**, and ask for your site. Gemini asks you to confirm before it changes anything.

## Use a token instead of signing in

Any tool here can use an [API token](/docs/api-tokens) instead of signing in, for example on a server with no browser. Send it as a header: `Authorization: Bearer pl_...`. For Claude Code:

```bash
claude mcp add --transport http pagelemon https://mcp.pagelemon.com/mcp --header "Authorization: Bearer pl_..."
```

Never put a token in a file you commit, such as `.cursor/mcp.json` or `.vscode/mcp.json` in a shared project.

## Other apps

Any app that supports remote MCP servers over streamable HTTP can connect. The addresses and sign-in details are in [MCP server and tools](/docs/mcp).

## Check it works

```prompt
What sites do I have on Page Lemon?
```

If your AI lists your sites, it's connected and signed in. Then ask it to publish your site.

## If something goes wrong

| What you see | What to do |
|---|---|
| A chat app doesn't mention Page Lemon or its tools | Turn the connector on in the chat's tools or connectors menu, then start a new chat |
| You can't find where to add a connector | Check your plan in that app. On work plans, ask your admin |
| A coding tool doesn't show Page Lemon's tools | Check the JSON is valid (no trailing commas), save the file, then restart the tool or refresh its MCP list |
| The sign-in page doesn't open | Start the sign-in again from the tool (`/mcp` in Claude Code, **Authenticate** in Antigravity's settings, `/mcp auth pagelemon` in Gemini CLI, the server entry in Cursor or VS Code) |
| Sign-in stalls or says "We couldn't connect this app" | The sign-in link is only valid for a few minutes. Start again from the tool. If it still fails, use an API token instead |
| `401` errors with a token | The token is wrong, expired or revoked. Make a new one on the Get started page |
| Your AI says it needs permission to manage | The manage switch was off. Connect again and turn it on, or make that change yourself in the Page Lemon app |

Still stuck? See [Fix a problem](/docs/fix-a-problem) or email [support@pagelemon.com](mailto:support@pagelemon.com) and say which app you use.

## Disconnect

Open [dash.pagelemon.com/account/tokens](https://dash.pagelemon.com/account/tokens) (**Settings** → **API tokens & AI apps**) and click **Disconnect** next to the app. It's signed out at once and your sites stay online. Then remove the connector in the app, or the `pagelemon` entry from the tool's settings.
