> ## 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.

# Amp

> Give Amp a cloud browser: connect the Anchor MCP server from the CLI or your Amp settings file.

Connect [Amp](https://ampcode.com) to Anchor's hosted MCP server. Amp can then run web tasks in plain English, open cloud browser sessions and work inside accounts you have signed in to.

Tested with Amp CLI released 2026-12-02.

## Quick setup

Add the server from the terminal:

```bash theme={null}
amp mcp add anchor https://api.anchorbrowser.io/v1/mcp
```

Start Amp. It opens the Anchor sign-in in your browser and connects to your default project.

Check the connection:

```bash theme={null}
amp mcp doctor
```

```text theme={null}
anchor (user settings): connected (29 tools: perform_web_task, get_web_task_status, search_action_index, ...)
```

## Config file

The command writes this to your Amp settings (`~/.config/amp/settings.json`). You can also add it by hand:

```json theme={null}
{
  "amp.mcpServers": {
    "anchor": {
      "url": "https://api.anchorbrowser.io/v1/mcp"
    }
  }
}
```

To share the server with a repository, put the same block in `.amp/settings.json` at the project root. Amp asks each person to approve a workspace server once:

```bash theme={null}
amp mcp approve anchor
```

## Try it

```text theme={null}
Use Anchor to open https://books.toscrape.com and return the title and price of the first three books.
```

```text theme={null}
A Light in the Attic — £51.77
Tipping the Velvet — £53.74
Soumission — £50.10
```

```text theme={null}
Create an Anchor identity for https://linkedin.com and give me a link to sign in.
```

## Troubleshooting

* **Server does not connect:** run `amp mcp doctor` and confirm the URL is exactly `https://api.anchorbrowser.io/v1/mcp`.
* **`awaiting approval`:** the server comes from a workspace settings file. Run `amp mcp approve anchor`.

## 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.