alt.hn

7/3/2026 at 1:37:11 AM

The Safari MCP server for web developers

https://webkit.org/blog/18136/introducing-the-safari-mcp-server-for-web-developers/

by coloneltcb

7/3/2026 at 7:38:51 AM

I have been using Chrome's official MCP devtools server since Nov 2025.

https://github.com/ChromeDevTools/chrome-devtools-mcp

Before that I used Chrome web drivers but MCP is faster and more capable.

I also instruct LLMs to test my pages on Firefox using its official MCP to make sure they work in Firefox too:

https://github.com/mozilla/firefox-devtools-mcp

Now I will add Safari to the compatibility tests. cool

by bel8

7/3/2026 at 10:17:36 AM

Is there a difference between using these and using the playwright mcp with Chrome/Firefox config?

by Raed667

7/3/2026 at 1:08:37 PM

I can speak for Chrome's MCP which I have more experience.

devtools MCP will have access to more deep level fetures such as performance profiling, lighthouse and network requests in details (headers, auth, cookies...).

For example, I had success using chrome devtools mcp to debug frontend performance issues. The LLM captured and analyzed some nice traces and was able to isolate bottlenecks and unnecessary repaints and reflows.

by bel8

7/3/2026 at 2:56:00 PM

Network request access is really helpful!

When having access to both backend and frontend, and then seeing what actual code is requesting and returning can really help with hunting bugs or doing basic QA.

by elAhmo

7/3/2026 at 4:05:06 PM

I used the chrome MCP to profile a slow react page at my company, set a /goal and had it iterate until it achieved under 100ms responsiveness to actions.

Claude was able to identify the slowness and use various react tricks to fix the specific issues, all without my input.

I don’t think the playwright MCP can do this, unless I’m mistaken

by Syntaf

7/3/2026 at 8:07:48 PM

Sometimes I find myself wanting the other way round, instead of letting LLM tell browser what to do, I want what I did manually in the browser be visible to LLM. I made a MCP to cover that use case

by a_c

7/3/2026 at 2:52:11 PM

I am especially hopeful for this for my daily stuff, not just testing.

Meaning, having a hopefully seamless way to perform some automations in the browser on my behalf but since it’s the browser I’m logged in to, it just makes the handoff between myself and the agent feel more seamless.

And that’s because I’ve used safari as my main browser, not chrome, because it isn’t as much of a battery hog.

by atonse

7/3/2026 at 5:07:49 PM

I'm working on Hyperia and it has full agentic control of a webpane (Electron based) for doing crazy things with it: https://github.com/deepbluedynamics/hyperia.

Uses an agent container orchestrator as well, which has MCP tools to expose ports in the container (and thus can display the work in the webpane): https://github.com/DeepBlueDynamics/nemesis8

I'll add the Safari MCP wiring to n8 today...

New releases landing tonight with more features.

by kordlessagain

7/3/2026 at 6:33:07 PM

> It also does not have access to your personal information in Safari (e.g. AutoFill or other browser activity).

I read this as meaning you won't be logged into the instance the agent interacts with

by ccouzens

7/3/2026 at 7:47:54 PM

> it just makes the handoff between myself and the agent feel more seamless.

This terrifies me because there's no way for the services on the other side of the browser to know who is doing what.

How do you constrain the agent?

How do you keep track of what you have done vs the agent?

What am I missing? Am I just behind the times?

Edit, added reference to what terrifies me.

by mooreds

7/3/2026 at 8:30:28 AM

I'd personally suggest Playwright-CLI: https://github.com/microsoft/playwright-cli

It works much faster for me than the MCP servers I tried.

by egeozcan

7/3/2026 at 9:09:11 AM

Also, spel (https://github.com/Blockether/spel) for persistent browser sessions (through a daemon) and Chromium, Firefox, and WebKit engines.

by jwr

7/3/2026 at 3:57:32 PM

playwright is AWESOME for e2e testing (works great with electron!).

although, i use the playwright mcp. :)

by jeffyaw

7/3/2026 at 6:35:56 PM

The CLI is, IME, faster and less buggy than the MCP.

by robbs

7/3/2026 at 8:36:50 PM

the CLI is also Microsoft's preferred way to use it with agents:

> playwright-cli is best for coding agents (Claude Code, GitHub Copilot, etc.) that favor token-efficient, skill-based workflows. CLI commands avoid loading large tool schemas and verbose accessibility trees into the model context.

they do still recommend the MCP for long-running autonomous workflows (e.g. a UAT agent).

by beaugunderson

7/4/2026 at 1:29:19 AM

i will be digging into the CLI option, kudos.

by jeffyaw

7/3/2026 at 11:53:03 AM

