Let AI agents find files on your Mac
Ask Claude, Codex, Gemini or another AI agent "where is last year's tax return?" or "what is filling my disk?" and it answers from Everything Locator's index, in a fraction of a second, instead of crawling the disk with find or du. The agent connects to Everything Locator on your Mac only, and it can look, never change.
Turn it on
- In Everything Locator, open Settings › AI Agents.
- Turn on Let AI agents on this Mac search with Everything Locator. The settings show On at http://127.0.0.1:…/mcp.
- Choose your app next to Set up and follow its steps below: Claude Code, Claude Desktop, Codex, Gemini CLI, Antigravity or other apps.
Everything Locator must be running for agents to reach it. Turn on Open at login in its General settings if you use agents every day.
For examples of what to ask when you remember only a little about a file, see find a file when you don't remember the name.
Claude Code
- Choose Claude Code next to Set up and click Copy with Key.
- Paste the line into Terminal and press Return. It looks like this, with your own port and key:
claude mcp add --scope user --transport http everything-locator http://127.0.0.1:52345/mcp --header "Authorization: Bearer …"
Claude Code then has the tools in every project. Check with claude mcp list, or type /mcp in a session. Then ask, for example: "Find the PDFs I downloaded this week."
Claude Desktop
- Choose Claude Desktop next to Set up and click Save Extension…. Everything Locator saves Everything Locator.mcpb, with your address and key inside.
- Open the saved file. Claude Desktop shows the extension and its six tools; click Install.
Claude Desktop runs the extension with its own Node.js, so there is nothing else to install. To remove it, open Claude Desktop's settings, then Extensions.
Codex
- Choose Codex next to Set up and click Copy with Key.
- Paste it at the end of
~/.codex/config.toml(create the file if it is not there), then start Codex again:
[mcp_servers.everything-locator]
url = "http://127.0.0.1:52345/mcp"
http_headers = { Authorization = "Bearer …" }
The Codex app and the codex command read the same file. In the codex command, /mcp lists the connected servers.
Gemini CLI
- Choose Gemini CLI next to Set up and click Copy with Key. (Everything Locator 1.4 has no Gemini CLI choice: update to 1.4.1, or choose Other apps and put its URL and key into the line below.)
- Paste the line into Terminal and press Return. It looks like this, with your own port and key:
gemini mcp add --scope user --transport http --header "Authorization: Bearer …" everything-locator http://127.0.0.1:52345/mcp
Check with gemini mcp list, or type /mcp in a session. Gemini CLI uses servers added for your user only in folders you trust; it asks the first time you start it in a folder.
Antigravity
- Choose Antigravity next to Set up and click Copy with Key. (Everything Locator 1.4 has no Antigravity choice: update to 1.4.1, or choose Other apps and put its URL and key into the line below.)
- Paste the line into Terminal and press Return. It looks like this, with your own port and key:
agy mcp add --header "Authorization: Bearer …" everything-locator http://127.0.0.1:52345/mcp
agy is Antigravity's command-line tool. It saves the server in ~/.gemini/config/mcp_config.json, which the Antigravity app reads too: in the app, open Customizations, then Installed, and restart Everything Locator under MCP Servers. Without agy, add this inside mcpServers in that file:
"everything-locator": {
"serverUrl": "http://127.0.0.1:52345/mcp",
"headers": { "Authorization": "Bearer …" }
}
Other apps
Choose Other apps to copy the three settings any MCP client asks for:
URL: http://127.0.0.1:52345/mcp
Header: Authorization: Bearer …
Transport: Streamable HTTP
The app must run on your Mac. Assistants that run in the cloud, such as a chatbot in a web browser, cannot reach 127.0.0.1 and so cannot use Everything Locator.
What agents can do
| Tool | What it does |
|---|---|
search | finds files and folders by name or path, in the full Everything search syntax: types, sizes, dates, wildcards, regex; and, through Spotlight, by a word inside files (content:) |
folder_sizes | what takes the most space inside a folder, at once, even for the whole disk |
find_duplicates | files with the same content among a search's results, the biggest waste first |
file_info | kind, size, disk space and dates of one item |
reveal_in_finder | opens a Finder window with the items selected, so you see what the agent found |
index_status | which folders are indexed and whether the index is ready |
No tool moves, opens, renames or deletes anything. If you ask an agent to clean up, it finds the files and you decide; most agents also ask before they run a command that changes files.
Terminal and scripts
Agents that work in a shell without MCP, and your own scripts, can use el, the command-line companion: el search report ext:pdf, el size ~, el dupes --in ~/Downloads. It uses the same access and key.
The Agent Skill
An Agent Skill is a short instruction file that agents read when a task calls for it. Everything Locator's skill tells an agent to search the index instead of crawling the disk, how to write a query, how to quote it for the shell, and never to delete what it found without asking you. The tools work without it; with it, agents choose them more often and write better queries.
Download: everything-locator-skill.zip (one file, everything-locator/SKILL.md). Or install it from Terminal:
# Claude Code
mkdir -p ~/.claude/skills/everything-locator
curl -fsSL https://www.everythingloc.com/download/everything-locator/SKILL.md -o ~/.claude/skills/everything-locator/SKILL.md
# Codex
mkdir -p ~/.codex/skills/everything-locator
curl -fsSL https://www.everythingloc.com/download/everything-locator/SKILL.md -o ~/.codex/skills/everything-locator/SKILL.md
# Gemini CLI
mkdir -p ~/.gemini/skills/everything-locator
curl -fsSL https://www.everythingloc.com/download/everything-locator/SKILL.md -o ~/.gemini/skills/everything-locator/SKILL.md
# Antigravity
mkdir -p ~/.gemini/config/skills/everything-locator
curl -fsSL https://www.everythingloc.com/download/everything-locator/SKILL.md -o ~/.gemini/config/skills/everything-locator/SKILL.md
In the Claude app, add the zip where its settings list your skills. Agents that support MCP resources can also read the whole search syntax from everything-locator://search-syntax; in Terminal, el syntax prints it.
In coding agents
Coding agents such as Claude Code, Codex and Gemini CLI search files all day. Inside the project they work on, their own tools (rg, grep, find) are quick, and they match text inside files exactly, phrases, patterns and code included, so keep them there. Everything Locator pays off when the search goes beyond the project: a config file in ~/Library, a download, a log, another repository, every .xcodeproj on the Mac, what fills the disk, or which documents anywhere on the Mac mention a word (content:, answered by Spotlight).
There an agent falls back to find ~ or du, which read the whole folder tree. On a Mac with about 3.8 million files, find ~ for a file name took over two minutes and du -sh ~/Library about one; a shell command in a coding agent is often stopped after two minutes, so the agent gets a late or incomplete answer and tries again. Everything Locator answers the same search in milliseconds, with a short list.
| The agent wants | Without Everything Locator | With it |
|---|---|---|
| a file somewhere in the home folder | find ~ -iname '*invoice*': minutes | el search invoice: instant |
| every project of a kind on the Mac | find ~ -name '*.xcodeproj': half a minute or more | el search '*.xcodeproj' |
| what fills a folder | du -sh ~/Library/*: about a minute | el size ~/Library |
Tokens: the answers are short either way, because agents trim long output, so the saving in tokens is small. What you save is time, and the retries after a search runs out of time.
Installing the Agent Skill is enough: agents load it when a search reaches beyond the project. Optional: an agent sometimes runs find out of habit before it looks at its skills, so to make the rule hold in every session, also add one line to your personal instructions, ~/.claude/CLAUDE.md for Claude Code, ~/.codex/AGENTS.md for Codex or ~/.gemini/GEMINI.md for Gemini CLI:
To find files outside the current project, or folder sizes, use el (Everything Locator) instead of find, mdfind or du: el search, el size. Inside the project, keep using rg and find.
What agents can see
- This Mac only. Everything Locator listens at
127.0.0.1, which other computers cannot reach, and sends what agents ask for nowhere else. What the agent's app does with the answers is up to that app: a cloud AI model sees the file names and paths it is given, as it sees anything else you share in the chat. - Only apps with the key. Each request must carry the key from your settings. New Key… turns every earlier setup off at once.
- Names, not contents. Agents see what the app's window shows: names, paths, sizes and dates, never what is inside files; a
content:search tells them which files contain a word. - Only the folders you allow. Under Agents can see only these folders, add the folders agents may search; leave it empty for everything the app indexes.
- You can watch. Recent requests lists the latest searches agents made, and turning access off stops them all.
If something goes wrong
- The agent says it cannot connect: open Everything Locator and check that Settings › AI Agents shows On. It needs Everything Locator Pro.
- "Another app uses port …": click Use Another Port, then set your agents up again, since the address changed.
- 401 or "refused the key": the key was changed with New Key…, so copy the setup again.
- The agent uses
findor Spotlight instead: ask it to use Everything Locator, or install the Agent Skill. - A file is missing: agents search the folders the app indexes and the folders you allow them. Add the folder in Settings › Indexing; hidden files are left out unless Index hidden files and folders is on.
Questions: [email protected].