Skip to main content

TinySearch

TinySearch

Spend tokens on answers, not webpages.

Part of TinySuite. Comes built in to TinyWebUI, and works with any MCP client.

Website PyPI version PyPI Downloads Tests License: MIT Python Release Last Commit Docker Pulls Discord MCP Server FastAPI

TinySearch returning source-grounded web evidence to an AI agent

Read the documentation → tinysuite.dev/docs/tinysearch


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).

Highlights

  • No vendor in the loop. No TinySearch account, no required API key, no per-request billing, no analytics service or hosted scraped-data cache. DDGS search and local ONNX embeddings are the defaults.
  • Source-grounded by construction. A claim in your agent's answer traces back to one specific passage instead of stopping at "the vendor's model said this."
  • Selection happens before the model. Local BM25 and embedding rerank pick pages and passages within an evidence budget you control.
  • Five small MCP tools. search, scrape_urls, browser_navigate, browser_act and get_current_datetime, with batching so one call can cover independent subquestions.
  • A real browser when a page needs one. The browser tools reuse the scraper's Chromium, act only on elements the model has seen, and can't execute code.
  • Private by default. Nothing about what was searched is recorded unless you turn activity recording on, and OpenTelemetry export never carries queries, URLs or page text.
  • Bring your own stack when needed. SearXNG, Brave, OpenAI-compatible embeddings, an external browser over CDP, proxies, and an optional fallback fetcher.
  • Works where agents already work. MCP over stdio or Streamable HTTP, Python, FastAPI, or Docker.

Quick start

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

TinySearch CLI setup and first run in a terminal

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.

Documentation

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.

Development

git clone https://github.com/TinySuiteHQ/TinySearch
cd TinySearch
python -m venv .venv
source .venv/bin/activate
pip install -e ".[server]"
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.

License

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.

Metadata

Release files for tinysuite-search 0.6.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tinysuite-search 0.6.11
File Size Uploaded Provenance Actions
tinysuite_search-0.6.11.tar.gz 151.5 kB With provenance Details for tinysuite_search-0.6.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tinysuite-search 0.6.11
File Interpreter ABI Platform Actions
tinysuite_search-0.6.11-py3-none-any.whl Python 3 none any Details for tinysuite_search-0.6.11-py3-none-any.whl

Total release size: 263.0 kB

Release files / tinysuite_search-0.6.11.tar.gz

Download URL tinysuite_search-0.6.11.tar.gz
Size 151.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5545f2864966353bf5bd660d9c95b4f11b489e33d26d5fce9298043081fad95d
BLAKE2b-256 checksum
How to use checksums
a105d0027dca856490f5b4d73147f3c48bbbb22f2a2d01c4ea2467c314b5686f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / tinysuite_search-0.6.11-py3-none-any.whl

Download URL tinysuite_search-0.6.11-py3-none-any.whl
Size 111.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61747913cae5b0e25463751558d21016e7f1cd37c9337965369405aea7ea6be6
BLAKE2b-256 checksum
How to use checksums
d9af4175cc5424a421a5fb26d2d762577d613a3e673156a06d4303c5204c9c88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for tinysuite-search 0.6.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tinysuite_search-0.6.11.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page