free-search-mcp
https://github.com/user-attachments/assets/354b522a-ef6b-4547-bb07-c80c6268a5e8
Music: “Ethereal Space (cdk Mix)” by cdk, ccmixter.org/files/cdk/34151, licensed CC BY 3.0.
free-search-mcp 1.0 is a single-binary, local-first Rust Model Context
Protocol server that needs no API key and no signup. It exposes exactly
3 tools (search, exec, and ask, ≤ 6,800 B tools/list, ≤ 15 ms cold
start) over 500+ web, academic, and specialist sources, a first-class
scholarly research subsystem, local document parsing, an FTS5 cache, and
optional agent-search capabilities (answer agent, agent lane, and codex /
opt-in antigravity engines).
// One `ask` call (no code): direct-answer sources or search + parallel page read in ~8 s
{ "question": "latest stable Rust edition and release date", "freshness": "month" }
Or combine scholarly verification in one exec turn with Promise.all:
async () => {
const [work, integrity, ft] = await Promise.all([
scholar.work("arXiv:1706.03762"),
scholar.integrity("10.48550/arXiv.1706.03762"),
scholar.fulltext("arXiv:1706.03762", { sections: ["Introduction", "Conclusion"] }),
]);
return { title: work?.title, retracted: integrity.isRetracted, sections: ft.sections };
}
No API key, no Python runtime, and no Chromium required.
Quick start (tri-client plugins)
Claude Code, Codex, and Antigravity (agy) are equal first-class targets. All
three register the server under key "search", ship all three tools
(search, exec, ask), both skills (verified-research and
scholar-research), and the quick-search agent, pinned to 1.0.1. You only
need uv (which downloads the prebuilt binary
wheel via uvx) or a standalone free-search-mcp binary.
Claude Code (inside a session):
/plugin marketplace add sweetcornna/free-search-mcp
/plugin install free-search@free-search-mcp
Codex (see docs/CODEX_SEARCH.md):
codex plugin marketplace add sweetcornna/free-search-mcp
codex plugin add free-search@free-search-mcp
(If ~/.codex/config.toml already has a [mcp_servers.search] entry, it
silently shadows the plugin's server — run codex mcp remove search first, and
set tool_timeout_sec = 150 when registering manually for long exec runs.)
Antigravity (agy) (see docs/ANTIGRAVITY_SEARCH.md):
agy plugin install https://github.com/sweetcornna/free-search-mcp/tree/main/plugins/free-search
Hermes Agent (Agent Plugins v1):
hermes plugins install sweetcornna/free-search-mcp/plugins/free-search --enable
Claude Desktop (binary .mcpb), standalone binaries, uvx, MCP Registry, and
the ~25 MB distroless Docker image are under Install.
Three tools, 500+ sources
Instead of burning ~8,700 tokens on a dozen single-purpose tool schemas, 1.0
always exposes 3 tools (tools/list ≤ 6,800 B, instructions ≤ 450 B)
with zero prompts or resource templates:
| Tool | Purpose |
|---|---|
ask(question, freshness?, lang?, domains?, mode?, max_tokens?) |
Quick one-call lookup with no code (mode: "auto" | "fast" | "agent"). "fast" needs no LLM: checks direct-answer sources first, else searches and reads top pages in parallel (~8 s deadline) and returns dated passages with sources. "agent" uses the configured answer agent (api / claude-code / codex) to write a short sourced answer. "auto" uses "agent" when configured, else "fast". Also available via web.ask(...) in exec, CLI free-search-mcp ask "<question>", and HTTP POST/GET /v1/ask. |
search(query, scope?, sources?, freshness?, domains?, lang?, limit?, max_age_hours?) |
Multi-engine search over live verticals (web, academic, news, code, docs, dataset, finance, security, gov, media, commerce, forum, reference, plus dotted sub-scopes and synonyms like papers, github, law, patents), optional signed-in agent lane (codex / opt-in antigravity) and optional answer above results (SEARCH_MCP_AGENT_IN_SEARCH), zero-network scope="catalog" over 500+ sources & Host APIs, and zero-network local FTS5 scope="cache". |
exec(code, max_tokens?, timeout_s?) |
Sandboxed ES2020 JavaScript (QuickJS-NG, zero ambient fs/env/sockets) with typed async Host APIs: web.*, scholar.*, doc.*, source.*, cache.*, catalog.*, and util.*. Batch parallel fetches with Promise.all, read PDF/DOCX/XLSX/PPTX/EPUB/archives, walk citation graphs, check retractions, fetch lawful OA full text, and call any of 500+ cataloged sources or 18 generic protocols. |
Host SDK inside exec
| Namespace | Functions |
|---|---|
web |
ask, search, fetch, fetchBatch, request (.body / .json), structured, research, compare, download |
scholar |
search, work, graph, fulltext, integrity, cite — plus discoverable author, org, venue, grants |
doc |
read, outline (isolated PDF worker + Office/EPUB/CSV/tar/zip; local reads opt-in via SEARCH_MCP_DOCUMENT_ROOT) |
source |
call(opId, params?) over 500+ cataloged sources; protocol(kind, baseUrl, op, params?) over 18 protocols |
cache |
search, getPage, put, get (including cache.get("exec:<id>") overflow handles) |
catalog |
search, describe (zero-network BM25 + fuzzy search over sources, protocols, and Host APIs) |
util |
sleep, htmlToMd, estimateTokens, dedupe, grep, pick |
See docs/USAGE.md for runnable examples,
docs/DELEGATION.md for ask, host subagents, and
answer-agent backends, and docs/HOW_IT_WORKS.md for the
architecture, guardrails, agent lane, and ranking details.
Why 1.0 (Rust)
| Metric | Python v0.18.2 |
Rust 1.0.0 |
|---|---|---|
MCP tools / tools/list size |
11–12 tools / ~35 KB (~8,748 tok) | 3 tools / ≤ 6,800 B |
Cold start (spawn → initialize) |
552 ms | ≤ 15 ms |
| Memory (pre-exec idle) | ~85 MB | ≤ 15 MB |
| Binary / Docker image | ~1.08 GB Docker | ~20 MB binary / ~25 MB distroless |
| Sources aggregated | 76 engines | 500+ sources (native + 18 protocols + TOML/jaq manifests + optional codex/antigravity agent lane) |
| Scholarly subsystem | Basic paper_graph |
Unified ScholarlyWork, citation graph, 11-step lawful OA full text, Retraction Watch, offline hayagriva citations |
Retraction Watch initial sync (~70 MB): On the first scholarly call (
scope="academic"orscholar.*),free-search-mcplazily downloads the Crossref Retraction Watch CSV (~70 MB, CC0 1.0), indexes 6 columns into~/.cache/search-mcp/search-mcp.sqlite(~8–12 MB), deletes the raw CSV, and refreshes viaETagevery 7 days. SetSEARCH_MCP_OFFLINE_SYNC=falseto opt out and rely on online Crossref checks only.
Install
The tri-client plugins in Quick start are the recommended path:
they pin the server version and bundle the verified-research and
scholar-research skills plus the quick-search agent.
| Where | How |
|---|---|
| Claude Code (plugin) | /plugin marketplace add sweetcornna/free-search-mcp → /plugin install free-search@free-search-mcp |
| Codex (plugin) | codex plugin marketplace add sweetcornna/free-search-mcp → codex plugin add free-search@free-search-mcp |
Antigravity (agy) (plugin) |
agy plugin install https://github.com/sweetcornna/free-search-mcp/tree/main/plugins/free-search |
| Claude Desktop (bundle) | Open free-search-mcp-1.0.1-<platform>.mcpb from the latest release |
| MCP Registry | io.github.sweetcornna/free-search-mcp |
| Claude Code (plain MCP) | claude mcp add search -s user -- uvx free-search-mcp |
| Codex (plain MCP) | codex mcp add search -- uvx free-search-mcp |
| Antigravity (plain MCP) | agy mcp add search uvx free-search-mcp |
| Any other MCP client | stdio command uvx free-search-mcp (or local ~/.local/bin/free-search-mcp / search-mcp) |
| Distroless Docker (~25 MB) | docker compose build && docker compose run --rm search-mcp |
Build and install from a source checkout (installs ~/.local/bin/free-search-mcp
and the ~/.local/bin/search-mcp symlink alias):
curl -LsSf https://raw.githubusercontent.com/sweetcornna/free-search-mcp/main/scripts/install.sh | bash -s -- --client claude-code
Serve over Streamable HTTP (loopback-only by default; also exposes
POST/GET /v1/ask behind the same token/host guards; set
SEARCH_MCP_HTTP_TOKEN before exposing beyond 127.0.0.1):
free-search-mcp --transport streamable-http --host 127.0.0.1 --port 8000
CLI commands:
free-search-mcp ask "latest stable tokio version" # quick sourced lookup from the shell
free-search-mcp login codex # optional ChatGPT plan search + agent lane
free-search-mcp login status # inspect stored OAuth sign-ins
free-search-mcp config # show resolved settings (secrets redacted)
free-search-mcp doctor # verify network, SSRF/Fake-IP TUN, cache, probes
free-search-mcp sources # list registered sources and availability
free-search-mcp probe # probe live source health
free-search-mcp eval-replay # run offline ranking replay benchmarks
Full install options and client guides:
- docs/INSTALL.md — all install routes (macOS & Linux)
- docs/CODEX_SEARCH.md — Codex plugin install + optional
codexChatGPT engine & agent lane - docs/ANTIGRAVITY_SEARCH.md — Antigravity (
agy) plugin install + opt-inantigravityengine (read Google ToS warning first) - docs/AGENT_USAGE.md — operating rules for agents
- docs/DELEGATION.md —
ask, host subagents, and server-side answer agent backends
Configuration & optional keys / sign-ins
Nothing is required, and no default, reserve, locale, academic, or vertical route needs an API key or account. Agents must never ask you for a key or a sign-in.
Settings use SEARCH_MCP_* environment variables, ~/.config/search-mcp/.env,
or ~/.config/search-mcp/config.json (0600). Security-sensitive variables
(credentials, proxy, SSRF overrides, HTTP_TOKEN, DOCUMENT_ROOT,
EXEC_RAW_HTTP, AGENT_API_KEY, ANTIGRAVITY_CLIENT_SECRET) are ignored
if placed in a working-directory ./.env.
| Variable | Default | Purpose |
|---|---|---|
SEARCH_MCP_PROXY |
(empty) | Outbound proxy (http/https/socks5/socks5h) |
SEARCH_MCP_NO_PROXY |
(empty) | Comma-separated host suffixes that bypass proxy |
SEARCH_MCP_DEFAULT_ENGINES |
["duckduckgo","bing","yahoojp","seznam"] |
Default keyless web pool |
SEARCH_MCP_RESERVE_ENGINES |
["yahoo","youcom","mwmbl"] |
Hedging reserves |
SEARCH_MCP_AGENT_BACKEND |
off |
Optional answer agent (off | api | claude-code | codex) for ask and search |
SEARCH_MCP_AGENT_ENGINES |
auto |
Agent lane (auto = signed-in codex only; off; or explicit list) |
SEARCH_MCP_CONTACT_EMAIL |
(empty) | Optional polite-pool email for Crossref, OpenAlex, NCBI, and Unpaywall OA full text |
SEARCH_MCP_OFFLINE_SYNC |
true |
Lazy ~70 MB Retraction Watch CSV sync (false disables) |
SEARCH_MCP_CACHE_DIR |
~/.cache/search-mcp |
Directory for search-mcp.sqlite |
SEARCH_MCP_HTTP_TOKEN |
(empty) | Optional Bearer token for Streamable HTTP and /v1/ask |
See docs/CONFIGURATION.md, .env.example, docs/API_KEYS.md, and docs/PROXY_AND_GATES.md.
Development
git clone https://github.com/sweetcornna/free-search-mcp.git && cd free-search-mcp
cargo test --workspace --locked --offline
cargo clippy --workspace --all-targets --locked --offline -- -D warnings
cargo deny check --disable-fetch bans licenses sources
Running Claude Code inside the checkout picks up .mcp.json, which launches
the working tree's Rust server. Release steps live in
docs/RELEASING.md.
License
MIT. See LICENSE.
Metadata
Release files for free-search-mcp 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| free_search_mcp-1.0.1.tar.gz | 6.3 MB | Without provenance | Details for free_search_mcp-1.0.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| free_search_mcp-1.0.1-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details for free_search_mcp-1.0.1-py3-none-manylinux_2_28_x86_64.whl |
| free_search_mcp-1.0.1-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details for free_search_mcp-1.0.1-py3-none-manylinux_2_28_aarch64.whl |
| free_search_mcp-1.0.1-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for free_search_mcp-1.0.1-py3-none-macosx_11_0_arm64.whl |
| free_search_mcp-1.0.1-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details for free_search_mcp-1.0.1-py3-none-macosx_10_12_x86_64.whl |
Total release size: 106.0 MB
Release files / free_search_mcp-1.0.1.tar.gz
| Download URL | free_search_mcp-1.0.1.tar.gz |
|---|---|
| Size | 6.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a25b2f641cd5f6f45d4d8589af5348aaf1832fbdec5cff506b63b96c8d12761
|
|
BLAKE2b-256 checksum How to use checksums |
de84e966a5e9514d3dc7734fb943db1facaf2fbe6c50f1bda94e8b27ed8c71da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / free_search_mcp-1.0.1-py3-none-manylinux_2_28_x86_64.whl
| Download URL | free_search_mcp-1.0.1-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 26.0 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
50e37cd1522c57acf0594505149bb3dba61de8b35738ed70767b90a7c9620515
|
|
BLAKE2b-256 checksum How to use checksums |
74868776ac6ddb0f1cec96d3d33c2bbcc4be1cfbf323bb79ab631f70bb1bb95d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / free_search_mcp-1.0.1-py3-none-manylinux_2_28_aarch64.whl
| Download URL | free_search_mcp-1.0.1-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 24.6 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
804cef6ea4938f64b1d4871099ccb22c92a0a3c4b3f0a222abbd2a9800c20c37
|
|
BLAKE2b-256 checksum How to use checksums |
ffd762b2b1e60111d95a2cac98b14450341beccbb1af5d883e04f5a9106924de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / free_search_mcp-1.0.1-py3-none-macosx_11_0_arm64.whl
| Download URL | free_search_mcp-1.0.1-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 23.9 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
150a6e79e2c156cbcbad2d1637f28c96f182ab258365be843a7f5516cc989edd
|
|
BLAKE2b-256 checksum How to use checksums |
b0899f65c835a5936b8c9088f113aa6092c758c35a5f00cfbfe4d1d49cebfe75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / free_search_mcp-1.0.1-py3-none-macosx_10_12_x86_64.whl
| Download URL | free_search_mcp-1.0.1-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 25.2 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
f9c94a087c2c6da5a4186572825e43aad0602af4d4d324349c7a11cd5554cf1b
|
|
BLAKE2b-256 checksum How to use checksums |
27e1fadd35f450ad14ccf125769aa5726a4fe40701f4f02678ad9c1f5c594f43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for free-search-mcp 1.0.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.