Skip to main content
Connect OpenClaw to Anchor’s hosted MCP server. Your agents can then run web tasks in plain English, open cloud browser sessions and work inside accounts you have signed in to. The browser runs in Anchor’s cloud, so nothing is installed on the machine that hosts OpenClaw. Tested with OpenClaw 2026.6.35 and 2026.12.1.

Quick setup

Register the server:
Sign in. This takes two steps, because OpenClaw’s CLI finishes sign-in with a code:
  1. Open the link and choose Allow access on the Anchor page.
  2. Your browser then goes to http://127.0.0.1:8989/oauth/callback?code=... and shows a connection error. That is expected. Copy the value of code from the address bar.
  3. Finish the sign-in with that code:
You are now connected to your default Anchor project. Each run of openclaw mcp login anchor prints a new link, and only the latest one works, so use the code quickly. Check that the server answers and lists its tools:
Saving a server does not prove it is reachable, so run the probe before handing it to an agent. You can also add it in the Control UI: Settings, MCP, Configured servers, Add server, and pick Streamable HTTP.

Use an API key instead

An always-on agent usually has no browser to sign in with. Send an API key instead. Create one at API Keys, make it available to OpenClaw as ANCHORBROWSER_API_KEY, and add the server with a header:
Keep the single quotes so the variable name, not the key, is saved. OpenClaw connects to the server before saving, so a wrong key fails here. The command writes this to ~/.openclaw/openclaw.json:
Leave auth: "oauth" out of this entry. Use one method per server, either sign-in or the header.
Use ${ANCHORBROWSER_API_KEY} rather than pasting the key. openclaw mcp doctor warns about secrets written into the config file.

Try it

Ask your agent:
The second prompt is the pattern for work inside an account: you sign in once through the link, and the agent uses the session without ever seeing the password.

Troubleshooting

  • The probe fails: run openclaw mcp doctor anchor --probe, then openclaw mcp show anchor to confirm the URL and transport.
  • requires OAuth authorization from the probe: the sign-in is not finished. Run openclaw mcp login anchor again and complete it with --code.
  • The code is rejected: it has expired or belongs to an older link. Run openclaw mcp login anchor for a fresh link.
  • No browser on the host: open the link on any other machine, copy the code from its address bar, and run the --code command on the host. Or use the API key setup.
  • 401 Unauthorized: confirm ANCHORBROWSER_API_KEY is set in the environment OpenClaw runs in, not only in your own shell.
  • Too many tools in context: limit the server to the tools you need with --include, for example --include 'perform_web_task,get_web_task_status,create_session,end_session'.

Next steps