Back to Browse

Surfbird MCP Server

Developer ToolsLow Risk9.7MCP RegistryLocal
Free

Server data from the Official MCP Registry

Self-hosted Kitesurf headless browser: markdown, screenshots, PDF, evaluate, batch.

About

Self-hosted Kitesurf headless browser: markdown, screenshots, PDF, evaluate, batch.

Security Report

9.7
Low Risk9.7Low Risk

Valid MCP server (2 strong, 4 medium validity signals). No known CVEs in dependencies. ⚠️ Package registry links to a different repository than scanned source. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

12 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

file_system

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

network_websocket

Check that this permission is expected for this type of plugin.

database

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

What You'll Need

Set these up before or after installing:

Base URL of the Surfbird auth-image REST proxyOptional

Environment variable: SURFBIRD_URL

Bearer token matching SURFBIRD_TOKEN on the containerRequired

Environment variable: SURFBIRD_TOKEN

Per-tool timeout in millisecondsOptional

Environment variable: SURFBIRD_TIMEOUT_MS

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "surfbird-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "surfbird-mcp"
      ],
      "env": {
        "SURFBIRD_URL": "your-surfbird-url-here",
        "SURFBIRD_TOKEN": "your-surfbird-token-here",
        "SURFBIRD_TIMEOUT_MS": "your-surfbird-timeout-ms-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

Surfbird

English | 中文 | github.com/terry2010/surfbird

Kitesurf, self-hosted. An unofficial Docker distribution of Cloudflare Kitesurf — the experimental browser engine built for AI agents.

Not affiliated with or endorsed by Cloudflare. Kitesurf is Apache-2.0 licensed.

Kitesurf parses HTML, applies CSS, runs page JavaScript and renders screenshots — no Chrome, no browser container — and speaks CDP, so Puppeteer/Playwright connect as usual. Upstream only supports wrangler dev locally or deploying to Cloudflare Workers (paid). Surfbird packages it for any VPS.

Images

TagContentsUse
terry2010/surfbird:rawengine only, :8787local / behind your own gateway
terry2010/surfbird:authengine + token auth proxy + optional TLS, :8080one-command, exposed
terry2010/surfbird:latest= :authconvenience default

Images auto-build daily when upstream cuts a new tag; per-tag pins like terry2010/surfbird:auth-2026.11.8 are also published. Arch: linux/amd64 only (the engine is built with Bazel for amd64) — ARM hosts need qemu emulation (slow) or a native build via Dockerfile.prebuilt.

Quick start

# raw — engine only, no auth. Bind loopback/internal only!
docker run -d -p 127.0.0.1:8787:8787 terry2010/surfbird:raw

# auth — one command, token + REST actions
docker run -d -p 127.0.0.1:8080:8080 -e SURFBIRD_TOKEN=$(openssl rand -hex 24) terry2010/surfbird:auth

Usage

CDP (Puppeteer / Playwright / chrome-devtools-mcp):

puppeteer.connect({
  browserWSEndpoint: "ws://<host>:8787/devtools/browser",       // raw
  // or auth image:
  browserWSEndpoint: "ws://<host>:8080/devtools/browser",
  headers: { Authorization: "Bearer <token>" },
});

REST (auth image only):

curl -H "Authorization: Bearer $TOKEN" \
     -d '{"url":"https://zhuikan.com/repos/terry2010__surfbird","fullPage":true}' \
     http://<host>:8080/screenshot -o page.png

curl -H "Authorization: Bearer $TOKEN" \
     -d '{"url":"https://zhuikan.com/repos/terry2010__surfbird"}' \
     http://<host>:8080/markdown | jq -r .markdown

Endpoints: POST /screenshot | /pdf | /content | /source | /markdown | /evaluate | /batch (one action over up to MAX_BATCH_URLS urls, per-item results), GET /health, GET /openapi.json. /content returns the post-JS rendered DOM; /source returns the original response body ("view source"). Every POST body also accepts waitUntil (page-load strategy, default load). All other paths transparently proxy to the engine (landing page, /json/*, /rbi/*).

JS/TS client: surfbird on npm — new Surfbird(url,{token}).markdown(u) etc., plus sb.batch(action, urls).

MCP (Model Context Protocol)

Two ways to plug Surfbird into an MCP-capable agent (Claude Code, Cursor, Windsurf, …):

A. surfbird-mcp — thin wrapper (recommended). Exposes our REST actions as MCP tools — including surf_markdown and surf_batch, which stock browser MCPs don't have:

{
  "mcpServers": {
    "surfbird": {
      "command": "npx",
      "args": ["-y", "surfbird-mcp"],
      "env": {
        "SURFBIRD_URL": "http://<host>:8080",
        "SURFBIRD_TOKEN": "<token>"
      }
    }
  }
}

Tools: surf_markdown surf_content surf_source surf_screenshot surf_pdf surf_evaluate surf_batch surf_health.

B. chrome-devtools-mcp — full CDP surface. Points straight at the proxied WebSocket (/devtools/browser passes through with Bearer auth) — more tools, more moving parts. See upstream docs; if your client can't send custom WS headers, run a raw image on a private network instead.

No MCP at all? The REST layer is agent-friendly on its own — skills/surfbird/SKILL.md is a drop-in skill that teaches any agent to drive it with curl.

Agent plugins

Purpose-built plugins that drive a Surfbird (or upstream Kitesurf) endpoint over CDP "like a person" — 28 surfbird_* tools each: tab management, navigation, semantic snapshots with element refs, click/fill/type, waits, JS evaluation, screenshots/PDF, console & network inspection, and WebMCP. Every agent session owns an isolated browser.

All three share the same host-independent CDP core and work against the auth image (Bearer token) or raw image (loopback/private networks only).

Examples

examples/ — zero-dep Python client (rss_to_markdown.py builds a feed→markdown digest for LLM daily reports) and bash/curl scripts.

Env

VarDefaultMeaning
SURFBIRD_TOKEN—bearer token. auth mode refuses to start without it
SURFBIRD_PORT8080proxy listen port
TLS_CERT_PATH / TLS_KEY_PATH—mount certs → HTTPS. Want auto-ACME? put Caddy outside
REST_TIMEOUT_MS120000per-action timeout
MAX_CONCURRENT_ACTIONS2in-flight REST actions cap (each ≈ an engine isolate)
MAX_BATCH_URLS20max urls per /batch call
MAX_BODY_BYTES4194304REST request body cap (413 beyond)
SURFBIRD_INSPECTOR—1 opens the workerd debug inspector on :9229 (loopback, debugging only)
SURFBIRD_URL_ALLOWLIST—comma-separated regexes — if set, only matching urls may be fetched
SURFBIRD_URL_BLOCKLIST—comma-separated regexes — refuse matching urls (e.g. 169\.254\.|,^http://localhost)
ENGINE_HOST / ENGINE_PORT127.0.0.1 / 8787engine endpoint the proxy dials (auth image — the in-container default needs no change)
ENGINE_READY_TIMEOUT_MS120000startup wait for engine before proxy listens
SURFBIRD_MODEper targetraw / auth

GET /health is unauthenticated and returns 200 only when the engine answers — safe for LB probes. If either process dies, the container exits; use --restart unless-stopped.

Bound to loopback above — reach a remote instance via SSH tunnel (ssh -L 8080:127.0.0.1:8080 user@vps) or a TLS reverse proxy. An exposed engine is a request-making machine on your VPS: token + firewall/TLS are the minimum, never expose raw.

Building

# A) full in-image build (needs ~4GB+ RAM, CI machines):
docker build -f Dockerfile --target raw  -t surfbird:raw .
docker build -f Dockerfile --target auth -t surfbird:auth .

# B) from a locally-built checkout (low-resource hosts):
./scripts/smoke-test.sh            # stages a real ctx via tar (symlinks won't work — Docker can't COPY through them)
# or manually:
mkdir -p ctx/kitesurf && tar -C /path/to/kitesurf --exclude='*/node_modules' --exclude='*/.git' -cf - . | tar -C ctx/kitesurf -xf -
cp -r proxy ctx/proxy && cp entrypoint.sh Dockerfile.prebuilt ctx/
docker build -f ctx/Dockerfile.prebuilt ctx -t surfbird:raw

Pin upstream: --build-arg KITESURF_REF=<commit|tag> (Dockerfile A). Engine patches: drop .patch files into patches/, applied after clone.

Limits (from upstream, not Surfbird's fault)

  • Experimental engine (Boa JS) — heavy-JS sites may render imperfectly
  • No touch/drag gestures, no video decode, no browser-style file downloads
  • DevTools frontend excluded from builds (China-network-safe); use CDP
  • Auth image adds a token gate — it is not a hardened multi-tenant boundary

License

Apache-2.0. Kitesurf © Cloudflare, Inc. See upstream NOTICE.

Reviews

No reviews yet

Be the first to review this server!