Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Websearch

FreeNot checked

Web search tool using Serper API (primary) with DuckDuckGo fallback on error or empty results.

GitHubEmbed

About

Web search tool using Serper API (primary) with DuckDuckGo fallback on error or empty results.

README

Web search tool with two interfaces sharing one core. Serper primary, DuckDuckGo fallback (on error or empty results).

Install

uv pip install -e .   # or: pip install -e .
export SERPER_API_KEY=<your-key>

HTTP API

uvicorn websearch.http_api:app --port 8000
curl "http://127.0.0.1:8000/search?q=anthropic+claude&num=5"
Endpoint Params Response
GET /search q (str), num (1-50, default 10) {query, source, results[]}
GET /health {status}

source is serper or ddg. Each result has title, url, snippet.

MCP Server

python -m websearch.mcp_server   # stdio transport

Exposes one tool: web_search(query: str, num: int = 10).

MCP client config:

{
  "mcpServers": {
    "websearch": {
      "command": "python",
      "args": ["-m", "websearch.mcp_server"],
      "env": { "SERPER_API_KEY": "<your-key>" }
    }
  }
}

Library

from websearch import search
resp = search("anthropic claude", num=5)   # reads SERPER_API_KEY from env

from github.com/Jinddddd/websearch_tool

Install Websearch in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install websearch

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add websearch -- uvx --from git+https://github.com/Jinddddd/websearch_tool websearch_tool

FAQ

Is Websearch MCP free?

Yes, Websearch MCP is free — one-click install via Unyly at no cost.

Does Websearch need an API key?

No, Websearch runs without API keys or environment variables.

Is Websearch hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install Websearch in Claude Desktop, Claude Code or Cursor?

Open Websearch on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Websearch with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs