What can an AI agent see on your Mac?
More than you think. When you connect an AI tool to your files, it can read everything in those folders, and so can any command it runs.
How AI tools get access to your files
There are three common ways an AI tool ends up reading files on your Mac:
- MCP servers. The Model Context Protocol lets apps like Claude Desktop and Cursor plug in "servers" that give the AI new abilities. The filesystem server reads and writes every file in the folders you list in its settings.
- Coding agents. Tools like Claude Code, Cursor and Codex work inside a project folder and can run Terminal commands there. A single command such as
cat ~/.zsh_historycan reach far beyond the project. - Uploads and attachments. Files you drag into a chat are sent to the AI provider.
None of this is a flaw in these tools. It's what makes them useful. The risk comes from what happens to be sitting in those folders.
What's usually exposed
| Where | What we commonly find |
|---|---|
| Project folders | .env files with live API keys for OpenAI, Anthropic, AWS and Stripe |
| Downloads | Passport and driver's license scans, tax returns, bank statements |
| Desktop | Password-manager exports (passwords.csv), screenshots of recovery codes |
| Home folder | Shell history with pasted tokens, SSH keys without a passphrase |
| AI tool settings | GitHub and Slack tokens saved in plain text in MCP server configs |
Check your own Mac in 2 minutes
Open Terminal and run this to see which folders your Claude Desktop MCP servers can read:
cat ~/Library/Application\ Support/Claude/claude_desktop_config.jsonLook for server-filesystem and the paths listed after it. Then look for anything under "env": those values are keys stored in plain text.
To check a project for keys before you point an agent at it, paste its .env file into our free secret checker. It runs entirely in your browser.
How to reduce your exposure
- Give filesystem MCP servers a dedicated folder, never your whole home folder or Downloads.
- Keep API keys in the Keychain or a password manager, and load them when a tool starts, instead of saving them in config files.
- Move ID scans and tax documents into encrypted storage.
- Delete password exports as soon as you've imported them.
- Rotate any key that has ever been in a file an AI tool could read.
Or let TidySecrets map it for you
TidySecrets reads the settings of Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Codex CLI, Zed, Continue. For each tool it shows the folders it can reach, the sensitive files inside them, and keys stored in plain text. Then it helps you fix them, all on your Mac.