Claude agent can't open websites? Fix the block
Why can't my Claude agent open websites?
Add https://mcp.usestring.ai?login to Claude or Claude Code as an MCP server and sign in with String. No API key is needed. Your agent gets a web_access_fetch tool that returns the page as Markdown, with proxies, browser rendering, and CAPTCHA handling on String's side. If you skip the sign-in, https://mcp.usestring.ai still answers fetch and search with no key, within a daily allowance of 50 requests per IP address.
The reason the agent failed in the first place is almost never the model. It is the request. A built-in fetch tool or a script the agent writes sends a plain HTTP request from a server or from your laptop, and sites with bot protection score that request before they send any content. The agent then gets one of three things back:
- A 403 or 429. Bot protection such as Akamai, DataDome, Cloudflare, or PerimeterX can refuse the request outright.
- A 200 that is not the page. A challenge page ("verify you are human", "Robot or human?") comes back with a success status, and the agent summarizes the challenge as if it were the content.
- An empty shell. The page builds itself in JavaScript, so a plain request gets a template with no prices, listings, or text.
An agent cannot fix any of these by retrying harder. Retrying the same request from the same IP with the same client usually gets the same answer.
Who this is for, and who it is not for
String is a web access API for developers and AI agents. It fits when your agent reads public pages: product pages, listings, docs, news, search results.
- For: agent builders and developers whose Claude, Claude Code, Cursor, or custom agent keeps failing on real sites, and who want one tool call instead of a proxy and browser stack.
- Not for: pages behind your own login, checkout flows, or anything a site's official API already gives you. If the site has an API you are allowed to use, use it.
- Not needed when: the agent only reads docs sites and blogs with no bot protection. A plain fetch works there, and a free local tool is the right choice.
Step 1: Connect the hosted MCP server
Claude Code. One command adds the server for every project, then one more signs you in:
claude mcp add --transport http --scope user string-web-access "https://mcp.usestring.ai?login"
claude mcp login string-web-access
Keep the ?login. Without it, the client connects with no key and is never asked to sign in, which still works but only within the keyless allowance.
Claude (desktop and web). Add https://mcp.usestring.ai?login as a custom connector and sign in with String when asked. No API key is needed.
Any other MCP client. Register https://mcp.usestring.ai (Streamable HTTP). With no credential it serves fetch and search within the daily allowance. For every tool, send Authorization: Bearer <your key> in the header. Setup for each client is in the MCP docs.
Step 2: Ask the agent to fetch the page again
Ask the same question that failed, and tell the agent to use String:
Fetch https://www.example.com/product/123 with web_access_fetch and give me the price.
web_access_fetch starts each request as a plain fetch and escalates to a real browser, a premium proxy, or CAPTCHA solving only when the target needs it. You do not pick the route. If a page builds its content in JavaScript, the agent can ask for rendering on that call.
Step 3: Decide when to sign in or add a key
The keyless allowance is for trying it: 50 requests and 100 credits per IP address per UTC day, on fetch and search only (auth.md). Sign in, or create an API key at portal.usestring.ai, when you need more than that or the other tools (sitemap, request, and every fetch option).
New accounts start with $5 of free credit, which covers 20,000 standard fetches, with no card needed. After that, pricing is per 1,000 successful requests: $0.25 for a standard fetch on Starter ($19 a month) and $0.16 on Growth ($99 a month). Failed requests are not billed. Rates as of October 2026.
How well does it get through?
In String's Web Data Frontier Benchmark run of November 20, 2026, 17 scraping APIs each fetched the same 100 bot-protected sites five times. String passed 499 of 500 requests (99.8%), the highest of the 17, with a mean latency of 4.40 seconds per target. By anti-bot vendor, String passed 100% of requests on the 23 Akamai sites and the 15 Cloudflare sites, and 99% on the 20 DataDome sites. The next-best provider passed 91.2%.
That is a benchmark of 100 sites, not a promise about yours. The keyless allowance exists so you can test the exact pages your agent fails on before you sign up.
What to do when it still fails
- A 403 with a
reasonfield means that destination is not enabled for your organization. Email support@usestring.ai rather than retrying (access control docs). - A 429 that says
Keyless limit reachedmeans your address has used today's keyless allowance. It resets at 00:00 UTC, or you can sign in or add a key. - A 401 on a tool other than fetch or search means that tool needs a sign-in or a key.
- The page is behind a login. String fetches public pages. It does not log in to your accounts for you.
For the general causes of blocks outside agents, see how to scrape without getting blocked and why a scraper works locally but gets blocked in Docker or Lambda. For what a web access layer is and when an agent needs one, see what is a web access layer for AI agents.
FAQ
Why can't my Claude agent open websites?
Most failures come from the request, not the model. Sites with bot protection score the IP, the client, and the browser before they send content, so the agent gets a 403, a challenge page with a 200 status, or an empty JavaScript shell. Retrying the same request rarely changes the answer.
Do I need an API key to fix it?
No. Add https://mcp.usestring.ai?login to Claude or Claude Code and sign in with String; no API key is needed. Without signing in, https://mcp.usestring.ai answers fetch and search with no key, within 50 requests and 100 credits per IP address per UTC day.
How do I add String to Claude Code?
Run claude mcp add --transport http --scope user string-web-access "https://mcp.usestring.ai?login", then claude mcp login string-web-access. The first command adds the server for every project. The second opens the sign-in.
Why does my agent say it read the page when it only got a challenge?
Many challenge pages return HTTP 200, so a tool that checks only the status code passes the challenge through as content. Have the agent check the page title and text for the content it expected, whichever fetch tool it uses, before it answers.
How often does String get through?
In the November 20, 2026 run of String's benchmark, String passed 499 of 500 requests (99.8%) across 100 bot-protected sites, the highest of 17 scraping APIs. Test your own pages with the keyless allowance before relying on that number.
What does String not do?
It does not log in to your accounts, complete checkouts, or replace a site's official API where one exists. It fetches public pages, searches the web, and maps a site's URLs.
Sources
- String, Web Data Frontier Benchmark, run of November 20, 2026: 100 sites, 17 providers, 5 attempts per site (write-up, raw results).
- String, MCP server setup and auth.md (keyless allowance), checked November 30, 2026.
- Anthropic, Connect Claude Code to tools via MCP (
claude mcp add --transport httpandclaude mcp login), checked November 30, 2026. - String, pricing, rates as of October 2026.