Connect your AI agent to Chrome.
MiraiLens bridges MCP-compatible AI clients and a live Chrome session through a local browser connector.
Install daemon
Run the local loopback WebSocket server in your command shell environment.
Connect extension
Install the Chrome Web Store client connector to interface with active browser sessions.
Register MCP settings
Insert configuration parameters inside Claude, Cursor, Windsurf, or Cline JSON files.
# Binds active port 8080. Ready for chrome extension connector...
SYSTEM REQUIREMENTS
Connect Chrome
The MiraiLens Connector is the browser-side component that connects the local MCP server to an active Chrome session.
Configure your AI client
Select your preferred AI client or IDE below to view its exact configuration block, file path, and setup steps.
Config File Locations
{
"mcpServers": {
"mirailens": {
"command": "npx",
"args": ["-y", "mirailens@latest"]
}
}
}Setup Instructions
Open the Claude Desktop configuration settings file.
Add the MiraiLens configuration object inside your 'mcpServers' object.
Save the configuration file and restart Claude Desktop.
Launch a conversation and verify the MiraiLens browser tools are available.
Verify your connection
Confirm system loopback statuses are green and active in the instrumentation panel.
Now give your agent a browser.
Open and move between pages.
Understand the current browser state.
Click and interact with page elements.
Enter information into form fields.
Retrieve relevant page information.
Execute multi-step browser workflows.
Troubleshooting
Under the hood
Human stays in control
In browser automation, the AI client runs remote scripts. MiraiLens Connector protects against AI attempts to spoof authority.
Security by architecture
Control states reside in Chrome memory space. An active AI session is immediately aborted and transitioned to HUMAN_TAKEOVER when user interaction is detected. The AI cannot override this state.
Read security details →Chrome Extension Permissions
The extension requires specific manifest profiles to interact with tabs and dispatch scripting requests.
Advanced configuration
Custom environments can change daemon paths or listening loops.
Keep MiraiLens up to date
Update the global or local registry packages to load security fixes and layout API updates.
Uninstall Guide
To completely remove MiraiLens, delete the Chrome extension from your browser, clean the config block JSON files, and run npm uninstall -g mirailens.
Ready to build with MiraiLens?
Install the MCP server, connect your browser, and give your AI agent access to real web workflows.