playwright-slim-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@playwright-slim-mcpgo to example.com and click the login button"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
playwright-slim-mcp
A proxy MCP server for Playwright that summarizes accessibility snapshots using Claude Haiku to reduce context usage.
Quickstart
Add to your Claude Code MCP config (~/.claude.json):
{
"mcpServers": {
"playwright-slim": {
"command": "npx",
"args": ["playwright-slim-mcp"],
"env": {
"ANTHROPIC_API_KEY": "sk-ant-..."
}
}
}
}That's it! The proxy will automatically download and run.
Related MCP server: Glance
Problem
The official @playwright/mcp returns full accessibility tree snapshots after every action (click, type, navigate, etc.). These snapshots can be 2-10KB+ each, quickly consuming context window.
Solution
This proxy:
Forwards all requests to the real Playwright MCP
Intercepts responses containing page snapshots
Uses Anthropic API (Claude Haiku) to summarize snapshots to ~10 lines
Preserves
[ref=XXX]values for interactive elements so you can still click/type
Installation
Via npx (recommended)
No installation needed - just add to your MCP config as shown in Quickstart.
Global install
npm install -g playwright-slim-mcpThen use in your MCP config:
{
"mcpServers": {
"playwright-slim": {
"command": "playwright-slim-mcp",
"env": {
"ANTHROPIC_API_KEY": "sk-ant-..."
}
}
}
}From source
git clone https://github.com/jsdf/playwright-slim-mcp.git
cd playwright-slim-mcp
npm install
npm run buildRequirements
ANTHROPIC_API_KEYenvironment variableNode.js 18+
Environment Variables
Variable | Required | Description |
| Yes | Your Anthropic API key |
| No | Model for summarization (default: |
| No | Set to |
Configuration
The proxy summarizes snapshots for these tools:
browser_clickbrowser_typebrowser_press_keybrowser_select_optionbrowser_hoverbrowser_dragbrowser_navigatebrowser_navigate_backbrowser_handle_dialogbrowser_file_uploadbrowser_fill_formbrowser_snapshot
Small snapshots (<500 chars) are passed through unchanged.
Unsummarized Snapshots
Use browser_snapshot_full to get the raw accessibility tree without summarization. This tool is automatically added as an alias.
Testing
# Create .env file with your API key
echo "ANTHROPIC_API_KEY=sk-ant-..." > .env
# Run tests (includes real API calls and browser tests)
npm testExample
Before (2KB+):
- generic [ref=e327]:
- generic [ref=e328]:
- heading "Go back James's Workspace" [level=4] [ref=e329]:
- button "Go back" [ref=e330] [cursor=pointer]:
- img [ref=e331]
- text: James's Workspace
# ... 100+ more linesAfter (~200 bytes):
Admin settings for "James's Workspace"
Tabs: Overview [e343], Feature flags [e348, selected], Members [e353], Tables [e358]
Actions: Go back [e330], Impersonate [e334]License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceAn MCP server that enables AI assistants to perform web automation tasks such as navigation, clicking, and taking screenshots by running Playwright on Cloudflare Workers. It allows models to interact with the web through a set of browser control tools across platforms like Claude Desktop and GitHub Copilot.Last updated
- AlicenseCqualityDmaintenanceAn MCP server that gives Claude Code real browser control for web automation, testing, and screenshots.Last updated3296154MIT
- Alicense-qualityBmaintenanceA lightweight local MCP server that runs axe-core accessibility audits via Playwright and returns compressed, actionable results optimized for Claude's context window.Last updated52MIT
- Alicense-qualityBmaintenanceAn MCP server for lightweight browser automation using Lightpanda with Chrome fallback, providing LLM-optimized accessibility tree snapshots for precise element targeting.Last updated1MIT
Related MCP Connectors
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jsdf/playwright-slim-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server