gomcp-worker
Provides a web search tool using DuckDuckGo, allowing AI agents to perform internet searches directly through the MCP server.
Click on "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/qoomezhu/gomcp-worker'
If you have feedback or need assistance with the MCP directory API, please join our Discord server