ZincCarbonWebSearch is an MCP server that allows to websearch by Playwright
1.1K
An MCP (Model Context Protocol) server that performs web searches using Playwright. Supports Google and DuckDuckGo; DuckDuckGo is used as the primary engine, with Google as a fallback.
Github: https://github.com/farukcan/ZincCarbonWebSearch
If Chrome is not available on the system, Playwright will use its own Chromium. You can install it with
npx playwright install chromium.
npm install
npm run build
node dist/index.js
# Default port: 3000
node dist/index.js --http
# Custom port
node dist/index.js --http --port 8080
In HTTP mode, the endpoint is: POST http://localhost:3000/mcp
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/full/path/ZincCarbonWebSearch/dist/index.js"]
}
}
}
First, start the server:
node dist/index.js --http --port 3000
Then add to ~/.cursor/mcp.json:
{
"mcpServers": {
"web-search": {
"url": "http://localhost:3000/mcp"
}
}
}
In HTTP mode, the server must always be running. In Stdio mode, Cursor automatically starts and manages the server.
Start the server with Docker, then connect via HTTP:
docker run -p 3000:3000 farukcan/zinc-carbon-web-search
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"web-search": {
"url": "http://localhost:3000/mcp"
}
}
}
searchPerforms a web search.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | ✓ | Search query |
limit | number | — | Maximum number of results (default: 5, max: 10) |
engine | string | — | Search engine: auto | duckduckgo | google (default: auto) |
Engine behavior:
| Value | Description |
|---|---|
auto | Tries DuckDuckGo first, falls back to Google if 0 results or error |
duckduckgo | Uses only DuckDuckGo |
google | Uses only Google |
Note: Google often blocks headless Chrome with CAPTCHA. The
autoandduckduckgoare recommended.
Example output:
[
{
"title": "Playwright - Fast and reliable end-to-end testing",
"url": "https://playwright.dev",
"description": "Playwright enables reliable end-to-end testing for modern web apps."
}
]
The image is available on Docker Hub and can be used directly:
# Pull and run (HTTP mode on port 3000)
docker run -p 3000:3000 farukcan/zinc-carbon-web-search
# Run with custom port
docker run -p 8080:8080 farukcan/zinc-carbon-web-search node dist/index.js --http --port 8080
# Build
docker build -t zinc-carbon-web-search .
# Run
docker run -p 3000:3000 zinc-carbon-web-search
The Docker image uses a multi-stage build with node:22-slim and installs only the Chromium browser via Playwright. The --http mode is the default entrypoint.
src/
├── index.ts — Entry point; transport selection (stdio / HTTP), graceful shutdown
├── server.ts — McpServer creation, search tool registration
└── search.ts — SearchService; Playwright browser management, Google/DuckDuckGo scraping
| Script | Description |
|---|---|
npm run build | Compile TypeScript (to dist/) |
npm start | Start in stdio mode |
npm run start:http | Start in HTTP mode (port 3000) |
Content type
Image
Digest
sha256:e0f3433e2…
Size
487.5 MB
Last updated
6 months ago
docker pull farukcan/zinc-carbon-web-search