惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Cisco Blogs
Cyberwarzone
Cyberwarzone
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Martin Fowler
Martin Fowler
T
Tor Project blog
N
Netflix TechBlog - Medium
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
V
Visual Studio Blog
GbyAI
GbyAI
PCI Perspectives
PCI Perspectives
D
DataBreaches.Net
Jina AI
Jina AI
H
Heimdal Security Blog
云风的 BLOG
云风的 BLOG
P
Privacy International News Feed
A
About on SuperTechFans
J
Java Code Geeks
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
News | PayPal Newsroom
有赞技术团队
有赞技术团队
MyScale Blog
MyScale Blog
博客园 - 司徒正美
C
Check Point Blog
T
Threat Research - Cisco Blogs
Attack and Defense Labs
Attack and Defense Labs
宝玉的分享
宝玉的分享
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Vercel News
Vercel News
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
Cisco Talos Blog
Cisco Talos Blog
W
WeLiveSecurity
Hacker News: Ask HN
Hacker News: Ask HN
Recent Commits to openclaw:main
Recent Commits to openclaw:main
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
D
Docker
博客园 - Franky
Security Archives - TechRepublic
Security Archives - TechRepublic

Analytics Vidhya

Handling Imbalanced Classification: What Works Better Than SMOTE GPT-5.6 Is Here: Sol, Terra, and Luna Loop Engineering for AI Agents: How /loop is Changing AI Workflows DeepSeek DSpark: The Speculative Decoding Trick Behind 400% Faster LLM OKF: Redefining Knowledge Bases for AI Agents Modern VLMs Explained: How GPT-4o, Gemini, Claude Vision, and Qwen-VL Work YOLO26 Tutorial: Object Detection, Pose Estimation & More Large Action Models (LAMs) vs Agentic LLMs: What's the Real Difference? Claude Sonnet 5: The Fable 5 at Home The Best $20 AI Plan: ChatGPT Plus vs Claude Pro vs Gemini Pro GraphRAG vs Vector RAG: Which Retrieval Method is Best? Using AI When You Don’t Trust AI The Self-Improving Loop in AI Agents: Architecture, Benefits, and How it Outperforms Traditional Agent Workflows Harness-1: The 20B Retrieval Subagent That Beats GPT-5.4 at Search Sakana Fugu: Multi-Agent System as a Model Claude's Hidden Art Skill: Making Illustrations With Code System Design for ML Interviews: 10 Real Problems Walked Through Most People Use ChatGPT Wrong: 10 Features and Tips That Changed How I Work OpenAI Just Launched 3 Free AI Courses with Certificates Autoregressive Models: Predicting the Future Using the Past Gemini Omni: AI Video Generation Inside Gemini DiffusionGemma: Google’s Diffusion-Based Open Model for Faster Text Generation Top 10 AI Engineering Tools Everyone is Using in 2026 I Tested Claude Fable 5: Can Anthropic’s Newest AI Deliver on the Hype? Prophet vs NeuralProphet vs TimeGPT vs Chronos: A Practical Comparison Build an Emergency Helpline Voice Agent with LangChain Choosing the Right Vector Database for RAG and AI Applications Google Gemma 4 12B: Architecture, Benchmarks, Access, and Hands-on Guide for Developers How to Choose the Right AI Model for Your Needs Agent Observability with LangSmith, Langfuse, and Arize: A Hands-On Comparison How to Use Claude Managed Agents? Google AI Studio vs Gemini App: What’s the Difference? AI Workflows for Sales Teams: Prospect Research, Lead Qualification, and CRM Updates on Autopilot Using LangGraph 25 Most Influential AI Pioneers to Meet at DataHack Summit 2026 Claude Opus 4.8: A Smarter Model in the Right Direction PySpark Optimization: 12 Proven Techniques to Speed Up Your Spark Jobs 10 Everyday Tasks You Can Automate with AI Today (With n8n Templates) Google Antigravity 2.0: The Full Developer Guide (I/O 2026) Pandas vs Polars vs DuckDB: Which Library Should You Choose? Qwen3.7-Max: Alibaba’s New Agent-First LLM for Coding, Reasoning, and Long-Horizon AI Workflows The Biggest Announcements from Google I/O 2026 Top 9 AI Events and Conferences in 2026 that you Must Attend Gemini 3.5 Flash: Frontier Intelligence with Speed Kimi WebBridge: Hands-on Guide to Kimi’s Browser Extension for AI Agents 40 Advanced SQL Window Functions Every Data Scientist Must Know(with examples) Top 10 AI Research Papers of 2025 6 Steps to Crack GenAI Case Study Interviews (With Real Examples) OpenAI Omni Moderation: How to Filter Text & Images for Free DataHack Summit 2026: You Just Cannot Skip This AI Event of the Year OpenAI’s New API Voice Models Will Change the Way You Use AI Hermes Agent Guide: What is it and How to Use it? Top 10 LLM Research Papers of 2026 Agent Memory Patterns in Cognitive Science and AI Systems 10 AI Agents Every AI Engineer Must Build (with GitHub Samples) 23 Tips for Smart Claude Code Token Saving and Workflow Optimization Feature Engineering with LLMs: Techniques & Python Examples ChatGPT is Now Inside Excel and Google Sheets: Here is How to Use it Gemini API File Search: The Easy Way to Build RAG Top 10 Open-Source Libraries to Fine-Tune LLMs Locally ML Intern in Practice: From Prompt to a Shipped Hugging Face Model 15+ Solved Agentic AI Projects with Github Links How People are Figuring Out Life With Claude MemPalace Explained: Building Long-Term Memory for AI Agents Beyond RAG Grok Voice Think Fast 1.0: Build Voice AI Agents That Actually Think Compressing LSTM Models for Retail Edge Deployment: A Practical Comparison MCP vs Agent Skills: Different Altogether GPT 5.5 vs Opus 4.7: Which is the Best AI Model Today? What is Agentic AI? Claude Code vs Codex: A Detailed Terminal Agent Comparison Google Deep Research Max: Build Autonomous AI Research Agents in Minutes Meta Muse Spark Review: Is It Worth the Hype? ChatGPT Images 2.0 vs Nano Banana 2: Which is Better? Cursor V3 Explained: The AI Coding Agent That’s Replacing Traditional IDEs in 2026 DeepSeek-V4: The Most Powerful Open-Source Model Ever Is GPT Image 2 the Best Image Generation Model? Token Economics: Why AI is Getting “Cheaper” From Idea to Output: Claude Does the Design Work Opus 4.7 vs Opus 4.6: Should You Switch? Build Human-Like AI Voice App with Gemini 3.1 Flash TTS How to Structure a Claude Code Project that Thinks Like an Engineer Gemma 4 Tool Calling Explained: Build AI Agents with Function Calling (Step-by-Step Guide) Anthropic Launches Claude Opus 4.7 For “Most Difficult Tasks” Top 28 Claude Shortcuts that will 10X your Speed GPT-5.4-Cyber: Why OpenAI is Keeping its Most Powerful Model Under Lock and Key Google AI Studio Guide: Every Feature Explained Mastering Deep Agents: Context Engineering that Actually Works 21 Computer Vision Projects from Beginner to Advanced (2026 Guide) Excel 101: Excel Agent Mode Explained MiniMax M2.7 Goes Open-Weight to Let You Run Agents Locally Top 10 Gemma 4 Projects That Will Blow Your Mind GLM-5.1: Architecture, Benchmarks, Capabilities & How to Use It Understanding BERTopic: From Raw Text to Interpretable Topics From Karpathy’s LLM Wiki to Graphify: AI Memory Layers are Here 10 Most Important AI Concepts Explained Simply Project Glasswing is World’s Most Powerful AI in Action How to Run Gemma 4 on Your Phone Without Internet: A Hands-On Guide Running Claude Code for Free with Gemma 4 and Ollama LLM Wiki Revolution: How Andrej Karpathy’s Idea is Changing AI Rethinking Enterprise Search: How Cortex Search Turns Data into Business Impact Google’s Gemma 4: Is it the Best Open-Source Model of 2026?
Build a Claude Cowork-Like Browser Agent Using Playwright MCP and Claude Desktop
Harsh Mishra · 2026-05-25 · via Analytics Vidhya

