Integration

Use browser.city in Windsurf via MCP (remote server)

Configure browser.city as an MCP server in Windsurf so your agent can browse, click, and extract markdown with real remote browsers.

Windsurf supports MCP servers. browser.city runs a hosted MCP endpoint, so you can give Windsurf real browser tools without running a local server.

1) Set your API key

Set BROWSERCITY_API_KEY in your environment.

2) Add browser.city to Windsurf MCP config

Edit:

  • ~/.codeium/windsurf/mcp_config.json

Add a remote server entry:

{
  "mcpServers": {
    "browsercity": {
      "serverUrl": "https://mcp.browser.city/mcp",
      "headers": {
        "Authorization": "Bearer $BROWSERCITY_API_KEY"
      }
    }
  }
}

Notes:

  • Keep secrets out of the file by using env vars ($BROWSERCITY_API_KEY).
  • After changing the config, restart Windsurf so it reloads MCP servers.

3) Try it

Ask Windsurf:

Open a browser with browsercity, navigate to a page, and return its markdown.

4) Practical tip: use REST for pure extraction

If you just need markdown and don’t need interaction, the Request API is cheaper and simpler than tool-driving:

request.ts
const res = await fetch("https://api.browser.city/v1/requests", {  method: "POST",  headers: { Authorization: `Bearer ${process.env.BROWSERCITY_API_KEY}`, "Content-Type": "application/json" },  body: JSON.stringify({ url: "https://example.com", markdown: true }),}).then((r) => r.json());console.log(res.content);
[ 06 / 06 ] — Get Started

Give your AI agents the web.

Start for free. No credit card required. Private sessions by default.