Repository navigation
cloudflare and playwright mcp
Your agent opens a page and gets an interstitial instead. The same page in your own browser, on the same machine, loads fine. That asymmetry is the whole diagnostic, and it points away from the place people look first.
A challenge is the visible end of a decision that started earlier. Three layers feed it, and they are not equally weighted.
The network path. Where the connection came from and what kind of address it is. A cloud host is a different category from a domestic connection before any page has loaded. If your agent runs in a container on a rented machine, this alone can decide the outcome, and nothing about your browser will change it.
The connection's own shape. The properties of the TLS handshake and the HTTP/2 layer, which vary by client library and build. This is why a scripted HTTP request and a real browser get different receptions from the same address: they do not look alike underneath, whatever the headers say.
The browser and the interaction. What the page can observe once it runs: whether the browser reports automation, whether the properties are internally consistent, and how the pointer and keyboard behaved. A stock automation build is a recognisable set of choices here.
Notice that the third layer, the one an MCP server can influence, is the last one. That ordering is the reason most "Cloudflare blocks my MCP server" reports are not about the MCP server.
Four differences, all of which usually apply at once:
-
Your browser has been alive for months. History, cookies, a profile that
has existed. The agent's is minutes old, and with
--isolatedit is seconds old. - You are already known on that site. A returning visitor with a session is a different proposition from a first request.
- Your pointer moves like a hand. The agent's does not, unless the layer under it is producing input at the OS level.
- The build differs. Your browser is a retail install; the agent's is whatever the server launched.
Warm the session in a real browser and reuse it. Solve the interstitial
once, by hand, in a headed browser, then start the agent from that saved state.
--storage-state on Microsoft's server takes exactly this. It is the highest
value change in this list and the one most people skip because it feels manual.
Move the address. If you are on a cloud host, this is the first layer and it is decisive. Playwright MCP with a proxy, with the three leaks that a proxy alone does not close.
Slow down and vary. Rate is judged. Identical intervals are judged harder than fast ones.
Change the browser, last. This is where an engine-modified server differs from a stock one, and it only matters once the first two layers are not the cause. Stealth MCP servers compared.
Header spoofing on its own. A user-agent string that disagrees with everything else the browser reports is worse than the honest one, because the disagreement is itself a signal.
And no MCP server, this one included, gets you past a challenge as a property of being that server. Playwright MCP and captchas is the direct statement, and it applies whatever a README says.
Ask whether the site has a documented API or an export. On a Cloudflare-fronted site the answer is often yes, and the sanctioned route is faster to build, stable across their next configuration change, and permitted. The instinct to treat the challenge as the problem to solve is what turns an afternoon into a week.
Why does Cloudflare block my MCP browser? Most often the address and the freshness of the session, not the server.
Does a stealth MCP server get past Cloudflare? Not as a property. It changes the third of three layers.
Will a residential proxy fix it? If the address was the cause, often. Test before buying: run the same page from a phone hotspot.
Can I reuse my own logged-in session? Yes, and it is the most effective single change. Save the storage state from a browser where you passed the challenge.
Is Turnstile the same as the interstitial? Related but not identical. The interstitial is the managed challenge in front of a page; Turnstile is the widget a site embeds. Both score the session rather than only testing a puzzle.
See also: Playwright MCP session getting blocked, why an agent gets blocked, and when the agent gets blocked.
-
microsoft/playwright-mcp, retrieved 2026-09-10, for
--storage-state,--isolatedand the browser options. - Cloudflare's own public documentation on managed challenges and Turnstile for what each product is.
- The engine wiki's transport-level notes for the second layer above.
Written by a project whose engine sits in the third layer. The page says the third layer is the last one to look at, which is inconvenient and correct.
- OpenAI Operator alternatives
- Open-source Operator-style agents
- Is OpenAI Operator still available?
- OpenAI Operator vs Claude computer use
- browser-use alternatives
- Choosing an AI browser agent
- Open-source AI browser agents
- Open-source computer-use agents
- What is an AI web agent?
- AI browser agents vs traditional scraping
- Cloud browser infrastructure for AI agents, explained
- Browserbase alternatives
- Firecrawl vs an AI browser agent
- Skyvern alternatives
- Stagehand vs browser-use
- Project Mariner is gone: what replaced it
- Manus alternatives
- Gemini computer use vs Claude computer use
- A stealth browser MCP, reviewed honestly by its own wiki
- AI browser vs AI browser agent: which one do you want?
- AI browser agent vs RPA: which one fits the job
- AI browser agent vs n8n, Zapier and Make
- Vercel agent-browser alternatives, compared honestly
- What is an agentic browser? Definition and the two kinds
- Open-source agentic browsers: the three layers, compared
- Choosing an MCP server for browser automation: four axes
- Stealth MCP servers compared: Camoufox, nodriver, Patchright
- Playwright MCP alternatives, and the three you don't need
- Autonomous browser agents: the four rungs of autonomy
- What is actually free in the AI browser agent stack
- browser-use on GitHub: what the repo actually gives you
- Playwright MCP vs Chrome DevTools MCP: different jobs
- How to choose among MCP servers: a map by category
- Which MCP servers are worth adding to Claude Code
- MCP on GitHub: finding servers and judging them fast
- MCP vs an API: the decision, and what the wrapper costs
- MCP alternatives: when the protocol is the wrong shape
- Why does my AI agent get blocked?
- The timing signal AI agents give off
- Agent retry loops trip rate limits, not fingerprints
- Claude computer use detected as a bot
- browser-use getting blocked: what you can and cannot change
- Playwright MCP session blocked: four causes, four fixes
- Playwright MCP and captchas: what actually gets you past
- Cloudflare and a browser MCP server: what is being read
- Can an AI agent solve a captcha? The honest answer
- Getting an AI agent to fill out forms
- The best model for an MCP browser agent, and what it really costs
- Browser problem or model problem?
- How to use a Playwright MCP server with Claude Code
- Extracting data to a CSV with an AI agent
- Monitoring a page for changes with an AI agent
- How to let Claude Desktop control a browser
- How to add a browser to Cursor as an MCP server
- Using an AI agent to hunt for apartments
- Getting website data into Google Sheets with an AI agent
- Using an AI agent to download invoices from portals
- AI agents for web research
- Using an AI agent to test your own website
- How to add a browser to Cline as an MCP server
- Posting to social media with an AI agent
- Posting to Facebook with an AI agent
- Posting to Instagram with an AI agent
- Posting to X with an AI agent
- Automating LinkedIn posts: read this first
- Appointment bots: what they are and what an agent can legitimately do
- Track prices across sites with an AI agent
- Build a lead list with an AI browser agent
- Run an AI browser agent on a schedule
- AI browser agent with a local LLM: what changes
- Should you log your AI agent into your accounts?
- How to write a task an AI browser agent can follow
- Move data between two web apps with an AI agent
- The MCP server
- How the tools are shaped, and why
- Playwright MCP vs the Playwright CLI: which fits when
- Playwright MCP: browser is already in use, and the fix
- Playwright MCP best practices: four decisions that matter
- Playwright MCP with a proxy, and the three leaks it leaves
- A browser MCP server in GitHub Copilot: setup and limits
- Using a browser MCP server for web scraping: the pattern
- Which LLM for browser automation: the four properties
- How to build a browser agent, and what to take instead
- Getting an AI agent to log into a website: three routes
- MCP tools, resources and prompts: who controls each
- How many MCP tools is too many? The context arithmetic
- How to build an MCP server: the decisions, not the scaffold
- Local or remote MCP server: what changes, and what does not
- Writing an MCP client in Python: the thirty-line version
- Self-hosted AI agent: what one actually costs to run
- How long an AI browser agent takes per step, measured
- Text, HTML, snapshot or screenshot: what the agent should read
- Giving an AI browser agent a stopping condition
- Keeping an AI browser agent out of destructive actions
- Why did the AI agent click the wrong thing
- When the page changes under the AI agent
- Running one AI agent task across a list of sites
- Seeing a page as it appears in another country
- Getting data out of a dashboard with no export button
- Two browsers in one session: main and support
- Finding the dead links on a site with an AI agent
- Filling a CRM record from a company's website
- One form submission per spreadsheet row, with an AI agent
- Dated screenshots of a page as evidence
- Checking order and delivery status with an AI agent
- Reading a PDF that opens inside the browser
- Summarising a long page or thread with an AI agent
- Collecting every image on a page with its caption
- Collecting event and course listings with an AI agent
- Cancelling a subscription with an AI agent
- What an AI agent can and cannot do inside an iframe
- Shadow DOM and an AI agent: you can click it, you cannot read it
- How to add a browser to Codex as an MCP server
- What a page snapshot costs, per control
- How to let Gemini CLI use a browser
- Native selects and the ones that only look like selects
- Clicking by selector or by coordinates
- How long the agent waits before it gives up
- What a second browser costs
- Uploading a file with an AI agent, and why this one cannot
- Watching the agent work, and when it is worth it
- When not to use an AI browser agent
- Agent or script: deciding once instead of every time
- Using the keyboard instead of the mouse
- Secrets in an agent task: where they end up
- What an agent run should log
- Deduplicating what an AI agent collects
- Normalising values across sites
- Validating an AI agent's output
- Reading a table with an AI agent
- Driving a site's own search and filters
- The task works headed and fails headless
- How to let the AdaL CLI use a browser