All this felt heavy to me. Full browser, debug protocol, DOM dump on every read. MCP vs CLI is the smaller question, what sits underneath matters more. So I built a small Rust binary that drives the system webview directly and returns state tokens and deltas instead of the DOM. Loading the HN front page costs the agent about 50 tokens. It speaks both MCP and CLI, pick whichever your agent prefers.

https://github.com/frane/vibesurfer

by frb

7/3/2026 at 2:12:33 PM

There has been the (Apple provided) safaridriver for a couple of years. It speaks WebDriver W3C and can be used to interact with a Safari instance.

by defied

7/3/2026 at 8:10:48 AM

But does Apple really care about web developers?

How do you test on Safari if you don’t have Apple devices?

How difficult can it be for Apple to make barebones virtual machines with just Safaris?

by demetris

7/3/2026 at 9:57:51 AM

> How do you test on Safari if you don’t have Apple devices?

How do you test a Playstation game without a Playstation (dev kit)? How do you test some hardware firmware without having the hardware? How can you run a program without the hardware required to run the program, if no emulator/simulator is available?

I'm almost lost at words how these are questions, unless they're theoretical and some diatribe comes afterwards that has the actual point trying to be made, but it never came.

Yes, some things run only on specific hardware and without virtualization/emulation, you're not supposed to test those things outside of the hardware. Been a thing for decades, probably since the beginning of computing.

> How difficult can it be for Apple to make barebones virtual machines with just Safaris?

Almost nothing Apple does is seemingly decided by how difficult it is, for better or worse, but are strategic decisions. If you haven't caught up with that they're building a walled garden for themselves, I'm not sure what could convince that they are. I think this is extremely clear for most people. If you don't like it, don't play there, like the rest of us.

by embedding-shape

7/3/2026 at 1:58:47 PM

I don't think it's fair to compare development for web, which is supposed to be an open standard, with developing for a proprietary piece of hardware like the Playstation.

If you want to develop a game for the Switch and ignore the Playstation entirely, you can, and then you don't need a Playstation (dev kit).

When you're developing for the web, you're ideally making something that runs regardless of the user's browser. When you start getting bug reports in from Safari users, how else are you supposed to fix them? Cheapest option is detect if they're a Safari user and tell them to use another browser, but that's not really ideal for anyone except Google.

by hbn

7/3/2026 at 2:52:26 PM

Having access to a representative spread of devices is the reality of web development. As a web developer that doesn't own any Android devices, I was "forced" to buy a couple of Android devices so that I could squash bugs (some of which couldn't be replicated in emulators) and to refine aspects of the physical touch experience that emulators cannot emulate. I don't resent these purchases, because I understand it's the reality of developing for a diverse open web.

And yet, oh how often I hear developers resent having to buy an Apple device. Every time, I look at my little stack of Android devices and instinctively roll my eyes.

> Cheapest option is detect if they're a Safari user and tell them to use another browser

I suppose the cheapest option for me was to detect if they're an Android user and tell them to use another device. It sounds silly to say it — it is silly to say it — but that's exactly the same logic.

by simondotau

7/3/2026 at 4:42:54 PM

If you're developing for the web and you're not testing you're site on real hardware, including a handful of iPhones and a handful of Android devices, your not actually testing your software.

You can't just check Chrome and assume everything else will exhibit the same behaviors. Standards exists, but so do bugs.

by etchalon

7/3/2026 at 1:08:57 PM

A lot of folks want to run tests off a GitHub action I.e. on a server somewhere. Ideally you want your test stack to fit in a docker image. So this does suck for developers in the respect and you could imagine apple releasing a special docker image that just ran safari if they wanted to really make it easy to develop for thier platform.

However, I imagine someone will fill a server rack with cheap old macs and offer and safari mcp as a service…

by shubb

7/3/2026 at 1:29:11 PM

> A lot of folks want to run tests off a GitHub action I.e. on a server somewhere.

Understandable, but also if you're dealing with these sort of projects, you kind of have to setup that sort of automation yourself in an office/someone's house, unless you find some provider that already hosts that sort of thing, like the various Apple/vendor-specific services for that.

It's also not a very new thing really, MacStadium for example been around since like 2010 sometime.

by embedding-shape

7/3/2026 at 1:42:08 PM

GitHub has been providing macOS runners for a while now.

by alphabettsy

7/3/2026 at 8:17:05 AM

Even in the Chrome hegemony you don't want to be missing Edge and many others, so you test chromium.

Similarly, while not perfect you can test WebKit, and if you like, on Linux or Windows, for example:

https://orionbrowser.com/platforms/linux

Apple wouldn't be in the business of VMs with Safari, but if you're looking for MacOS VMs, turn to a CSP: https://aws.amazon.com/ec2/instance-types/mac/

Many have software testing orchestration pre-wired.

by Terretta

7/3/2026 at 8:40:11 AM

I know of the solutions. I use a few of them.

