Kagami
Enables automated web browsing and interaction using the Firefox browser engine, allowing for tasks such as site navigation, data extraction, and web automation within a secure, proxy-monitored environment.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Kagami
Claude Code Web exclusive Playwright MCP server. Enables browser automation via JWT authentication proxy.
Overview
This project is designed exclusively for Claude Code Web environment and provides an MCP (Model Context Protocol) server for using Playwright.
Important: This project is designed to work only in Claude Code Web environment. It will not work in local environments or other environments.
Key Features:
Auto-setup functionality (automatically installs required components on first startup)
External access via JWT authentication proxy
Automation using Firefox browser
Automatic CA certificate import
MCP protocol compliant
Related MCP server: Pilot
Architecture
Claude Code → mcp.py → playwright-mcp (Firefox) → proxy.py → JWT Auth Proxy → Internetmcp.py: MCP server entry point. Responsible for initial setup and launching proxy.py
@playwright/mcp: Playwright MCP server implementation (Node.js)
Firefox: Browser engine
proxy.py: Local proxy server
JWT Auth Proxy: Authentication proxy for external access
Setup
Automatic Setup (Recommended)
The following will be automatically set up on first startup:
certutil installation
@playwright/mcp installation
Firefox installation
Firefox profile creation
CA certificate import
Configuration file generation
Note:
First startup may take 30 seconds or more
Usage
Launch as MCP Server
Configure in .mcp.json and Claude Code will automatically launch it:
{
"mcpServers": {
"playwright": {
"command": "python3",
"args": [
"playwright_mcp_claude_code_web/mcp.py"
]
}
}
}File Structure
.
├── playwright_mcp_claude_code_web/
│ ├── mcp.py # MCP server (uses only standard library)
│ ├── setup_minimal.py # Minimal synchronous setup
│ ├── setup_mcp.py # Full asynchronous setup
│ └── README.md # Detailed documentation
├── .mcp.json # MCP server configuration
└── README.md # This fileTechnical Details
Startup Flow
mcp.py uses a two-phase setup approach to avoid timeout issues:
Phase 1: Synchronous Setup (runs before responding)
Minimal Setup (
setup_minimal.py)Install
@playwright/mcpvia npmCreate minimal Firefox configuration file
Fetch Tool List
Start temporary
@playwright/mcpprocessFetch available tool definitions
Store tool list for immediate response to
tools/listrequestsTerminate temporary process
Start MCP Server
Begin responding as MCP server
Return stored tool list for
tools/listrequestsReturn "setup in progress" error for
tools/callrequests
Phase 2: Asynchronous Setup (runs in background)
Full Setup (
setup_mcp.py- runs in background thread)Install
certutil(for certificate management)Install
proxy.pyvia uvInstall Firefox browser
Create Firefox profile (
/home/user/firefox-profile)Import CA certificates for TLS inspection
Generate final configuration file
Start Services
Start
proxy.py(localhost:18915)Start
@playwright/mcpwith full configurationBegin proxying all requests to
@playwright/mcp
Communication Flow (After Setup)
Claude Code sends request to
mcp.pyvia MCP protocol (stdin/stdout)mcp.pyproxies request to@playwright/mcp@playwright/mcplaunches Firefox (proxy setting: localhost:18915)proxy.pyforwards requests to JWT authentication proxyAccess external sites through authenticated proxy
Security
Import CA certificate for TLS inspection into Firefox profile
All HTTPS traffic goes through JWT authentication proxy
Firefox runs with dedicated profile (/home/user/firefox-profile)
Note: Claude Code Web environment performs TLS Inspection on all HTTPS communications for security auditing purposes. This project imports the necessary CA certificates to enable secure browsing within this monitored environment.
References
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted Web Crawler MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.
Hosted Magento MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted Shopify MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn 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.Apache 2.0
- AlicenseAqualityCmaintenanceA high-performance browser automation MCP server that provides AI agents with a fast, persistent Chromium instance via Playwright. It features reference-based element interaction, snapshot diffing, and manual handoff capabilities to handle complex tasks like CAPTCHAs.6120 npm32MIT
- AlicenseCqualityDmaintenanceAn MCP server that gives Claude Code real browser control for web automation, testing, and screenshots.3281 npm157MIT
- AlicenseNot gradedqualityAmaintenanceAn MCP server that gives Claude Code a real browser, letting it navigate, click, type, screenshot, run multi-step test scenarios with assertions, and monitor console and network activity. It also supports session recording, visual regression comparison, and security controls like URL allowlists and rate limiting.106 npmMIT