Was just looking over the Safari 27 release notes¹, which is part of macOS 27, and noticed this:
Web Driver
New Features
- Allow your agent to connect to a Safari browser for development and debugging via the Safari MCP server. (176038457)
Related (From July 1st)
Introducing the Safari MCP server for web developers
https://webkit.org/blog/18136/introducing-the-safari-mcp-ser...
So that's interesting. On the other hand, looks like WebXR support for Safari will never come.
---
¹ https://developer.apple.com/documentation/safari-release-not...
I've been using the Safari MCP in a "grocery agent" tool I built. It takes the weekly menu my wife puts together, turns it into a shopping list, and then uses Safari to add things to the shopping cart on Walmart's website. It's pretty solid, I like it more than the Chrome dev protocol I had been using before Safari.
How are you getting around bot detection shutting you out? I tried exactly this but for stop and shop.
I've actually never had it trip any bot detection, captchas, or anything like that, and haven't built anything into it for evading detection. If I had to guess, it's because I make sure to manually sign in to my Walmart account before it begins adding things to the cart.
This is the case for me too. If I try to automate sign in, it trips bot detection. But if I manually sign in then let the agent rip, I'm fine.
Not on macOS but have my own browser extension basically doing the same with Firefox, for use with agents.
It's using a clone of my real Firefox profile, and can "ping" me if it encounters a page that needs my human input, like a login page (as I don't give it access to my password manager) or captcha page. Although sometimes it "bypasses" the captcha page by itself, even though I've instructed it not to...
i ended up having to hot swap in an abliterated model just to solve the captchas and then move on.
Unfortunately, not well suited for stealth use cases for personal automation. Here's a comparison to an mcp tool that allows driving your live safari via osascript:
[1]: https://github.com/achiya-automation/safari-mcp#vs-apples-of...
75+ comments, HN thread
https://news.ycombinator.com/item?id=48769639
Given that Safari needs the most debugging and automation tooling for Safari was hardest to come by, this is a welcome change. I wonder if it works with pages on a connected iPhone though? Anyone tried it? Because debugging on iOS Safari is the most maddening. (No, responsive design mode doesn't cut it, iOS Safari has its own special bugs that don't manifest in desktop Safari merely emulating a phone viewport.)
True WebXR for the Apple ecosystem will never come. At least that’s what I’m assuming given their behavior so far
It's really powerful. I have been using it in Chrome for a while.
This is how to enable: chrome://inspect/#remote-debugging
This MCP server for Safari is pretty neat. I think I'm going to start automatting some tasks for our corporate websites.
> On the other hand, looks like WebXR support for Safari will never come.
Thanks for checking. What a mess. I'm so sick of the workarounds that have to make.
[dead]