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
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.
What You'll Need
Set these up before or after installing:
Environment variable: SURFBIRD_URL
Environment variable: SURFBIRD_TOKEN
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 GitHubFrom 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
| Tag | Contents | Use |
|---|---|---|
terry2010/surfbird:raw | engine only, :8787 | local / behind your own gateway |
terry2010/surfbird:auth | engine + token auth proxy + optional TLS, :8080 | one-command, exposed |
terry2010/surfbird:latest | = :auth | convenience 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.
- dsh-control-surfbird-for-kitesurf — for DSH agents; settings UI, encrypted token file, install via
dsh plugin install dsh-control-surfbird-for-kitesurf - opencode-control-surfbird-for-kitesurf — for OpenCode (desktop app + TUI, with a built-in settings page/dialog); install via
opencode plugin add opencode-control-surfbird-for-kitesurf - pi-control-surfbird-for-kitesurf — for the Pi coding agent; settings via
/surfbird-settings, install viapi install pi-control-surfbird-for-kitesurf
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
| Var | Default | Meaning |
|---|---|---|
SURFBIRD_TOKEN | — | bearer token. auth mode refuses to start without it |
SURFBIRD_PORT | 8080 | proxy listen port |
TLS_CERT_PATH / TLS_KEY_PATH | — | mount certs → HTTPS. Want auto-ACME? put Caddy outside |
REST_TIMEOUT_MS | 120000 | per-action timeout |
MAX_CONCURRENT_ACTIONS | 2 | in-flight REST actions cap (each ≈ an engine isolate) |
MAX_BATCH_URLS | 20 | max urls per /batch call |
MAX_BODY_BYTES | 4194304 | REST 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_PORT | 127.0.0.1 / 8787 | engine endpoint the proxy dials (auth image — the in-container default needs no change) |
ENGINE_READY_TIMEOUT_MS | 120000 | startup wait for engine before proxy listens |
SURFBIRD_MODE | per target | raw / 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!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