Claude Cowork shifts AI from chat-based assistance to task delegation. Instead of giving users instructions, it performs actions directly on the user’s computer, files, applications, and browser workflows. Combined with Playwright MCP, Claude Desktop can open pages, click buttons, fill forms, extract data, and debug interfaces in a far more structured way than screenshot-based automation.

Playwright MCP provides structured browser control through accessibility snapshots, enabling reliable AI-driven web automation inside Claude Desktop and other MCP clients. In this article, we’ll build a similar browser automation setup, covering installation, architecture, workflows, capabilities, limitations, security considerations, and practical business use cases.

Table of contents

  • What is Playwright MCP? 
  • What is Claude Cowork? 
  • Architecture of Claude Desktop + Playwright MCP 
  • Installing Playwright MCP in Claude Desktop 
  • Hands-On Test 
  • Exploring Playwright MCP Capabilities 
  • Security and Governance Considerations 
  • Conclusion 

What is Playwright MCP? 

Playwright MCP is an MCP server that makes automation capabilities of browsers available to AI assistants. It’s actually controlled by Playwright, Microsoft’s browser automation framework, which includes browsers like Chromium, Firefox, WebKit, and Microsoft Edge.  

Browser control is not the most important thing. What is key is the way that the browser state is mapped to the LLM.  

