The AI Loadout

How to browse the Web with an AI agent

Install Microsoft's Playwright MCP server and your agent can open pages, click, type and read what is on screen. One command adds it to Claude Code or Codex, and a short JSON block adds it to Cursor. Grok Bot already has its own browser on its cloud computer.

Grok Bot steps tested by us on Oct 26, 2026 while building this page. Claude Code, Codex and Cursor steps checked against official docs on Oct 26, 2026.

Get the free starter kit. One short email a day when our setups change.

Free starter kit on signup: 2 Claude Code skills and 1 agent persona from our paid packs. By subscribing you agree to get The AI Loadout Daily, one email each morning. No spam, we never sell your email, and every email has a one-click unsubscribe link.

Claude Code

  1. claude mcp add playwright npx @playwright/mcp@latest
  2. Run /mcp to confirm it connected
  3. Ask: "Open example.com, find the contact page and copy the support email."

Codex

  1. codex mcp add playwright npx "@playwright/mcp@latest"
  2. Ask Codex to open the page and report what it sees

Cursor

  1. Add to .cursor/mcp.json: {"mcpServers":{"playwright":{"command":"npx","args":["@playwright/mcp@latest"]}}}
  2. Approve tool calls as they come up

Grok Bot

  1. Ask Grok Bot to open the site in its browser
  2. For a site that needs your login, sign in yourself on its desktop so it does not handle your password

Gotchas

  • Any page the agent reads can try to give it instructions. Do not point a browsing agent at your bank or email with full permissions.
  • Browser automation is slower than an API. Use an API or MCP server for the service if one exists.

The loadout for this job

FAQ

What is Playwright MCP?

An MCP server from Microsoft that lets an AI agent control a browser through Playwright.

Can Cursor browse the web?

Yes, with a browser MCP server such as Playwright MCP added to mcp.json.

Related how-tos

Sources

Commands change. Check the linked docs before you run anything. All how-to guides

Want tested skills and personas installed in one command? See the AI Loadout packs, from $9.