HOW-TO GUIDE

How to let Codex or Claude Code test your website through Safari's MCP server

Based on a guide by Robin And The Dog on 7 Red Bits · Nov 25, 2026

You'll end with: A coding agent that opens your site in Safari, reads the console and network activity, takes screenshots, and tests forms.

Why it's worth having: The agent sees how the page behaves in Apple's browser directly, instead of you passing screenshots and console errors back and forth.

At a glance

WHO IT'S FOR
Web developers, QA testers, and engineers who maintain company or customer-facing websites.
LEVEL
Beginner
COST
Free to read. The method needs a Mac with Safari 27 or later and Codex or Claude Code.
YOU NEED
A Mac with Safari 27 or later · Codex or Claude Code · A public page or staging site to test

The method, in short

  1. 1In Safari, open Settings, Advanced, show web developer features, then turn on Allow remote automation and external agents.
  2. 2Register safaridriver with the --mcp argument as an MCP server in Codex or Claude Code with one Terminal command.
  3. 3Begin by asking the agent to open a URL, check the console, and take a screenshot, since tab requests before that can fail.
  4. 4Test only public pages or staging accounts with limited permissions, and keep private customer data off the test pages.

The guide has the setup commands for both agents, an agent profile tip, and a sample task to try.