Playwright MCP returns structured accessibility snapshots, not just screenshots. These snapshots include page elements, roles, labels, and references, allowing Claude to understand the page structure and decide what to click, type into, check, or confirm. The documentation explains that the server operates on the page accessibility tree rather than pixels, giving the LLM structured references for interacting with the page.

In simple terms: 

Claude

This makes Playwright MCP useful for: 

Area What Claude Can Do
Web automation Navigate, click, type, scroll, and interact
QA testing Validate UI flows and generate test ideas
Data extraction Extract information from web pages
UI debugging Inspect visible text, console logs, and network activity
Product research Compare pages, pricing, copy, flows, and UX
Agent prototyping Build browser-capable AI workflows without writing a full agent loop

What is Claude Cowork? 

Claude Cowork is Anthropic’s agentic desktop experience for knowledge work. It is meant to accept a goal, operate on local files, folders, and programs and produce a completed output. According to Anthropic, Cowork can help organize files, prepare documents from source files, synthesize research and extract structured data from unstructured files.   

Claude Cowork is broader than Playwright MCP.  

Claude Cowork can operate on your desktop workflows, local files, projects, and persistent task workflow. The primary capability that Claude Desktop plus Playwright MCP provides is automation in the browser for Claude. It is not the entire Cowork product. It is similar to the part in the Browser. But the main USP of Playwright MCP with Claude is it is absolutely free and easy to set up. It can even be used with a free Claude account.

A realistic comparison looks like this:

Capability Claude Cowork Claude Desktop Plus Playwright MCP
Autonomous task execution Yes Partially
Browser control Yes, depending on enabled tools Yes, through Playwright MCP
Local file work Yes Only if paired with a filesystem MCP server
Project-level workspace Yes Limited
Scheduled tasks Cowork supports scheduled tasks Not provided by Playwright MCP itself
Technical browser testing General purpose Strong fit
Developer control Product-level abstraction High control through MCP configuration
Pricing Paid Free

Architecture of Claude Desktop + Playwright MCP 

The setup has four main components:

Architecture of Claude Desktop + Playwright MCP

The Model Context Protocol enables tools and servers to connect to other systems in a controlled manner to enhance AI applications. Local MCP servers can add features to Claude Desktop, like file access, search, and other features, and actions can be performed at the user’s explicit permission. The MCP documentation clarifies that.

Playwright MCP’s external system is a browser. 

Why This Architecture Matters 

The pattern is useful for AI developers as it allows them to separate the browser automation layer from the LLM.  

Claude does not have to be aware of Playwright internals for each step. It is given tool descriptions, views snapshots of the pages, selects actions and invokes tools.  

Technical leaders should care about this as it provides a reusable automation interface. Later, the same MCP approach can be expanded to include a filesystem, internal APIs, database tools, CRM or enterprise knowledge systems. 

