fats 0.2.5 · 2026-11-06
Install
fats is one binary: a CLI and, as fats mcp, a local stdio MCP server with one tool, fats(cmd).
This guide installs it (prebuilt or from source), adds a provider key, connects it to an agent host, and checks every step.
Agents: follow the checklist at the end; each step has a check command.
Never print, echo or paste a key value; key names and fats status lines are enough.
Lines marked ❓ are not verified yet.
| Thing | Where |
|---|---|
| Binary | ~/.cargo/bin/fats (from the installer script or cargo install; Homebrew: its own prefix) · npm: its global prefix (npm prefix -g) |
| Keys | macOS ~/Library/Application Support/fatsearch/ · Linux ${XDG_CONFIG_HOME:-~/.config}/fatsearch/ · Windows %APPDATA%\fatsearch\ · or FATS_KEY_DIR |
| Cache (pages live ≤ 1 h) | macOS ~/Library/Caches/fatsearch/ · Linux ${XDG_CACHE_HOME:-~/.cache}/fatsearch/ · Windows %LOCALAPPDATA%\fatsearch\ · or FATS_CACHE (a relative dir is resolved once against the working dir; ~/…, / and $HOME are refused; swept only if fats created it) |
| Spend ledger | spend.log in the key dir (time, cost and cache dir per paid record; fats stats sums it) |
| Exact paths on this machine | fats config (rows cache and key_dir, each with its source) |
1. Prerequisites
A prebuilt binary (section 2) needs none of this. Building from source (section 3) needs:
- Rust 1.99 (pinned in
rust-toolchain.toml), via rustup. - CMake 3.22+, a C and C++ compiler, and libclang: the TLS stack compiles BoringSSL from source and generates its bindings with bindgen, which loads libclang.
macOS (tested, Apple silicon): the Command Line Tools bring the compiler and libclang.
xcode-select --install
brew install cmake
Ubuntu / Debian (CI builds on Ubuntu; this minimal package set is ❓ untested on a clean machine):
sudo apt-get install -y build-essential cmake libclang-dev git
Windows: the binary builds and the test suite passes on a Windows 11 VM (x86_64 build) since 0.2.2.
What the build scripts ask for: Visual Studio Build Tools with the C++ workload,
CMake 3.22+, NASM (BoringSSL’s x86_64 assembly on Windows),
and LLVM for libclang (winget install LLVM.LLVM, then set LIBCLANG_PATH to LLVM’s bin folder).
2. Install a prebuilt binary
Each GitHub release carries fats for macOS (Apple silicon, Intel), Linux (x86_64, ARM64; glibc 2.35+) and
Windows (x86_64), each archive with a .sha256 checksum and a GitHub build attestation. No Rust toolchain needed.
macOS, Linux:
curl -fsSL https://fatsearch.com/install.sh | sh
Windows:
npm i -g fatsearch
The Claude Code, Codex and Gemini CLI agents ship npm packages, so most Windows setups already have npm. Without
Node: the fatsearch-x86_64-pc-windows-msvc.zip from the releases page. The macOS/Linux short URL redirects to the
latest release’s fatsearch-installer.sh under https://github.com/fatsearch/fatsearch/releases/latest/download/,
which you can also fetch directly.
The installer (generated by cargo-dist) picks the archive for this
machine and puts fats in $CARGO_HOME/bin (default ~/.cargo/bin), the folder cargo install uses. It adds
that folder to PATH through ~/.cargo/env, sourced from .profile, .bashrc, .zshrc and fish’s conf.d.
FATSEARCH_NO_MODIFY_PATH=1 skips that. It also writes an install receipt, fatsearch-receipt.json, to
${XDG_CONFIG_HOME:-~/.config}/fatsearch/; fats only checks that it exists, to tell the update check it came
from the installer (via=sh, docs/telemetry.md) (that folder is also the key dir on Linux; the
receipt holds no key). FATSEARCH_DISABLE_UPDATE=1 skips the receipt.
The installer always installs the version of the release it came from.
Other ways, same release archives:
- npm:
npm i -g fatsearchinstallsfats;npx fatsearch --versionruns it without a global install. The npm package holds no binary: its install script downloads this release’s archive for the machine from GitHub into the package folder, so it needs network at install and does not work with--ignore-scripts. Node 14.14+. Uninstall:npm uninstall -g fatsearch. - Homebrew:
brew install fatsearch/tap/fatsearch(installsfats; ~10 s) - cargo-binstall:
cargo binstall fatsearchtakes the release archive (10 s, no compile); for a version without one it falls back to building from source - By hand: download the archive for your platform from the
releases page, then check it before unpacking:
shasum -a 256 -c fatsearch-<target>.tar.xz.sha256andgh attestation verify fatsearch-<target>.tar.xz --repo fatsearch/fatsearch. The archive holdsfats(fats.exe) in afatsearch-<target>/folder; put it anywhere onPATH.
Check: fats --version prints = fats <version> · status: fats · agents: fats guide = the manual (~2.1k tok).
3. Build from source
git clone https://github.com/fatsearch/fatsearch
cd fatsearch
rustup toolchain install 1.99.0
cargo install --locked --path .
Or straight from crates.io, no clone: cargo install --locked fatsearch.
Either compiles BoringSSL once (a few minutes) and installs fats (the package is named fatsearch).
If fats is not found afterwards, add ~/.cargo/bin to PATH (. "$HOME/.cargo/env").
Check: fats --version prints = fats <version> · status: fats · agents: fats guide = the manual (~2.1k tok);
fats help = the one-screen cheat sheet, fats guide = how to use it well.
4. Keys (optional)
Without a key, fats reads what a plain HTTP request gets, for $0.
With any one provider key it also renders JS pages and gets past walls through that provider;
with more than one, it routes between them. Each key goes only to its own provider. Separately, fats sends anonymous usage counts and a daily update check
to fatsearch.com, never a URL, search, key or id: fats telemetry show prints them, fats setup → Settings → Telemetry or
fats setup telemetry off stops them (docs/telemetry.md).
| Provider | Sign up | Key | Variable import-env reads |
|---|---|---|---|
| Oxylabs | https://dashboard.oxylabs.io/en/registration | a Web API instance’s key in the dashboard | OXYLABS_WEB_API_KEY |
| Bright Data | https://brightdata.com/cp/start | https://brightdata.com/cp/setting/users | BRIGHTDATA_API_KEY + BRIGHTDATA_UNLOCKER_ZONE (a Web Unlocker zone) |
| Decodo | https://dashboard.decodo.com/register | the API key on the Web Data playground | DECODO_AUTH_TOKEN |
Three ways to give fats a key:
- At a terminal:
fats setupopens a menu (↑↓ Enter): the providers, then Settings (agent connection, cache, stats, telemetry). Pick a provider, paste its key (shown as•and a count); it is checked live and saved. - Through an agent, or with no terminal:
fats setup oxy(orbd,decodo,gh) prints the dashboard link and a one-time form on127.0.0.1, open for 30 minutes. Open it in a browser on the same machine, paste the key, press Save. The key never goes through the chat. - No browser (CI, SSH): pipe the key in:
printf %s "$KEY" | fats setup oxy(orbd,decodo,gh) reads one line, checks it ($0) and saves it. Never type it as an argument:fats setup oxy <key>is refused (shell history,ps). Keys already exported: runfats setup import-envonce: each key is checked ($0) and copied intoauth.jsonwhere none is saved; a different saved key stays (replace it withfats setup oxy).fatsnever sends a key from the environment, and reads nothing else (no./.env, no other tool’s files): the key you saved is the key every call uses.
Saved keys go to auth.json in the key dir (mode 600, dir 700); a replaced key leaves the old file as
auth.json.bak (mode 600). fats setup alone checks every saved key live (Oxylabs lists its scrapers and Bright
Data its zones, both $0; Decodo gets a test call to a host that does not exist), writes nothing, and never prints
a key: fats shows its last 4 characters (keys oxy …6XBR · … · auth.json). The Bright
Data form saves the account’s only Web Unlocker zone with the key; with several it says key saved · ✗ no zone yet and names them, and the zone is picked with fats setup bd zone:<name>. Keys saved by 0.1 (oxylabs.key, brightdata.key,
brightdata.zone) move into auth.json and settings.json by themselves. fats setup oxy off turns a
provider off and keeps its key. Saved keys reach every MCP host the same way: no host needs to pass a variable to
the server.
5. Verify
$ fats https://example.com
= j1.u1 Example Domain · example.com · 1 sections · 0 photos · 133tok · plain 56ms
[u1#1] # part 1
This domain is for use in documentation examples without needing permission. …
(whole page shown) · filter: fats u1 <words> · links: fats u1 links
The first line starts with =; ids, timing and token counts vary. fats alone prints the status:
session, cache path, keys, provider health, and mcp: ready · fats mcp = stdio server, one tool fats(cmd).
Its keys row reads keys none · search needs oxy or bd (one is enough; oxy = cheapest search) → fats setup oxy
before setup (pages need no key; web search needs one) and like
keys oxy …6XBR · bd …k2Qf zone <zone> · decodo none · gh none · auth.json after (each key’s last 4 characters).
Check the MCP server without any host (prints two JSON lines: initialize and tools/list):
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"check","version":"0"}}}' \
'{"jsonrpc":"2.0","method":"notifications/initialized"}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | fats mcp
6. Connect an agent host
All hosts below start fats mcp as a local process. Notes that apply to every one:
- GUI apps do not read the shell’s
PATH. If a host reports it cannot startfats, use the absolute path fromcommand -v fats(Windows:where fats) ascommand. The examples usefatsfor brevity. - Windows: npm installs
fatsas%APPDATA%\npm\fats.cmd, and a host that starts the server without a shell cannot run a.cmd. Start it throughcmd:claude mcp add --scope user fats -- cmd /c fats mcp; in a JSON config,"command": "cmd", "args": ["/c", "fats", "mcp"]. - Keys: run
fats setuponce (section 4) and leave keys out of host configs. To pass them through a host instead, use itsenvfield (shown below where the host has one); prefer a${VAR}reference to a value. - Local files: over MCP,
fatsreads files only under the server’s working directory and its cache. - A slow page answers
pendingafterwait:(default 30 s), so tool calls stay short; the reply names the next command. - Without installing: a host with Node can run
npx -y fatsearch mcpas the command ("command": "npx", "args": ["-y", "fatsearch", "mcp"]); the first start downloads the binary. The server is listed in the MCP Registry asio.github.fatsearch/fats.
Claude Code
claude mcp add --scope user fats -- fats mcp # all your projects
claude mcp add fats -- fats mcp # default scope local: this project, only you
claude mcp add --scope project fats -- fats mcp # writes .mcp.json in the project root, for the team
Scopes: local and user live in ~/.claude.json; project lives in .mcp.json. Everything after --
is the server command. Keys need no --env: the server reads them from auth.json (fats setup).
.mcp.json (an entry without type is stdio):
{ "mcpServers": { "fats": { "command": "fats", "args": ["mcp"] } } }
Check: claude mcp get fats or claude mcp list (✔ Connected); inside a session, /mcp.
A project .mcp.json server waits for approval the first time claude runs in that folder.
Claude Desktop
Settings → Developer → Edit Config opens claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux ❓: not in the official docs; community builds use
~/.config/Claude/claude_desktop_config.json. Use Edit Config to find the real file.
{ "mcpServers": { "fats": { "command": "/home/you/.cargo/bin/fats", "args": ["mcp"] } } }
Use the absolute path (command -v fats), then quit Claude Desktop completely and start it again.
Server logs: ~/Library/Logs/Claude/mcp-server-fats.log (macOS), %APPDATA%\Claude\logs (Windows).
One-click .mcpb bundles exist as a format; fats does not ship one yet.
Codex CLI
codex mcp add fats -- fats mcp, or edit ~/.codex/config.toml (or .codex/config.toml in a trusted project):
[mcp_servers.fats]
command = "fats"
args = ["mcp"]
Check: codex mcp list, or /mcp in the codex TUI. Default tool_timeout_sec is 60, above fats’ default 30 s wait:.
Cursor
~/.cursor/mcp.json (every project) or .cursor/mcp.json (this project):
{ "mcpServers": { "fats": { "command": "fats", "args": ["mcp"] } } }
Check the server in Cursor’s MCP settings list.
VS Code (Copilot)
.vscode/mcp.json in the workspace (note the top-level key servers), or run MCP: Open User Configuration:
{ "servers": { "fats": { "type": "stdio", "command": "fats", "args": ["mcp"] } } }
From a shell: code --add-mcp '{"name":"fats","command":"fats","args":["mcp"]}'.
Check: MCP: List Servers → fats → Show Output.
Windsurf
Cascade panel → ... → Open MCP config file. The docs place it at ~/.config/devin/mcp_config.json
(macOS, Linux; $XDG_CONFIG_HOME/devin/ if set) and %APPDATA%\devin\mcp_config.json (Windows).
{ "mcpServers": { "fats": { "command": "fats", "args": ["mcp"] } } }
Zed
Settings → AI → MCP Servers → Add Server → Add Local Server, or edit the settings file (zed: open settings file):
{ "context_servers": { "fats": { "command": "fats", "args": ["mcp"], "env": {} } } }
Gemini CLI
gemini mcp add --scope user fats fats mcp writes ~/.gemini/settings.json (default scope project:
.gemini/settings.json) with { "mcpServers": { "fats": { "command": "fats", "args": ["mcp"] } } }.
Gemini CLI strips inherited variables whose names contain KEY, TOKEN and similar; fats reads its keys from
auth.json (fats setup), so none needs to reach the server. Check: /mcp.
ChatGPT and other OpenAI apps: not supported yet
ChatGPT connects to remote MCP servers over a public HTTPS (streamable HTTP) endpoint. fats mcp is
stdio only: no HTTP, no OAuth, no remote server. OpenAI’s Secure MCP Tunnel can forward to a local stdio
server for workspaces that have custom MCP access; ❓ untested with fats. Codex CLI (above) works today.
7. Plain shell use (any agent)
An agent that can run shell commands needs no MCP at all:
fats https://example.com # outline with ids, cached as u1
fats u1#3 # read section 3
fats u1 price # lines that match, inside the page
fats u1 json # the same answer as one JSON record (or FATS_JSON=1)
Every command: README, “Commands”. Full reference: reference.md.
8. Uninstall
fats config | grep -E '^(cache|key_dir) ' # note both paths first
cargo uninstall fatsearch # removes ~/.cargo/bin/fats
Installed with the installer script: rm ~/.cargo/bin/fats and the receipt fatsearch-receipt.json (section 2).
Homebrew: brew uninstall fatsearch. npm: npm uninstall -g fatsearch.
Then delete the two folders it printed (defaults in the table at the top). The key dir holds auth.json,
settings.json and the spend ledger spend.log. In the cache dir, pages and searches go
within the hour; the session id lists (an id’s URL cleared once its page is gone and its job an hour old),
index.json (rows of live pages only), jobs.json (commands cleared after an hour) and account.json stay
until you delete the dir.
Remove the host entry too: claude mcp remove fats (add --scope user|project to match), or delete the
fats entry from the host’s config file. fats never reads or writes other tools’ files.
9. Troubleshooting
| You see | Cause | Fix |
|---|---|---|
is `cmake` not installed? during the build |
CMake missing | install CMake 3.22+ (section 1) |
couldn't find any valid shared libraries matching: [...libclang...] |
libclang missing | install it (section 1) or set LIBCLANG_PATH to its folder |
a CMake error about ASM_NASM (Windows) ❓ |
NASM missing | install NASM, put it on PATH |
fats: command not found |
~/.cargo/bin not on PATH |
. "$HOME/.cargo/env", or use the absolute path |
host: server failed to start / ENOENT |
GUI app without your shell PATH |
absolute path from command -v fats |
keys none · search needs oxy or bd … → fats setup oxy (status), or ! no_key oxy · would try … → fats setup oxy |
no key saved; the page needs a provider | any provider’s key (section 4); plain pages still work |
! no_key oxy · env OXYLABS_WEB_API_KEY …SEDm not imported → fats setup import-env |
a key exported, never sent, none saved | fats setup import-env (copies it in) |
env OXYLABS_WEB_API_KEY …SEDm ≠ saved …6XBR · not used · replace: fats setup oxy |
the exported key is not the saved one | nothing, or fats setup oxy to replace the saved one |
! bad_key replace the saved key → fats setup |
key rejected | new key from the dashboard (fats setup oxy), fats setup again |
! no_zone … unblocker zones: a, b → fats setup bd zone:a or ! bad_zone bd <zone> → fats setup |
no zone picked, or an unknown one | fats setup bd zone:<name>; no zone yet: create a Web Unlocker zone in the Bright Data panel |
! key_mode auth.json is 644, readable by others → chmod 600 <path> |
key file too open | run the printed chmod |
! offline |
FATS_OFFLINE is set |
unset it |
! not_allowed <file> (over MCP) |
file outside the server’s working directory | save it under that directory |
! secret_file <file> |
a key or credential file (.env, id_rsa, *.pem, …): fats never reads one |
copy the part you need without its secrets to another file |
! bad_setting FATS_… · want … · using … |
an env value fats refused |
fix or unset that variable |
! bad_setting settings.json <name>=… · want … |
a saved value fats refused |
fats config unset <name>, or config set it again |
Every ! row ends with → and the command that fixes it; fats config shows each setting and its source.
Agent checklist
Run in order. Stop at the first failed check and report its output. Never print key values.
With a published release (section 2), its one-liner replaces steps 1–4: run it, check fats --version
starts with = fats , continue at step 5.
- Tools present. Check:
cmake --version(3.22+),cc --version,rustup --version,git --version. - Clone:
git clone https://github.com/fatsearch/fatsearch && cd fatsearch. Check:test -f rust-toolchain.toml. - Toolchain:
rustup toolchain install 1.99.0. Check:rustc --versionin the clone printsrustc 1.99.0. - Install:
cargo install --locked --path .Check:command -v fatsprints a path;fats --versionstarts with= fats. - Plain fetch:
fats https://example.comCheck: the first line starts with=and containsExample Domain. - Keys:
fats setupchecks the saved ones ($0, writes nothing). A key only in the environment is not used: ask the user to runfats setup import-envthemselves (it copies them in, never over a saved key). Check:fats | grep '^keys'showsoxy …XXXX auth.json(its last 4 chars),bd …ordecodo …. No key: skip; report that plain pages work, and thatfats setup oxy(orbd,decodo) gives the user a local form. - MCP server: run the
printf … | fats mcpblock from section 5. Check: the output contains"name":"fats"in thetools/listreply. - Register with the host in use (section 6), using the absolute path.
Claude Code:
claude mcp add --scope user fats -- "$(command -v fats)" mcp; checkclaude mcp get fats. Codex:codex mcp add fats -- "$(command -v fats)" mcp; checkcodex mcp list. Gemini CLI:gemini mcp add --scope user fats "$(command -v fats)" mcp; check/mcp. File-based hosts: write the JSON block withcommand= the output ofcommand -v fats, then ask the user to restart the app. - Final status:
fatsCheck: akeysrow andmcp: ready · fats mcp = stdio server, one tool fats(cmd).