> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anchorbrowser.io/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Anchor Browser is cloud browser infrastructure for AI agents and automation: browser sessions you control over CDP or REST, natural-language web tasks, versioned automation tasks, managed authentication into third-party web apps (identities with MFA), persistent volumes and profiles, recordings, live view, batch sessions, webhooks, and network options including residential proxies, extra stealth, and captcha solving for sites that block standard browsers. The for-agents page (https://docs.anchorbrowser.io/for-agents) covers authentication and the first API calls. API keys are created at https://app.anchorbrowser.io/api-keys. Append .md to any page URL for its Markdown version. The SDKs read the API key from ANCHORBROWSER_API_KEY, and REST calls send it in the anchor-api-key header. End every session you create with DELETE /v1/sessions/{id}, because a session is billed until it ends. Location targeting, captcha solving and managed authentication need the Starter plan, and extra stealth needs the Growth plan; on the Free plan, create a session with an empty body. Plans and limits are at https://docs.anchorbrowser.io/pricing. The hosted MCP server is https://api.anchorbrowser.io/v1/mcp.

# Lovable

> Give Lovable a cloud browser: add the Anchor MCP server as a custom connector.

Connect [Lovable](https://lovable.dev) to Anchor's hosted MCP server. Lovable can then run web tasks in plain English, open cloud browser sessions and work inside accounts you have signed in to, while it builds with you in chat.

Custom MCP servers are available on all Lovable plans.

## Quick setup

**1. Open Connectors**

Choose **Add custom**, then **MCP server**.

**2. Fill in the server**

* **Server name:** `Anchor`
* **Server URL:** `https://api.anchorbrowser.io/v1/mcp`
* **Authentication:** OAuth, which is the default

![Lovable's Add MCP server form with Anchor as the server name, the Anchor MCP URL and OAuth selected](https://mintcdn.com/anchor-b3ec2715/UOwwL4_jVutgsbf6/images/integrations/lovable/add-mcp-server.png?fit=max\&auto=format\&n=UOwwL4_jVutgsbf6\&q=85\&s=bd8136cc44d5d5b454ee18f0cbca9628)

**3. Click Add & authorize**

Anchor asks whether Lovable may access your account. Choose **Allow access**. You connect to your default project.

Anchor then shows as **Connected** with a **Chat** badge and its 29 tools, split into read-only tools and write/delete tools.

![Anchor connector in Lovable showing Connected, Chat, 16 read-only tools and 13 write/delete tools](https://mintcdn.com/anchor-b3ec2715/UOwwL4_jVutgsbf6/images/integrations/lovable/connected.png?fit=max\&auto=format\&n=UOwwL4_jVutgsbf6\&q=85\&s=901fdffc744576ffa3815fc9889908d2)

By default Lovable runs read-only tools without asking and asks each time before a write/delete tool. Starting a web task or a browser session counts as a write tool, so expect an approval prompt the first time. Change this under **Manage my agent's permissions**.

If **MCP server** is grayed out, a workspace admin has turned off custom MCP for your workspace.

## Try it

Name the connector in your prompt:

```text theme={null}
Using the Anchor connector, open https://news.ycombinator.com/news show top 5 AI news
```

Lovable calls Anchor's `perform_web_task`, waits for the task to finish, and answers from the live page:

![Lovable chat calling Anchor perform\_web\_task and listing the top five AI stories on Hacker News](https://mintcdn.com/anchor-b3ec2715/UOwwL4_jVutgsbf6/images/integrations/lovable/chat-result.png?fit=max\&auto=format\&n=UOwwL4_jVutgsbf6\&q=85\&s=e4aafee6c5fc008e7e00723d7600d7e8)

## Chat only

A custom MCP connector works in the Lovable chat. It is personal to you and is **not** included in the app you publish.

If the app itself should open browsers for its users, call the Anchor API from your app's backend:

1. Create a key at [API Keys](https://app.anchorbrowser.io/api-keys) and store it as a secret named `ANCHORBROWSER_API_KEY`.
2. Ask Lovable to add a backend function that calls Anchor with that secret. Never call Anchor from frontend code, because the key would be visible to every visitor.

See [Run a task](https://docs.anchorbrowser.io/quickstart/run-a-task) for the call.

## Troubleshooting

* **MCP server is grayed out:** ask a workspace admin to enable custom MCP.
* **Authorization fails:** confirm the URL is exactly `https://api.anchorbrowser.io/v1/mcp` and that you have an Anchor account.
* **Lovable does not use the tools:** start the prompt with "Using the Anchor connector".

## Next steps

* [MCP servers and tools](https://docs.anchorbrowser.io/advanced/mcp.md): the three Anchor servers and what each tool does.
* [All integrations](https://docs.anchorbrowser.io/integrations/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.