Web Engine
FreeMaintainedPrivacy-First, Self-Hostable & SSRF-Hardened MCP Server & Web Engine for AI Agents
About
Privacy-First, Self-Hostable & SSRF-Hardened MCP Server & Web Engine for AI Agents
README
Privacy-First, Self-Hostable & SSRF-Hardened MCP Server & Web Engine for AI Agents MCP Specification 2026-07-28 Pure Stateless Core & Stdio / HTTP Dual Mode
PyPI Version npm Version License: MIT
⚡ Instant Quickstart with uvx (Recommended for AI Agents)
AI agents (Claude Desktop, Cursor, Windsurf, TurboLLM, Hermes Agent) can run mcp-web-engine in an isolated ephemeral environment with zero configuration:
# Run stdio MCP server in an isolated environment (10ms startup, 0% system contamination)
uvx mcp-web-engine
Or run via Git repository:
uvx --from git+https://github.com/Arbolencio/mcp-web-engine mcp-web-engine
📌 What it does & Why it exists
mcp-web-engine is a high-performance Model Context Protocol (MCP) server implementing the MCP Specification 2026-07-28 Pure Stateless Core. It provides AI Agents with secure, private, and SSRF-hardened access to multi-engine web search, raw content fetching, and clean HTML-to-Markdown extraction.
Key Capabilities & Architecture
- Dual Execution Mode:
- Stdio Mode (Default): Runs JSON-RPC over
stdin/stdoutfor direct LLM client integration (uvx mcp-web-engine). - HTTP/SSE Server Mode: Runs FastAPI/Uvicorn server (
mcp-web-engine --serve).
- Stdio Mode (Default): Runs JSON-RPC over
- Pure Stateless Core (Spec 2026-07-28): Zero sessions, zero state, zero initialize handshake required. Every request is completely independent.
- Protocol Methods: Implements
server/discover,tools/list, andtools/callwith standard JSON-RPC 2.0. - Zero Third-Party Tracking: Powered by an internal SearXNG meta-search engine aggregating 70+ sources with DuckDuckGo fallback.
- Automatic URL Normalization: Handled transparently by
normalize_searxng_url()— any providedSEARXNG_URLvariation (http://127.0.0.1:8082,http://127.0.0.1:8082/,http://127.0.0.1:8082/search) automatically appends/searchif missing. - SSRF Hardened: Pre-request DNS resolution checks prevent agents from accessing internal networks (
localhost,127.0.0.1,192.168.x.x,169.254.169.254). Step-by-step HTTP 301/302 redirect re-validation. - Zero
--break-system-packages: Executed 100% in sandboxed virtual environments created on-the-fly byuvorvenv.
🔌 Integration Guides
1. TurboLLM / Local MCP Catalog
{
id: 'mcp-web-engine',
name: 'MCP Web Engine',
cat: 'Search',
desc: 'Privacy-first, self-hostable & SSRF-hardened web search engine and scraper for AI agents.',
cmd: 'uvx mcp-web-engine',
uvx: true,
argNote: 'Requires a running SearXNG instance.',
envs: [
{ key: 'SEARXNG_URL', desc: 'SearXNG meta-search endpoint (default: http://127.0.0.1:8082/search)', required: true },
],
}
2. Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"mcp-web-engine": {
"command": "uvx",
"args": ["mcp-web-engine"],
"env": {
"SEARXNG_URL": "http://127.0.0.1:8082/search"
}
}
}
}
3. Cursor / Windsurf / Hermes Agent
{
"mcpServers": {
"mcp-web-engine": {
"command": "uvx",
"args": ["mcp-web-engine"]
}
}
}
🛠️ Provided MCP Tools
| Tool Name | Parameters | Description |
|---|---|---|
web_search |
query (str), limit (int, default: 10) |
Multi-engine meta-search via SearXNG returning structured JSON results |
fetch_url |
url (str), max_bytes (int, optional) |
Fetches raw web content after strict SSRF security validation |
extract_markdown |
url (str), max_bytes (int, optional) |
Scrapes a webpage and converts HTML into clean, LLM-optimized Markdown |
⚙️ Configuration & Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
SEARXNG_URL |
Yes | http://127.0.0.1:8082/search |
SearXNG meta-search endpoint (Auto-normalizes trailing slashes and missing /search) |
PORT |
No | 5050 |
HTTP/SSE server port (Used only when running in --serve mode) |
HOST |
No | 0.0.0.0 |
HTTP/SSE server binding host |
API_KEY |
No | "" |
Optional authentication key for HTTP endpoints |
🛠️ Development & Building
# Clone Repository
git clone https://github.com/Arbolencio/mcp-web-engine.git
cd mcp-web-engine
# Build Wheel for PyPI
python3 -m build --wheel
# Run locally in stdio mode via uv
uv run python -m mcp_web_engine.main
# Run locally in HTTP server mode via uv
uv run python -m mcp_web_engine.main --serve
🛡️ Security & Environment Isolation
- SSRF Hardening: Blocks
localhost, loopbacks, private subnets (10.0.0.0/8,192.168.0.0/16,172.16.0.0/12), percent-encoding bypasses (%31%32%37...), and re-validatesLocationheaders on HTTP redirects step-by-step. - Zero Package Pollution: Execution via
uvxorbin/cli.jsnever modifies global site-packages or uses dangerous flags like--break-system-packages.
📄 License
MIT License © 2026 MCP Web Engine Contributors.
Install Web Engine in Claude Desktop, Claude Code & Cursor
unyly install web-engineInstalls 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 web-engine --env SEARXNG_URL="" -- npx -y mcp-web-engineStep-by-step: how to install Web Engine
FAQ
Is Web Engine MCP free?
Yes, Web Engine MCP is free — one-click install via Unyly at no cost.
Does Web Engine need an API key?
Yes, it requires environment variables: SEARXNG_URL. Unyly injects them into the config during install.
Is Web Engine hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Web Engine in Claude Desktop, Claude Code or Cursor?
Open Web Engine 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
Fetch
Web content fetching and conversion for efficient LLM usage.
Roblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
by paralovAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
Compare Web Engine with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
