Shrink the web for your local LLMs!
10K+
Spend tokens on answers, not webpages.
Part of TinySuite. Comes built in to TinyWebUI, and works with any MCP client.
TinySearch is the web-research layer of TinySuite, a set of small, local-first tools that make agents spend tokens on useful work rather than overhead. It searches the web, reads the best pages, removes low-value content, and returns compact evidence with source URLs, so your model receives the useful passages instead of paying to process entire webpages.
It is retrieval, not summarization: every returned chunk is the original page text, unedited and still attached to its URL, so what you cite is what the page actually said. In a benchmark against a plain search-then-fetch agent reading the same pages, it sent 64% fewer tokens to the model (docs/token-savings.md).
search, scrape_urls, browser_navigate, browser_act and get_current_datetime, with batching so one call can cover independent subquestions.| Tier | Use it when | Entry point | Search backend |
|---|---|---|---|
| 1. Python library | You are building with TinySuite or Python | pip install tinysuite-search | DDGS |
| 2. One-command MCP | An MCP client should launch TinySearch for you | uvx --from "tinysuite-search[server]" tinysearch | DDGS |
| 3. Docker + SearXNG | You want the full self-hosted stack and HTTP MCP | docker compose ... up -d | Bundled SearXNG |
Tiers 1 and 2 need no search service. Tier 3 adds a dedicated SearXNG service, persistent model storage, and a network MCP endpoint; the installation guide covers it.
With uv installed, add TinySearch to any MCP client:
{
"mcpServers": {
"tinysearch": {
"command": "uvx",
"args": ["--python", "3.12", "--from", "tinysuite-search[server]", "tinysearch"]
}
}
}
The client launches TinySearch over stdio when it needs it. No repository clone, hosted account, or paid search key is required.
Fast search starts without Chromium or an embedding model. The first scrape initializes Chromium, and focused scraping also initializes the configured embedding model. Pre-warm both ahead of time if you will use those workflows:
uvx --from "tinysuite-search[server]" tinysearch setup
From Python, pip install tinysuite-search and call search and scrape_urls directly (Python library). The recommended flow is the same everywhere: search for lightweight discovery, then scrape_urls for the pages worth reading.
The full reference lives at tinysuite.dev/docs/tinysearch:
| Topic | Covers |
|---|---|
| Quick start | MCP over stdio |
| Installation | Python, Docker with SearXNG, from source and entrypoints |
| MCP tools | Every tool, its parameters and response contract, including the browser tools |
| What your agent gets | The recommended flow, retrieval rather than summarization, when not to use it |
| Output formats | What search and scrape results look like, the FastAPI endpoints |
| Activity and management | Activity recording and the management views |
| OpenTelemetry | Traces and metrics |
| Configuration | Every setting and environment variable: search backends, browser, CDP, proxies, the fallback fetcher |
| Troubleshooting | Installation checks and common failures |
In this repository: docs/token-savings.md is the benchmark and the script to rerun it, docs/fallback-fetcher.md is the full contract a fallback fetch service implements, and configs/tinysearch_config.json is an annotated example configuration.
git clone https://github.com/TinySuiteHQ/TinySearch
cd TinySearch
uv sync --extra server
uv run python -m unittest discover tests
TinySearch supports Python 3.12 and newer. CI tests Python 3.12, 3.13, and 3.14 across Linux, macOS, and Windows.
Questions, ideas, and bug reports are welcome on Discord, in GitHub issues, or by email.
TinySearch reads public pages and returns selected excerpts to the calling client. Search, crawling, local embeddings, and reranking can run without sending page content to an embedding provider. If you choose an OpenAI-compatible embedding backend, that provider receives the text sent for vectorization.
TinySearch is available under the MIT License. Downloaded model weights remain subject to their respective model-card licenses. See NOTICE for third-party distribution details.
Content type
Image
Digest
sha256:5bfe5409e…
Size
503.8 MB
Last updated
5 days ago
docker pull marcellm01/tinysearch