worker-mcp
Provides web search capabilities via SearXNG, allowing users to perform searches through a SearXNG instance.
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., "@worker-mcpsearch for MCP server best practices"
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.
worker-mcp
A high-performance MCP (Model Context Protocol) server running on Cloudflare Workers/Pages edge computing platforms.
Features
Web Dashboard - Visual interface to browse and test MCP tools
MCP Protocol - Full JSON-RPC 2.0 support over HTTP/SSE
Built-in Tools:
add- Simple addition calculatorsearxng_web_search- Web search via SearXNGweb_url_read- Fetch and read URL contentsequentialthinking- Structured problem-solving tool
Related MCP server: Remote MCP Server
Getting Started
Install Dependencies
npm installLocal Development
# Cloudflare Workers (recommended)
npm run dev
# Or Cloudflare Pages
npm run dev:pagesOpen http://localhost:8787 in your browser to see the dashboard.
Connect MCP Inspector
Use MCP Inspector to test your server:
npx @modelcontextprotocol/inspectorConfigure the inspector:
Transport Type: SSE
URL:
http://localhost:8787/mcp
After connecting, you should see your available tools and be able to call them.
Connect to Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"worker-mcp": {
"command": "npx",
"args": ["-y", "mcp-remote", "http://localhost:8787/mcp"]
}
}
}Deployment
Cloudflare Workers (Recommended)
npm run deployCloudflare Pages
npm run deploy:pagesEnvironment Variables
Variable | Required | Description |
| No | API key for MCP endpoint authentication |
Project Structure
worker-mcp/
├── src/
│ ├── index.ts # Workers entry point
│ ├── app.ts # Hono web app (dashboard)
│ ├── server.ts # MCP request handler
│ └── tools/ # MCP tool implementations
│ ├── index.ts
│ ├── add.ts
│ ├── web-search.ts
│ ├── web-url-read.ts
│ └── sequentialthinking.ts
├── pages/
│ ├── _worker.ts # Pages Functions entry point
│ └── _routes.json # Pages routing config
├── static/ # Static assets (dashboard UI)
├── wrangler.jsonc # Workers configuration
├── package.json
└── biome.json # Code formatting/lintingAPI Endpoint
Endpoint | Method | Description |
| GET | Web dashboard |
| POST | MCP JSON-RPC 2.0 endpoint |
MCP Endpoint
URL: https://your-worker.workers.dev/mcp
Authentication (if API_KEY is set):
# Via header
curl -H "Authorization: Bearer YOUR_API_KEY" https://your-worker.workers.dev/mcp
# Or via query parameter
curl https://your-worker.workers.dev/mcp?apiKey=YOUR_API_KEYTroubleshooting
Clear MCP auth cache
rm -rf ~/.mcp-authCheck logs
npx wrangler tailLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Cloudflare Workers MCP server: ai-agent-scratchpad
Cloudflare Workers MCP server: ai-prompt-optimizer
Cloudflare Workers MCP server: llm-output-quality-monitor
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA deployable MCP server on Cloudflare Workers that enables using custom tools with AI models without requiring authentication.-
- FlicenseNot gradedqualityCmaintenanceA Cloudflare Workers-based MCP server that enables deployment of custom tools accessible via the Model Context Protocol without authentication requirements.-
- FlicenseNot gradedqualityDmaintenanceA deployable MCP server on Cloudflare Workers that allows you to create and expose custom AI tools without requiring authentication.-
- -licenseNot gradedqualityNot gradedmaintenanceA Cloudflare Workers-based MCP server that allows users to deploy and customize tools without authentication requirements, compatible with Cloudflare AI Playground and Claude Desktop.-