local-websearch-mcp
Allows searching the public web through DuckDuckGo HTML results, providing web search and page fetching capabilities.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
local-websearch-mcp
Small Python MCP server that provides two tools:
web_search: search the public web through DuckDuckGo HTML resultsweb_fetch: fetch a page and extract readable text
No API key is required.
Requirements
Linux server or workstation
Python 3.10+
Outbound internet access for:
pip installweb searches and page fetches at runtime
Related MCP server: mcp-ddg-research
Quick install
git clone <this-repo-url> local-websearch-mcp
cd local-websearch-mcp
chmod +x install.sh
./install.shThat creates .venv/, installs the package, and runs a built-in health check.
Manual install
python3 -m venv .venv
. .venv/bin/activate
pip install --upgrade pip
pip install .
local-websearch-mcp --self-testRun
.venv/bin/local-websearch-mcpOr:
python -m local_websearch_mcp.serverMCP client config
Use the installed executable directly:
{
"mcpServers": {
"local-websearch": {
"command": "/absolute/path/to/local-websearch-mcp/.venv/bin/local-websearch-mcp"
}
}
}Health check
.venv/bin/local-websearch-mcp --self-testExpected output:
{
"server": "local-websearch",
"status": "ok",
"tools": ["web_search", "web_fetch"]
}Tools
web_search(query: str, max_results: int = 5)web_fetch(url: str, max_chars: int = 12000)
Local demo
python examples/simple_client.pyRepo contents
src/local_websearch_mcp/: MCP server and helpersexamples/: local demo clientinstall.sh: one-command local install
Notes
DuckDuckGo HTML markup can change, so selectors may need maintenance.
This server uses direct HTTP requests. Respect site terms and robots policies.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Web search API and MCP server for developers building AI agents.
A simple MCP server built with FastMCP and python
Serper MCP — wraps the Serper Google Search API (serper.dev)
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server that enables LLMs to search the web via DuckDuckGo, search GitHub code repositories, and extract clean content from web pages in LLM-friendly formats.9MIT
- AlicenseNot gradedqualityBmaintenanceLightweight MCP server for DuckDuckGo search with HTML fallback, safe webpage fetching, caching, and clean text extraction.AGPL 3.0
- AlicenseAqualityDmaintenanceA simple MCP server that provides web search functionality via DuckDuckGo, returning titles, URLs, and descriptions for results. Configurable result limit.1ISC
- AlicenseNot gradedqualityDmaintenanceMCP server that provides web search scraping from DuckDuckGo (with Mojeek fallback) and URL content fetching as markdown/text or raw HTML.1ISC