# Repository Briefing: Belluxx/sharp-search
> Source: https://repoforai.com/repo/Belluxx/sharp-search (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Belluxx/sharp-search
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (78/100 · Maintenance 35/35 · Adoption 12/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, MCP, Self-Hosted
- **Momentum**: 504 ★ total (+111 24h / +504 7d) · 37 forks
- **When to Use**: Best for: Coding agents that need public-web search and Markdown extraction through a small, self-hosted MCP interface with no API keys. Skip if: You need rendered pages, interactive browser automation, authenticated or private-network targets, or guaranteed coverage and latency across specific domains.

## Overview
```text
### Architecture & Core Mechanics
sharp-search is a Python MCP server built around two stdio tools. `search` sends queries to SearXNG inside the same container, where several upstream engines are queried in parallel and their results merged. `fetch` retrieves a URL over HTTP and returns the page as Markdown. This separates discovery from page retrieval without adding a general browser runtime.

The multi-stage Dockerfile compiles `challenge/challenge.mjs` with Deno 2.9.8 and copies the helper to `/app/challenge` in a pinned SearXNG base image. It places `src/server.py` and `src/fetch.py` under `/app/`, installs settings at `/etc/searxng/settings.yml`, and runs as `searxng`. The isolated helper executes challenge scripts offline in happy-dom; it is not a general page-rendering engine.

### Key Capabilities & Differentiators
The two-tool interface covers ranked web search and page extraction without API keys. In the comparison, sharp-search put the expected page in the top five for 30 of 30 search queries, with a 0.92 s median search time. It fetched 42 of 64 pages (66%), with a 0.95 s median fetch time. Those figures describe the tested corpus and do not establish domain-wide coverage or tail latency.

The fetch path includes a limited challenge-handling mechanism and optional retries; `--no-fallbacks` disables those retries. Fetching is restricted to public IPs, including after redirects. The offline script helper has no file, process, or network access and is subject to time and memory limits. Markdown is useful for agent context, but the fetch tool is not designed for rendered-page inspection or interactive workflows.

### Trade-offs & Limitations
The comparison shows the middle ground this design occupies. Scrapling HTTP was faster on fetches at 0.34 s median but retrieved 21 of 64 pages. Scrapling's stealth headless mode retrieved 31 of 64 at 6.68 s median and 1,226 MB peak memory, versus sharp-search's 235 MB. Hosted Exa fetched 44 of 64 pages at 0.52 s median. These are benchmark results, not a general ranking: the right choice depends on which pages matter and whether they need browser interaction.

Self-hosting removes the need for a hosted search API account, not dependence on search engines and destination sites. Their changes and restrictions can affect coverage and latency, so validate both against your own URLs before rollout. The repository's MIT license permits commercial use, but it does not grant rights to fetched content or supersede upstream service terms.

### Hardware & Deployment Guide
Docker is the prerequisite for the packaged deployment; neither a host-side Python or Deno installation nor a GPU is needed. Pre-pulling `ghcr.io/belluxx/sharp-search-mcp` avoids a first-start timeout while the image downloads. Claude Code, Codex, and Pi can launch it with `docker run -i --rm --pull=always`. The Dockerfile supports `amd64` and `arm64` builds, and live search and fetch require outbound internet access even though the challenge helper runs offline.

The hardening example uses a read-only root filesystem, a `/tmp` tmpfs, dropped capabilities, `no-new-privileges`, and a 512 MB memory limit. Treat that limit as a starting configuration, not a capacity estimate. No latest GitHub release is listed, so there is no release history here to assess compatibility changes. Consider pinning a tested image digest instead of relying on `--pull=always` for reproducible rollouts.
```

## Key Capabilities
```text
- MCP surface: Two tools, `search` for discovery and `fetch` for Markdown extraction.
- Search backend: SearXNG runs inside the container, queries several engines in parallel, and merges results.
- Challenge isolation: A Deno-compiled happy-dom helper runs scripts offline with restricted permissions and time and memory limits.
- Redirect safety: The fetch path enforces public-IP destinations, including after redirects.
- Measured footprint: 235 MB peak memory and a 376 MB image in the comparison.
- Deployment controls: Stdio integration, optional read-only container hardening, and `--no-fallbacks` to disable retry paths.
```

## Quick Start / Clone
```bash
docker pull ghcr.io/belluxx/sharp-search-mcp
```
