gomcp-worker
Provides a web search tool using DuckDuckGo, allowing AI agents to perform internet searches directly through the MCP server.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gomcp-workersearch for typescript tutorials"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
gomcp-worker
Cloudflare Workers 版本的 gomcp(Lightpanda Browser 的 MCP Server)。这次总算把最致命的坑补上了,不再是那种“接口能回 200,但灵魂已经离职”的半成品。
功能特性
✅ 支持 MCP 协议版本
2025-03-26✅ Streamable HTTP JSON-RPC
✅
initialize分配会话,后续请求强制复用Mcp-Session-Id✅ Durable Objects 会话生命周期管理(关闭/过期后返回
404)✅ 根 CDP WebSocket 自动
Target.createTarget+Target.attachToTarget✅
resources/list/prompts/list空响应兼容✅
notifications/cancelled使用正确的requestId✅ 工具执行失败按
result.isError返回✅ Workers 兼容的 HTML → Markdown 转换(优先纯解析库,失败时回退轻量转换器)
✅ 轻量 SSE 握手入口:
GET /mcp/GET /sse
Related MCP server: Remote MCP Server Authless
可用工具
工具 | 描述 | 必需参数 |
| 导航到指定 URL |
|
| 使用 DuckDuckGo 搜索 |
|
| 获取当前页面 Markdown | — |
| 提取当前页面链接 | — |
部署
1. 安装依赖
npm install2. 配置密钥
wrangler secret set CDP_URL示例值:
wss://your-lightpanda-instance:9222
CDP_URL应指向 浏览器根 WebSocket。Worker 会在连上后自动创建 target 并 attach,不需要你手搓 page session。
3. 本地开发
npm run dev4. 部署到 Cloudflare
npm run deploy注意:
wrangler.toml已包含MCPSession的 Durable Object migration。后续如重命名 Durable Object 类,必须继续追加 migration,而不是修改已有 tag。
MCP 客户端示例
{
"mcpServers": {
"lightpanda": {
"url": "https://your-worker.workers.dev/mcp"
}
}
}直接调用示例
1. 初始化并拿到 Mcp-Session-Id
curl -i -X POST https://your-worker.workers.dev/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"initialize","params":{},"id":1}'2. 带上 Mcp-Session-Id 调用后续方法
curl -X POST https://your-worker.workers.dev/mcp \
-H "Content-Type: application/json" \
-H "Mcp-Session-Id: <session-id-from-initialize>" \
-d '{"jsonrpc":"2.0","method":"tools/list","params":{},"id":2}'说明
initialize会返回新的Mcp-Session-Id;后续tools/list/ping/tools/call/GET /mcp/DELETE /mcp都必须带上它。GET /mcp和GET /sse是轻量 SSE 握手入口,不负责旧版/messages传输。initialize/tools/list/ping/resources/list/prompts/list不依赖 CDP;只有tools/call需要连接浏览器。resources/list和prompts/list当前返回空数组,这是故意的,不是服务器在摆烂——虽然看起来很像。
许可证
Apache-2.0
This server cannot be deployed
Maintenance
Related MCP Connectors
Cloudflare Workers MCP server: ai-agent-scratchpad
Cloudflare Workers MCP server: blog
Cloudflare Workers MCP server: interactive-api-playground
Cloudflare Workers MCP server: ai-eval
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI assistants to perform web automation tasks such as navigation, clicking, and taking screenshots by running Playwright on Cloudflare Workers. It allows models to interact with the web through a set of browser control tools across platforms like Claude Desktop and GitHub Copilot.-
- FlicenseNot gradedqualityDmaintenanceA remote MCP server deployable on Cloudflare Workers without authentication, providing tools for website scraping and content extraction using Cloudflare's Browser Rendering and AI.1-
- FlicenseNot gradedqualityCmaintenanceA remote MCP server deployed on Cloudflare Workers without authentication, enabling integration with AI Playground and Claude Desktop.-
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to automate browser interactions using Playwright and Cloudflare Workers, supporting tasks like navigation, clicking, typing, and screenshots.4,799 npmApache 2.0