I have multiple Playwright webkits on both Windows and Linux. I have Epiphany on Linux (not 100% same webkit). I have subscriptions for testing on real hardware.

This is why it seems to me that Apple does not really care about web developers.

by demetris

7/3/2026 at 11:41:02 AM

No way, is Orion Browser available on other platforms as well now? Does it mean I can finally do tests for Safari (webkit) without owning an Apple product or paying for a vm? Incredible.

by Alifatisk

7/3/2026 at 1:26:35 PM

> But does Apple really care about web developers?

They just released this new tool, so yes.

by andrethegiant

7/3/2026 at 9:49:59 AM

Just like you would test IE on Linux or OS X.

by pjmlp

7/3/2026 at 10:20:59 AM

  ### THIS FILE IS AUTOMATICALLY CONFIGURED ### 
  # Changes to this file will not be preserved.
  # This file will not be recreated if removed.
  X-Repolib-Name: Microsoft Edge
  Types: deb
  URIs: https://packages.microsoft.com/repos/edge-stable
  Suites: stable
  Components: main
  Architectures: amd64
  Architectures: amd64
  Signed-By: /usr/share/keyrings/microsoft-edge.gpg
Come on! The year is not 2001.

by demetris

7/3/2026 at 11:08:43 AM

I said IE, not Edge.

by pjmlp

7/3/2026 at 12:04:03 PM

But why would you still test for IE in 2026?

Honest question. I’s < .5% market share and retired since 2023.

by frb

7/3/2026 at 1:19:42 PM

I think pjmlp is just being contrarian.

First, the Microsoft browser these days is Edge, not IE. IE is dead.

Second, if you want, or wanted in the past, to test on Internet Explorer without a Windows computer, you could just virtualize Windows. Windows can be legally virtualized on any hardware and on any host operating system.

Starting from 2013, you didn’t even need to pay for a Windows license to do that:

https://archive.org/details/modern.ie-vm

by demetris

7/3/2026 at 1:59:40 PM

Nope, making a point.

You would still need a VM for that.

Just like you can get a macOS VM, plenty of ways to get them.

by pjmlp

7/3/2026 at 2:35:04 PM

What plenty of ways?

How can I run a macOS virtual machine LEGALLY on my Linux or Windows machine?

by demetris

7/3/2026 at 2:59:34 PM

Are seriously asking with a straight face? Just do what a generation of people have done with Windows and run an unlicensed version of macOS. There's a whole generation of people who can recite Windows product keys off by heart. (FCKGW, anyone?) Entire empires of indie web development will have been done on improperly licensed versions of Windows.

As for people working in a serious professional corporation that cannot condone casual piracy, buy a Mac mini and expense it, or get an account on MacStadium.

by simondotau

7/4/2026 at 12:18:29 AM

F*** me!

The owner of whirlpool.net.au commenting on my comment.

I am replying because of the huge respect I have for the work.

Yes, I am seriously asking with a straight face.

Yes, I know how to pirate. I’m from this planet. :-D

Pirating, and jumping through hoops to do things certain vendors didn’t want done, was fun while I was learning. And educational. Super educational, in many respects.

But it is not fun anymore for me. There are other things these days that can get me banging my head against walls, and they are, in total, more fun and more educational.

by demetris

7/3/2026 at 4:07:11 PM

There are the illegal ones, and the legal ones on cloud providers.

by pjmlp

7/3/2026 at 2:01:07 PM

Making a point that Microsoft just like Apple, didn't necessarily made it easier.

Naturally Chrome forks work everywhere, given that so many devs have sponsored Google's takeover the Web.

by pjmlp

7/3/2026 at 3:57:57 PM

Microsoft actually offered free VMs with different OS and IE versions to make testing easier.

by TheAceOfHearts

7/3/2026 at 2:19:52 PM

I've been telling agents to run Chrome and talk to it directly via the CDP recently and finding that to work very well.

by simonw

7/3/2026 at 9:43:12 PM

I'll have to try that. how does it compare to using playwright? it seems like one advantage of playwright is being able to use it with multiple browsers, at least as far as web development goes. if these browser-specific tools end up being faster or more token efficient then it's probably the better pick for task automation and claws

by motoroco

7/3/2026 at 10:16:11 PM

Yeah, the big advantage of playwright is that it's cross-browser. It's still my go-to tool for automated testing - I use the CDP trick for one-off automation tasks.

by simonw

7/3/2026 at 3:39:22 PM

Indeed. This works much better and faster than the mcp route.

by michelb

7/3/2026 at 10:17:44 AM

> There are many ways to build for the web, both with and without AI. If AI is a part of your workflow, we think this tool will help make it even more productive. And if it isn’t, that’s OK too.

Crazy thing to say in 2026 where if you write code and not delegate every bit to an agent you're considered a noob by some people.

