Websearch
FreeNot checkedWeb search tool using Serper API (primary) with DuckDuckGo fallback on error or empty results.
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
Install Websearch in Claude Desktop, Claude Code & Cursor
unyly install websearchInstalls 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_toolFAQ
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
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Websearch with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
