List All Safari Tabs with AI on Mac
Let Claude, ChatGPT or Cursor list every open Safari tab on your Mac — title, URL and active tab. Free, native macOS MCP server. No API keys, runs locally.
The safari_list_tabs tool lets your AI assistant see every tab you have open in Safari — across all windows — with each tab's title, URL, and a flag for which tab is currently active. It's a read-only tool, so the AI never closes or changes anything; it just reads your live browsing state. A typical prompt looks like: "List all my open Safari tabs and tell me which ones are about pricing."
Because the AI gets the real list straight from your running browser, it can reason about what you're actually working on right now. Try: "I have too many tabs open — group my Safari tabs by topic and tell me which I can safely close." LMCP ships 150+ tools like this that connect AI assistants to your real Mac. Download LMCP to get started.
Which AI agents work?
LMCP works with both desktop AI clients and web-based AI assistants:
- Claude Desktop — auto-configures via local stdio
- Cursor — auto-configures via local stdio
- VS Code (GitHub Copilot) — auto-configures via local stdio
- Windsurf — auto-configures via local stdio
- Zed — auto-configures via local stdio
- Claude.ai (web) — connects through the LMCP Cloud Relay connector
- ChatGPT — connects through the LMCP Cloud Relay connector
- Grok — connects through the LMCP Cloud Relay connector
- Perplexity — connects through the LMCP Cloud Relay connector
Desktop clients talk to LMCP locally over stdio with zero manual setup. Web AIs reach your Mac securely through the Cloud Relay connector.
Automation
Listing tabs becomes powerful when chained with other LMCP tools. The AI can read your open tabs, then summarize each page's content, save the URLs to a Reminders list, email a curated link roundup to a colleague, or drop them into a Note for later. For example: "List my Safari tabs, summarize the three GitHub issues, and create a reminder to follow up tomorrow." One sentence triggers a multi-step workflow across Safari, Reminders, and Notes.
Context
This tool gives the AI your real browsing context — not a guess. When you ask "what was I researching?", the assistant reads the actual titles and URLs of your live tabs instead of asking you to copy-paste. That grounding makes its answers accurate and specific to what's on your screen right now, across every Safari window you have open.
Productivity
If you're a chronic tab-hoarder, manually triaging 40 open tabs is a slog. With safari_list_tabs, the AI does it in seconds: it can cluster tabs by topic, flag duplicates, identify the one you forgot you opened, and tell you what's safe to close. Researchers, developers, and writers save minutes every session by letting the assistant inventory and organize their browsing instead of scrolling through tab strips by hand.
Privacy & GDPR
Everything runs locally on your Mac. LMCP reads your Safari tabs directly through native macOS APIs and hands the result to your AI client — no tab list is ever copied to an LMCP server, and nothing is stored in the cloud. There are no API keys and no third-party accounts. This is GDPR-compliant by architecture: your data simply never leaves your machine.