Installing Playwright MCP in Claude Desktop 

First install the Playwright MCP using Node js with the following command in terminal: 

npm install -D @playwright/test@latest

Claude Desktop uses a JSON configuration file to define MCP servers. The MCP documentation says Claude Desktop’s config file is located at: 

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json 

Windows: %APPDATA%\Claude\claude_desktop_config.json 

The same MCP guide explains that you can access this from Claude Desktop settings by opening Developer settings and selecting Edit Config. (Model Context Protocol

Step 1: Open Claude Desktop Settings 

Open Claude Desktop. 

Go to: 

Claude DesktopSettingsDeveloperEdit Config 

This opens the claude_desktop_config.json file. 

Step 2: Add Playwright MCP Server 

Add this to the configuration file:

Playwright MCP Server configuration

This is the standard Playwright MCP configuration shown in the official Playwright MCP documentation.  

Step 3: Restart Claude Desktop 

Following the following steps: 

  1. Save the file. 
  2. Fully quit Claude Desktop and reopen it. 
  3. After restart, Claude should load the Playwright MCP server. If it connects successfully, Claude Desktop should show MCP tools in the tool interface. 

Step 4: Verify the Server 

Ask Claude Desktop: 

“Check whether the Playwright MCP tools are available. If they are available, open a browser and navigate to the Playwright TodoMVC demo page.

Use a safe demo page such as: 

https://demo.playwright.dev/todomvc

Hands-On Test 

Let us start with a simple task. 

Prompt 1: Add Todo Items 

“Use Playwright MCP to navigate to https://demo.playwright.dev/todomvc. Add three todo items:
1. Learn Playwright MCP
2. Test Claude Desktop browser automation
3. Write a technical blog

After adding them, verify that all three items are visible”

Adding to-do items
React TodoMVC
Tool usage to get the job done

What Happens Internally 

Claude will most likely: 

  1. Call a navigation tool. 
  2. Receive an accessibility snapshot. 
  3. Identify the todo input field. 
  4. Type the first item. 
  5. Press Enter. 
  6. Repeat for the remaining items. 
  7. Verify the visible list. 

Playwright MCP supports common browser interactions such as navigation, clicking, typing, filling forms, screenshots, keyboard and mouse actions, dialogs, and tab handling. (Playwright

Why This Matters 

This is the first sign that Claude Desktop is no longer just answering. It is acting. 

That is the Cowork-like experience we want to explore: give Claude an outcome, let it inspect the environment, perform steps, and return the result. 

Exploring Playwright MCP Capabilities 

Below is a hands-on capability matrix designed for technical readers. 

1. Browser Navigation 

It is good for: 

  • Landing page inspection
  • Basic UI smoke testing
  • Competitive website review
  • Documentation page exploration

2. Clicking and Typing 

This is useful for early product QA, especially when product managers or QA engineers want to test flows without writing selectors. 

3. Form Filling 

Best practice: 

  • Use test accounts.
  • Avoid production credentials.
  • Ask Claude to pause before submitting forms that change state.

4. Screenshots 

Playwright MCP supports screenshots for visual verification. (Playwright

5. Keyboard and Mouse Actions 

This capability is useful for: 

  • Accessibility testing
  • Keyboard-only navigation
  • Power-user flows
  • Shortcut validation 

6. Tabs and Multi-Page Workflows 

This is where the setup starts to feel more like a coworker. Claude can look across multiple pages, compare information, and produce a summary. 

7. Dialog Handling 

Use this carefully for: 

  • Delete confirmations
  • Cookie prompts
  • Payment confirmations
  • Terms acceptance dialogs

8. Network Monitoring 

Playwright MCP supports network inspection and mocking, including viewing requests and setting mock routes. (Playwright

9. API Mocking 

Useful for testing: 

  • Empty states
  • Error states
  • Slow responses
  • Permission failures
  • Feature flags

10. Storage State and Sessions 

Playwright MCP supports saving and restoring browser state, including cookies and localStorage. (Playwright

Best practice: 

  • Use separate test profiles.
  • Do not store production login sessions casually.
  • Rotate test credentials. 

11. Running Playwright Code 

Playwright MCP includes a direct code execution capability for complex interactions. The official docs warn that browser_run_code_unsafe runs arbitrary JavaScript in the Playwright server process and is RCE-equivalent, so it should only be enabled for trusted MCP clients.  

Example prompt: 

Run Playwright code to count how many todo items are visible on the page. Do not access files or external services.

Running Playwright code

Advanced Configuration 

Playwright MCP supports several configuration options. 

Run Browser in Headless Mode 

By default, Playwright MCP runs in headed mode so you can see what is happening. You can run it headless with: 

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest",
        "--headless"
      ]
    }
  }
}

The Playwright MCP configuration docs confirm that headed mode is the default and –headless enables headless execution. (Playwright

Choose a Browser 

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest",
        "--browser=firefox"
      ]
    }
  }
}