by quantumHazer

7/3/2026 at 10:20:44 AM

The opposite was considered two years ago a crazy thing to say. I'm glad this changed and people using ai don't have to hide in the closet anymore for doing so.

by siva7

7/3/2026 at 10:27:45 AM

When have people using AI to develop ever had to hide in any closet? It's the most public "new hotness" ever.

by dofm

7/3/2026 at 11:45:43 AM

That’s the point I think. Remember the controversy when Github Copilot came out? Not because where it got its data from, but because people didn’t feel like they wrote code anymore, they just tabbed the autocompleted snippets and was finished with a task in much shorter time.

by Alifatisk

7/3/2026 at 2:03:01 PM

It wasn't nearly as good 2 years ago.

by hbn

7/3/2026 at 12:36:32 PM

Which part makes it crazy? The fact that they felt the need to add this disclaimer to try to assuage the fanatical anti-AI contingent?

Like this is specifically a tool for AI-augmented development, and they had to add this "but also, thoughts and prayers for you non-AI people" is incredibly weird, but not in the way you seem to think it is.

by llm_nerd

7/3/2026 at 1:40:23 PM

MCP for browser automation is interesting because Safari's WebKit engine is the one most AI agents can't easily drive (Playwright and Puppeteer are Chromium-first). Having an MCP server for it could fill a real gap in cross-browser testing for agent workflows.

by jickmao

7/3/2026 at 2:20:43 PM

Does the websites get some flag or clue that this is an AI bot interacting?

by mrtksn

7/3/2026 at 5:11:15 PM

How are the MCP servers compared to Playwright?

by efitz

7/3/2026 at 5:14:23 PM

PLayWright is not built into browsers...?

by noiv

7/3/2026 at 5:46:41 PM

What is the difference in functionality?

by efitz

7/4/2026 at 12:59:10 PM

With PlayWright you find bugs and with MCP you remove them.

by noiv

7/3/2026 at 6:53:11 AM

so it's a crossover of dev tools and LLM? sounds sane enough i'd say

by croisillon

7/3/2026 at 7:16:57 AM

I wonder if it supports Private Relay. Private Relay is great for getting around scraping blocks because they explicitly whitelist apple private Relay ips.

by Onavo

7/3/2026 at 7:37:06 AM

Should do. Private relay really would be a sweet alternative to residential scraping proxies, but I’d expect sites to put in additionally checks and captchas before too long.

by greggsy

7/3/2026 at 7:26:54 AM

Which sites explicitly whitelist Private Relay IPs?

by reader9274

7/3/2026 at 8:11:30 AM

https://developer.apple.com/icloud/prepare-your-network-for-... has a guide for web server operators, including a GeoIP CSV which could conceivably be used for whitelisting. More concerning is that they're plugging private access tokens there, which allows Apple to vouch that you're a human running their hardware.

by hnav

7/3/2026 at 11:51:38 AM

should say "see how my website performs on safari"

by adam12345

7/3/2026 at 7:37:49 AM

Does this support mobile simulator safari too

by AIorNot

7/3/2026 at 8:48:23 AM

[flagged]

by aniketsaini777

7/3/2026 at 8:06:52 AM

[dead]

by jkwang

7/3/2026 at 8:01:23 AM

[flagged]

by N_Lens

7/3/2026 at 7:23:12 AM

Building something similar for Chrome and Firefox browsers: https://github.com/DO-SAY-GO/WebCLI - a CLI not MCP. Tho am considering MCP for distribution, even tho agents love the CLI and the proof demos speak for themselves.

The reason I did not include Safari was there wasn't enough parity between its Safaridriver surface and what Bidi/CDP give now. Safari is doing Bidi tho, iirc. So ...soon perhaps. ;) ;p xx ;p

by keepamovin

7/3/2026 at 10:45:59 AM

Not sure you want to hear this but there is 0% chance I will ever bring up a product with a vulgar name at work.

by olmo23

7/3/2026 at 5:03:11 PM

Introducing a new Linux distribution which comes with the yiff sound server, the GIMP image editor, and provides for web browsing entirely using FuckUI.

by lynndotpy

7/4/2026 at 10:41:44 AM

Hahahaha lol. That’s a good point.

by keepamovin

7/3/2026 at 2:07:03 PM

I understand that. Hence the name ‘correction’

by keepamovin

7/3/2026 at 7:32:08 AM

Not really sure why your project needs to be so… edgy?

by greggsy

7/3/2026 at 9:25:24 AM

Marketing iterations. Plus dang downweighted my posts after I got the biggest Show HN of last year, so I'm trying harder to get attn. HN maybe isn't the big launch - but it's kinda a legacy thing for me. Can't blame a guy for tryin

The actual site is: https://duetbrowser.com/

by keepamovin