afo-visual-browser-subagent-mcp
Cloudflare-native MCP server for visual evidence and browser investigation, providing deterministic screenshot capture, snapshot generation, and signed artifact retrieval with receipt logging.
README
AFO Visual Browser Sub-Agent MCP
Cloudflare-native visual evidence and browser-investigation service. The current release is deliberately public, read-only, deterministic, and receipt-first.
Phase 1 tools
visual_browser_statuscapture_screenshotcapture_snapshotcapture_multi_viewportenqueue_visual_auditget_visual_receiptget_visual_artifactcreate_visual_artifact_url
Capture reliability behavior
capture_screenshot is a true screenshot-only path. It captures and stores the PNG plus a minimal manifest, navigation timing, page metadata, and cheap console/network counts. It does not call page.content(), generate Markdown, request an accessibility snapshot, serialize full console/network artifacts, or create embeddings.
capture_snapshot and capture_multi_viewport retain the richer evidence pipeline. Text artifacts are limited by encoded UTF-8 byte size, and optional artifact truncation or failure is recorded in artifact_summary and warnings without invalidating a successfully stored screenshot. Successful runs with optional evidence warnings report status: "ok_with_warnings".
Artifact access behavior
get_visual_artifact retrieves only artifacts registered in a persisted run manifest. Callers provide run_id or investigation_id, an artifact_type, and optional viewport and response_mode. Arbitrary object_key, key, and r2_key inputs are rejected.
Small PNGs can be returned as native MCP image content with base64 data and MIME type. Text and JSON evidence is returned inline only below conservative limits. Oversized artifacts return metadata, byte size, SHA-256, and requires_url: true. Sensitive URL query values are redacted before text evidence is returned.
create_visual_artifact_url creates a manifest-bound HMAC-SHA-256 URL with a 10-minute default TTL and a 60-minute maximum. The signed claim covers run ID, artifact type, viewport, and expiry. The private route streams only the R2 object registered by the persisted manifest, returns Cache-Control: private, no-store, and fails closed with HTTP 403 for expiry, tampering, traversal, substitutions, unknown runs, or absent artifacts.
Required initial bindings
- Browser Rendering:
BROWSER - Workers AI:
AI - D1:
DB - R2:
RECEIPTS - Vectorize:
VECTORIZE - Queues:
AUDIT_QUEUE - Analytics Engine:
ANALYTICS - Worker secret:
ARTIFACT_SIGNING_SECRET(minimum 32 characters; never commit its value)
Vectorize, Queues, and Analytics Engine are foundational requirements, not optional roadmap items.
Security boundary
The Worker accepts public https: URLs only. Localhost, private IPv4 ranges, link-local ranges, and private IPv6 ranges are blocked. Query parameters that look like credentials are redacted from receipts.
Before deployment
- Create the D1 database, R2 bucket, Vectorize index, producer/consumer queue, dead-letter queue, and Analytics Engine dataset.
- Confirm the D1 database ID and all binding names in
wrangler.jsonc. - Add
CLOUDFLARE_API_TOKEN,CLOUDFLARE_ACCOUNT_ID, andARTIFACT_SIGNING_SECRETto GitHub Actions or the local environment. - Install
ARTIFACT_SIGNING_SECRETwithwrangler secret put ARTIFACT_SIGNING_SECRET; never place it inwrangler.jsonc, logs, receipts, D1, or analytics. - Apply D1 migrations.
- Run
npm install,npm run check, andnpm test. - Deploy and verify
/status,/tools, MCP initialization, direct artifact retrieval, signed URL retrieval, strict headers, expiry rejection, and component-tampering rejection against persisted Link Lane evidence.
See ROADMAP.md for the complete build order.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。