Supported browser options include Chrome, Firefox, WebKit, and Microsoft Edge. (Playwright

Emulate a Mobile Device 

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest",
        "--browser=firefox"
      ]
    }
  }
}

This is useful for mobile UX testing. 

Set Viewport Size 

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest",
        "--viewport-size=1280x720"
      ]
    }
  }
}

Use a Proxy 

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest",
        "--proxy-server=http://myproxy:3128",
        "--proxy-bypass=localhost,*.internal.com"
      ]
    }
  }
}

Playwright MCP supports proxy configuration, viewport size, browser selection, device emulation, and standalone server mode. (Playwright

Security and Governance Considerations 

This section is especially important for technical leaders. 

1. Use Dedicated Test Accounts 

Never start with real user accounts. 

Use: 

  • Test users 
  • Seeded demo data 
  • Non-production environments 
  • Limited permissions 
  • Short-lived credentials  

2. Restrict Domains 

Use allowed origins or blocked origins where possible. 

Example configuration idea: 

{
  "browser": {
    "browserName": "chromium"
  },
  "network": {
    "allowedOrigins": [
      "https://staging.yourcompany.com",
      "https://docs.yourcompany.com"
    ],
    "blockedOrigins": [
      "https://payments.yourcompany.com"
    ]
  }
}

Playwright MCP supports network rules, allowed origins, blocked origins, secrets, timeouts, output settings, and related configuration through its config schema. (Playwright

3. Avoid Unsafe Code Execution by Default 

Do not enable or rely on arbitrary Playwright code execution unless: 

  • The user is trusted 
  • The environment is sandboxed 
  • The browser profile is isolated 
  • The task is logged 
  • The blast radius is small

4. Use Isolated Browser Profiles 

For sensitive tasks, use isolated sessions: 

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest",
        "--isolated"
      ]
    }
  }
}

This prevents the state from carrying across tasks. 

5. Add Human-in-the-Loop Rules 

A strong prompt pattern is: 

“Before you submit, delete, purchase, invite, publish, or accept anything, stop and ask for approval.” 

6. Keep Logs 

Claude Desktop MCP troubleshooting docs point to MCP log locations such as ~/Library/Logs/Claude on macOS and %APPDATA%\Claude\logs on Windows. (Model Context Protocol

For teams, logs are essential for debugging: 

  • Which tool was called?
  • What page was open?
  • What action was attempted?
  • What failed?
  • Was the result correct?

Conclusion 

Playwright MCP is a browser automation agent for Claude Desktop that can open websites, analyze page structure, click elements, fill forms, inspect network traffic, simulate APIs, and run Playwright code. It supports browser-based goal execution without requiring step-by-step control, making it useful for QA testing, product research, UI debugging, accessibility checks, and agent prototyping.

It is not a full replacement for Claude Cowork, which also supports desktop tasks, files, and persistent workflows. Playwright MCP works best for browser automation in controlled environments using test accounts, approvals, domain restrictions, and proper logging.

Harsh Mishra is an AI/ML Engineer who spends more time talking to Large Language Models than actual humans. Passionate about GenAI, NLP, and making machines smarter (so they don’t replace him just yet). When not optimizing models, he’s probably optimizing his coffee intake. 🚀☕