How to give Claude web access with MCP (Claude Desktop, Claude Code, Cursor)
Add a web-scraping or browser MCP server in a few minutes: where each client keeps its config, the exact claude mcp add syntax, what Claude gets back when it reads, screenshots, or browses a page, and how to fix the errors that stop servers from starting.
Last updated
Short answer
To give Claude web access, add an MCP server that reads or drives web pages. In Claude Code, run claude mcp add playwright -- npx -y @playwright/mcp@latest for a browser it can click through. In Claude Desktop, add the server to claude_desktop_config.json and restart. For clean page text, screenshots, or PDFs without a local browser, add renderkit-mcp with an API key.
Claude Code ships with two web tools of its own: WebSearch, and WebFetch, which asks a separate model call a question about a page and returns the answer, so for most pages Claude doesn't see the full text. Claude Desktop and Cursor rely on what you connect. An MCP server fills the gaps: the whole rendered page as markdown, pages that need a real browser, clicking and typing, screenshots and PDFs you can share, and sites you're logged into.
This guide sets up two servers that cover most needs: renderkit-mcp for reading, screenshotting, and archiving pages (RenderKit is our product, so we know its output exactly), and Microsoft's free Playwright MCP for interactive browsing. The same steps work for any server; our comparison of browser MCP servers covers the alternatives, from Firecrawl and Jina to Chrome DevTools MCP.
What MCP is, in one minute
The Model Context Protocol is an open standard for connecting AI applications to tools. The AI application (Claude Desktop, Claude Code, Cursor) is the client; a server is a program that advertises tools with names, descriptions, and input schemas. When you ask for something one of those tools can do, the model calls it with arguments, the server does the work, and the result goes back into the conversation.
- Local (stdio) servers are launched by the client as a child process, usually with
npxoruvx, and talk over standard input and output. Both servers in this guide are local. - Remote (HTTP) servers run on someone else's infrastructure and are reached by URL, such as Jina's
https://mcp.jina.ai/v1. - A local server isn't necessarily a local browser:
renderkit-mcpruns on your machine but renders pages through RenderKit's hosted API, while Playwright MCP starts a real browser on your machine.
Pick the right server for the job
| You want Claude to… | Use | Why |
|---|---|---|
| Read or scrape a page into the conversation | renderkit-mcp (extract), Fetch, Jina, Firecrawl | Main content as markdown in one call, no clicking needed |
| Click, log in, fill a form, page through results | Playwright MCP | Keeps a browser open and acts on the page step by step |
| Use sites you're signed into in Chrome | Claude in Chrome (claude --chrome), Chrome DevTools MCP with --autoConnect | Acts inside your real browser profile |
| Give you a screenshot or PDF link | renderkit-mcp (screenshot, pdf), Microlink | Returns a hosted file URL you can open or share |
| Debug your own web app | Chrome DevTools MCP | Network, console, performance traces, Lighthouse |
| Crawl a whole site | Firecrawl MCP | map and crawl tools discover and fetch many pages |
Step 1: Check Node.js and npx
Both servers run through npx, which comes with Node.js. Check in a terminal before touching any config, because a missing npx is the most common reason a server never starts:
node -v # renderkit-mcp needs Node.js 18+, Playwright MCP needs 20+
npx -vIf either command fails, install the current LTS release from nodejs.org, then restart the AI app so it picks up the new PATH. For renderkit-mcp, also create a free key in the RenderKit dashboard: the trial includes 500 credits over 14 days with no card. Keys created during the trial start with rk_sandbox_ and keys created on a paid plan with rk_live_; either works in the configs below.
Step 2a: Add a browser MCP to Claude Desktop
Claude Desktop reads local MCP servers from a JSON file. The quickest way to open it is the Claude menu → Settings… → Developer → Edit Config, which creates the file if it doesn't exist yet.
| OS | Config file | MCP logs |
|---|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json | ~/Library/Logs/Claude |
| Windows | %APPDATA%\Claude\claude_desktop_config.json | %APPDATA%\Claude\logs |
| Linux | ~/.config/Claude/claude_desktop_config.json | ~/.config/Claude/logs |
Put both servers under mcpServers. The key in env is passed only to that server's process:
{
"mcpServers": {
"renderkit": {
"command": "npx",
"args": ["-y", "renderkit-mcp"],
"env": { "RENDERKIT_API_KEY": "rk_live_your_key" }
},
"playwright": {
"command": "npx",
"args": ["-y", "@playwright/mcp@latest"]
}
}
}- Fully quit Claude Desktop and open it again. Closing the window isn't enough; the app reads the file at startup.
- Click the "Add files, connectors, and more" button at the bottom left of the message box to see the connected servers and their tools.
- If a server is missing, the cause is almost always in
mcp.logormcp-server-renderkit.login the logs folder above; the troubleshooting section below walks through the usual fixes.
This file is for local servers. Remote MCP servers are added as custom connectors instead: Customize → Connectors → + Add → Add custom connector on Pro and Max plans, set up by an Owner on Team and Enterprise. Free accounts can add one custom connector.
Step 2b: Add an MCP server to Claude Code with claude mcp add
In Claude Code you don't edit JSON by hand: claude mcp add writes it. The syntax is claude mcp add [options] <name> -- <command> [args...]. Everything after the -- is the command Claude Code runs, so -y reaches npx instead of being parsed as a Claude Code option. Environment variables go in --env KEY=value after the server name.
# Read, screenshot and PDF tools, available in every project (user scope)
claude mcp add renderkit --scope user --env RENDERKIT_API_KEY=rk_live_your_key -- npx -y renderkit-mcp
# An interactive browser for this project (default local scope)
claude mcp add playwright -- npx -y @playwright/mcp@latest
# Confirm both connected, and inspect one entry
claude mcp list
claude mcp get renderkit- Scopes:
local(the default) makes the server available to you in the current project only;--scope usermakes it available in every project;--scope projectwrites a.mcp.jsonat the project root that you can commit for your team. - Checking:
claude mcp listshows a status per server, and/mcpinside a session shows tools and lets you reconnect. The first check after adding annpxserver can say "Failed to connect" while the package downloads, so wait a moment and check again. - Sharing with a team: in a committed
.mcp.json, reference the key as${RENDERKIT_API_KEY}so each developer supplies their own. Claude Code expands${VAR}and${VAR:-default}incommand,args,env,url, andheaders.
{
"mcpServers": {
"renderkit": {
"command": "npx",
"args": ["-y", "renderkit-mcp"],
"env": { "RENDERKIT_API_KEY": "${RENDERKIT_API_KEY}" }
}
}
}Remote servers use --transport http, for example claude mcp add --transport http jina https://mcp.jina.ai/v1. If you already configured servers in Claude Desktop, claude mcp add-from-claude-desktop copies them over on macOS and WSL.
Step 2c: Add an MCP server to Cursor
Cursor uses the same mcpServers shape. Put it in ~/.cursor/mcp.json for every project, or .cursor/mcp.json inside one project. Cursor expands ${env:NAME} in values, which keeps the key out of the file:
{
"mcpServers": {
"renderkit": {
"command": "npx",
"args": ["-y", "renderkit-mcp"],
"env": { "RENDERKIT_API_KEY": "${env:RENDERKIT_API_KEY}" }
},
"playwright": {
"command": "npx",
"args": ["-y", "@playwright/mcp@latest"]
}
}
}You can also add servers from Cursor's settings. When something fails, open the Output panel (Cmd+Shift+U on macOS) and choose MCP Logs from the dropdown. Remember that ${env:RENDERKIT_API_KEY} only works if the variable is set in the environment Cursor was started from; if in doubt, paste the key into env directly in your global (uncommitted) config.
Step 3: Web scraping with Claude and renderkit-mcp
Once connected, renderkit-mcp gives Claude four tools. You don't call them by name; you describe what you want, and the model picks the tool and fills in the arguments.
| Tool | Options the agent can set | What comes back |
|---|---|---|
extract | format (markdown, text, html), only_main_content, include_links, include_images, chunk, chunk_max_tokens | The page content as text, then a trailer line with the render id, timing, credits, and word count. With chunk: true, the chunks themselves. |
screenshot | full_page, selector, format (png, jpeg, webp), viewport_width, viewport_height, block_ads, block_cookie_banners, dark_mode | JSON with the render id, a hosted image url on cdn.renderkit.tech, render_ms, credits_used, cached |
pdf | page_format (A4, A3, A5, Letter, Legal, Tabloid), landscape, print_background, margin | The same JSON shape with a hosted PDF url |
get_job | id | The stored render record: status, URL or content, metadata, error if any |
Read a page into the conversation
Prompt: "Read https://example.com/blog/shipping-rag and summarize the argument in five bullets." Claude calls extract with the URL. RenderKit loads the page in Chromium, waits for the network to go idle, strips navigation, footers, and scripts, and returns the main content as markdown. That text is what lands in Claude's context:
# Shipping RAG to production
Most retrieval failures start with dirty input, not with the model…
## Chunk boundaries matter more than chunk size
…
---
id=rk_5tW3k9d2Lp render_ms=1216 credits_used=1 cached=false words=2140Get a screenshot link
Prompt: "Take a full-page screenshot of https://example.com/pricing with cookie banners hidden and give me the link." Claude calls screenshot with full_page: true and block_cookie_banners: true and gets back:
{
"id": "rk_8fK2m1c4Qz",
"url": "https://cdn.renderkit.tech/renders/3a7b9c…e9.png",
"meta": {},
"render_ms": 2140,
"credits_used": 1,
"cached": false
}The url is a public, content-addressed file that stays available for 365 days, so you can paste it into an issue or a chat. Note what Claude receives: a link as text, not the image itself. If you need the model to look at the rendered page and reason about the layout, use Playwright MCP or Chrome DevTools MCP, which attach screenshots to the tool result.
Archive a page as a PDF
Prompt: "Save https://example.com/terms as an A4 PDF with backgrounds." Claude calls pdf with page_format: "A4" and print_background: true, and the result has the same shape as the screenshot, with a .pdf URL. A PDF costs 2 credits; screenshots and extracts cost 1.
Chunk a page for a knowledge base
Prompt: "Pull https://example.com/docs/auth into chunks of about 1,000 tokens so we can add them to the knowledge base." Claude calls extract with chunk: true and chunk_max_tokens: 1000. Chunks split on paragraph boundaries, never mid-paragraph, and token counts are estimates (about 1.3 tokens per word):
### chunk 0 (962 tokens)
# Authentication
Every request carries an API key in the x-api-key header…
### chunk 1 (987 tokens)
…
---
id=rk_Q2v7n4Hc1x render_ms=1874 credits_used=1 cached=false words=1530 chunks=2- Version note: the render
idon screenshot and PDF results and the chunk text in extract results arrived inrenderkit-mcp1.0.1. Version 1.0.0 returned the URL without anidand reported only a chunk count. Ifnpxkeeps serving an old cached copy, userenderkit-mcp@latestin your config. - About job lookups: the MCP tools render synchronously and return the finished result, so you'll rarely need
get_job. It looks up any render by id, including ones your own code started through the REST API withasync: true. - Trial limits: 10 requests per minute, one render at a time, and a 15-second page timeout.
dark_modeneeds a paid plan, and the tool returns a readableFEATURE_NOT_AVAILABLEerror if Claude tries it on a trial key. - Repeat requests are free: an identical render inside the cache window (one hour by default) returns
cached: trueand costs 0 credits.
Interactive browsing: Playwright MCP and Chrome
Playwright MCP
Reading is one call; operating a site takes many. Playwright MCP keeps a real browser open and, after each action, gives Claude an accessibility snapshot of the page: a text tree of headings, links, buttons, and inputs, each with a reference Claude can click or type into. No vision model is needed.
Prompt: "Open https://news.ycombinator.com, go to the second page, and list the five stories with the most points." Claude navigates, reads the snapshot, clicks "More", reads again, and answers. For a login flow, ask it to stop at the login form and type the password yourself in the visible browser window.
- It opens a visible browser by default. Add
--headlessafter the package name to hide it:claude mcp add playwright -- npx -y @playwright/mcp@latest --headless. - It keeps a persistent profile per workspace, so logins survive restarts. The profile lives under
%USERPROFILE%\AppData\Local\ms-playwrighton Windows,~/Library/Caches/ms-playwrighton macOS, and~/.cache/ms-playwrighton Linux. Add--isolatedfor a clean, in-memory profile each session. - Extra tools are opt-in:
--caps=pdfadds PDF export,--caps=visionadds coordinate-based clicking for elements missing from the snapshot. - Snapshots of long pages are large. When the task is just "read this", the extract tool is faster and uses a fraction of the context.
The two servers work well together. A typical prompt: "Use Playwright to log in to the dashboard and find the export page; then use RenderKit to extract the public changelog at https://example.com/changelog and compare." Pages behind your login go through your browser; public pages go through RenderKit, so they don't flood the context with snapshots.
Use your real Chrome (Claude in Chrome, Chrome DevTools MCP)
- Claude Code + Claude in Chrome: install the Claude in Chrome extension (version 1.0.36 or later) and start
claude --chrome. Claude works in a visible Chrome or Edge window with your logins and pauses at login pages and CAPTCHAs. It needs a direct Anthropic plan (Pro, Max, Ultra, Team, or Enterprise) signed in with/login, and it isn't supported in WSL. - Chrome DevTools MCP:
claude mcp add chrome-devtools --scope user -- npx -y chrome-devtools-mcp@latest --autoConnectattaches to a Chrome you started yourself, once you've enabled remote debugging atchrome://inspect/#remote-debugging; drop--autoConnectand it launches its own Chrome. It collects usage statistics unless you add--no-usage-statistics.
Troubleshooting
"npx: command not found" or "spawn npx ENOENT"
The client can't find npx. Desktop apps launched from the Dock or Start menu don't load your shell profile, so a Node.js installed through a version manager may be invisible to them even though it works in your terminal. First run the server by hand. If it prints "ready" and waits, the server works and the problem is the client's environment:
# macOS / Linux: the server should print "ready" on stderr and then wait for input
RENDERKIT_API_KEY=rk_live_your_key npx -y renderkit-mcp
# [renderkit-mcp] ready (api https://api.renderkit.tech)
# Press Ctrl+C to stop it.# Windows PowerShell
$env:RENDERKIT_API_KEY = "rk_live_your_key"; npx -y renderkit-mcp
where.exe npxThen point command at the absolute path that which npx (macOS, Linux) or where.exe npx (Windows) prints. On Windows, JSON needs doubled backslashes:
{
"mcpServers": {
"renderkit": {
"command": "C:\\Program Files\\nodejs\\npx.cmd",
"args": ["-y", "renderkit-mcp"],
"env": { "RENDERKIT_API_KEY": "rk_live_your_key" }
}
}
}If the log then complains that node itself can't be found, the simplest fix is a system-wide Node.js install from nodejs.org. Some Windows setups also need npx wrapped in cmd /c; Firecrawl's MCP README suggests the same workaround for Cursor on Windows:
{
"mcpServers": {
"renderkit": {
"command": "cmd",
"args": ["/c", "npx", "-y", "renderkit-mcp"],
"env": { "RENDERKIT_API_KEY": "rk_live_your_key" }
}
}
}The server never connects or shows no tools
- Claude Desktop: check JSON syntax (a trailing comma breaks the whole file), quit the app completely, and read the logs.
mcp.logcovers connections;mcp-server-<name>.logholds that server's stderr output. - Claude Code:
claude mcp get <name>shows the exact command saved. If it differs from what you typed, you probably left out the--separator; remove the server withclaude mcp remove <name>and add it again. Servers you added in a different project live in that project's local scope, so use--scope userfor servers you want everywhere. - Cursor: Output panel → MCP Logs.
- Slow first start: the first
npxrun downloads the package and can exceed Claude Code's 30-second startup timeout. Raise it withMCP_TIMEOUT.
# macOS: follow Claude Desktop's MCP logs
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
# Linux
tail -n 20 -f ~/.config/Claude/logs/mcp*.log
# Windows (PowerShell): recent logs
type "$env:AppData\Claude\logs\mcp*.log"# The first npx run downloads the package; give it 60 seconds to start
MCP_TIMEOUT=60000 claude
# Allow bigger tool results than the 25,000-token default
MAX_MCP_OUTPUT_TOKENS=50000 claudeIn PowerShell, set the variable before the command on the same line: $env:MCP_TIMEOUT = "60000"; claude.
Environment variables don't reach the server
export RENDERKIT_API_KEY=... in .zshrc or .bashrc doesn't help an app launched from the Dock or Start menu. Put the key in the server's env block (Claude Desktop, Cursor), pass it with --env (Claude Code), or reference a variable that's actually set where the client starts. Claude Code warns in claude mcp list when a ${VAR} reference is unset, and when a pasted value carries hidden leading or trailing whitespace. If the key never arrives, renderkit-mcp still starts, logs RENDERKIT_API_KEY not set to stderr, and every tool call returns a NO_API_KEY error, so Claude can tell you what's wrong.
Windows paths and quoting
- Backslashes in JSON strings must be doubled:
"C:\\Users\\you\\Documents". - If a server's log shows an error mentioning a literal
${APPDATA}in a path, the MCP project's guide suggests adding"APPDATA": "C:\\Users\\<you>\\AppData\\Roaming"to that server'senv, and making sure npm is installed globally (%APPDATA%\npmshould exist). claude mcp addworks the same in PowerShell, Command Prompt, and bash. Forclaude mcp add-json, JSON quoting in PowerShell is fiddly;claude mcp addwith--envavoids it.
Results are cut off or saved to a file
Claude Code caps MCP tool output at 25,000 tokens by default and saves larger results to a file that Claude reads when needed. Raise the cap with MAX_MCP_OUTPUT_TOKENS, or shrink the result: keep only_main_content on (it's the default), ask for format: "text", or use chunk: true and work through the chunks.
RenderKit errors inside a tool result
- Errors come back as readable text, for example
RenderKit error 403 FEATURE_NOT_AVAILABLE: 'dark_mode' requires a higher plan (not available on sandbox)., followed by arequest_idto quote if you contact support. 401 INVALID_API_KEY: the key is mistyped or has been revoked.422 TARGET_NOT_ALLOWED: the URL isn't http(s) or resolves to a private or reserved address. RenderKit can't reachlocalhostor your intranet; use Playwright MCP for local development servers.429 RATE_LIMIT_EXCEEDEDmeans too many requests per minute or too many renders at once;429 QUOTA_EXCEEDEDmeans the credits are used up or the 14-day trial has ended. The full list is in the error reference.
Keep web access safe
- Web pages can contain instructions aimed at agents. Treat page content as untrusted input, and keep an eye on any server that can act (click, type, submit) rather than only read.
- Logged-in browsers carry your identity. Use Playwright's
--isolatedprofile for exploratory browsing, and save persistent profiles for sites you deliberately want the agent to use. - Keys belong in environment variables, not in a committed
.mcp.jsonor.cursor/mcp.json. Use${RENDERKIT_API_KEY}or${env:RENDERKIT_API_KEY}references, and rotate a key if it was ever pasted into a chat. - Hosted results are public URLs. RenderKit screenshots and PDFs are reachable by anyone with the link, so don't render private pages you need to keep secret.
That's the whole setup: one reader, one browser, and the logs to check when either misbehaves. The MCP docs list every renderkit-mcp option, and the same API key works for the URL-to-markdown and screenshot REST APIs when you move from chatting to code.
Common questions
Connect an MCP server that reads or browses the web. In Claude Code, claude mcp add playwright -- npx -y @playwright/mcp@latest adds a browser; in Claude Desktop, add the server to claude_desktop_config.json and restart. Claude Code also has built-in WebSearch and WebFetch tools, but WebFetch returns a model's answer about a page rather than the full page.
Run claude mcp add, a name, then -- and the launch command: claude mcp add playwright -- npx -y @playwright/mcp@latest. Add --scope user to make it available in every project and --env KEY=value for API keys, then confirm with claude mcp list or /mcp inside a session.
On macOS at ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows at %APPDATA%\Claude\claude_desktop_config.json, and on Linux at ~/.config/Claude/claude_desktop_config.json. Claude Desktop's Settings, Developer, Edit Config button opens it and creates it if it doesn't exist.
Yes. An extract-style server such as renderkit-mcp, Firecrawl, Jina or the Fetch reference server returns a page's content as markdown that Claude can summarize, compare or turn into structured data. Respect each site's terms and robots rules, and use a driving server such as Playwright MCP only when the content sits behind clicks or a login.
For one page at a time, an extract server: renderkit-mcp or Jina render JavaScript and return clean markdown, and the free Fetch server handles static pages. For whole sites, Firecrawl's crawl and map tools. For pages that need interaction, Playwright MCP. Our comparison of browser MCP servers covers the trade-offs.
The usual causes are a JSON syntax error, an app that was closed but not fully quit, or npx not being on the app's PATH. Check mcp.log and mcp-server-<name>.log in Claude's logs folder, run the server command in a terminal to see whether it starts, and use the absolute path to npx if the log says it can't be found.
Yes, as custom connectors rather than entries in claude_desktop_config.json. On Pro and Max, go to Customize, Connectors, then Add custom connector; on Team and Enterprise an Owner adds them. Free accounts can add one custom connector. Clients without remote support can also bridge a remote server through the mcp-remote package.
The server itself is a free npm package; renders use RenderKit credits. The trial includes 500 credits over 14 days with no card, a screenshot or extract costs 1 credit and a PDF 2, cache hits are free, and failed renders are refunded. Paid plans start at $9 a month for 5,000 credits.
Ship your first render in 60 seconds.
500 free credits to start. No card. Cancel by ignoring it.