This is a fork of chrome-devtools-mcp (Copyright 2025 Google LLC), extended with Opera Neon AI features.
opera-devtools-mcp lets your coding agent (such as Claude, Cursor, or Copilot)
control and inspect a live browser. It acts as a Model-Context-Protocol
(MCP) server, giving your AI coding assistant access to the full power of
DevTools for reliable automation, in-depth debugging, and performance analysis.
When connected to Opera Neon, it also exposes Opera's built-in AI capabilities.
- Opera Neon AI tools: Interact with Opera's built-in AI directly from your coding agent — chat, perform page actions, generate content, and run research.
- Get performance insights: Uses Chrome DevTools to record traces and extract actionable performance insights.
- Advanced browser debugging: Analyze network requests, take screenshots and check browser console messages (with source-mapped stack traces).
- Reliable automation: Uses puppeteer to automate actions in the browser and automatically wait for action results.
These tools are only available when connected to Opera Neon via --browser-url.
| Tool | Description |
|---|---|
opera_chat |
Send a chat prompt to Opera's built-in AI and return the response. |
opera_do |
Instruct Opera's built-in AI to perform an action on the current page. |
opera_make |
Ask Opera's built-in AI to create or generate content. |
opera_research |
Ask Opera's built-in AI to research a topic. Supports local, one-minute, and deep research modes. |
opera-devtools-mcp exposes content of the browser instance to the MCP clients
allowing them to inspect, debug, and modify any data in the browser or DevTools.
Avoid sharing sensitive or personal information that you don't want to share with
MCP clients.
Performance tools may send trace URLs to the Google CrUX API to fetch real-user
experience data. To disable this, run with the --no-performance-crux flag.
- Node.js v20.19 or a newer latest maintenance LTS version.
- A Chromium-based browser (Chrome or Opera Neon).
- npm
Add the following config to your MCP client:
{
"mcpServers": {
"opera-devtools": {
"command": "npx",
"args": ["-y", "opera-devtools-mcp@latest"]
}
}
}Note
Using opera-devtools-mcp@latest ensures that your MCP client will always use the latest version of the Opera DevTools MCP server.
To use Opera Neon AI tools, start Opera Neon with remote debugging enabled and connect via --browser-url:
{
"mcpServers": {
"opera-devtools": {
"command": "npx",
"args": ["-y", "opera-devtools-mcp@latest", "--browser-url=http://127.0.0.1:9222"]
}
}
}Start Opera Neon with the remote debugging port:
# macOS
/Applications/Opera\ Neon.app/Contents/MacOS/Opera\ Neon --remote-debugging-port=9222 --user-data-dir=/tmp/opera-profileClaude Code
claude mcp add opera-devtools --scope user npx opera-devtools-mcp@latestCursor
Go to Cursor Settings -> MCP -> New MCP Server. Use the config provided above.
Copilot / VS Code
Follow the VS Code MCP configuration guide using the standard config from above, or use the CLI:
code --add-mcp '{"name":"opera-devtools","command":"npx","args":["-y","opera-devtools-mcp"],"env":{}}'Windsurf
Follow the configure MCP guide using the standard config from above.Cline
Follow https://docs.cline.bot/mcp/configuring-mcp-servers and use the config provided above.Enter the following prompt in your MCP Client to check if everything is working:
Check the performance of https://opera.com
Your MCP client should open the browser and record a performance trace.
Note
The MCP server will start the browser automatically once the MCP client uses a tool that requires a running browser instance. Connecting to the Opera DevTools MCP server on its own will not automatically start the browser.
If you run into any issues, checkout our troubleshooting guide.
- Opera Neon AI (4 tools, Opera Neon only)
opera_chatopera_doopera_makeopera_research
- Input automation (9 tools)
- Navigation automation (6 tools)
- Emulation (2 tools)
- Performance (4 tools)
- Network (2 tools)
- Debugging (6 tools)
The Opera DevTools MCP server supports the following configuration options:
-
--autoConnect/--auto-connectIf specified, automatically connects to a browser running locally from the user data directory identified by the channel param (default channel is stable).- Type: boolean
- Default:
false
-
--browserUrl/--browser-url,-uConnect to a running, debuggable browser instance (e.g.http://127.0.0.1:9222).- Type: string
-
--wsEndpoint/--ws-endpoint,-wWebSocket endpoint to connect to a running browser instance (e.g., ws://127.0.0.1:9222/devtools/browser/). Alternative to --browserUrl.- Type: string
-
--wsHeaders/--ws-headersCustom headers for WebSocket connection in JSON format (e.g., '{"Authorization":"Bearer token"}'). Only works with --wsEndpoint.- Type: string
-
--headlessWhether to run in headless (no UI) mode.- Type: boolean
- Default:
false
-
--executablePath/--executable-path,-ePath to custom browser executable.- Type: string
-
--isolatedIf specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed.- Type: boolean
-
--userDataDir/--user-data-dirPath to the user data directory for the browser.- Type: string
-
--channelSpecify a different Chrome channel that should be used.- Type: string
- Choices:
stable,canary,beta,dev
-
--logFile/--log-filePath to a file to write debug logs to.- Type: string
-
--viewportInitial viewport size. For example,1280x720.- Type: string
-
--proxyServer/--proxy-serverProxy server configuration passed as --proxy-server when launching the browser.- Type: string
-
--acceptInsecureCerts/--accept-insecure-certsIf enabled, ignores errors relative to self-signed and expired certificates. Use with caution.- Type: boolean
-
--experimentalVision/--experimental-visionWhether to enable coordinate-based tools such as click_at(x,y).- Type: boolean
-
--experimentalScreencast/--experimental-screencastExposes experimental screencast tools (requires ffmpeg).- Type: boolean
-
--chromeArg/--chrome-argAdditional arguments for the browser. Only applies when the browser is launched by opera-devtools-mcp.- Type: array
-
--ignoreDefaultChromeArg/--ignore-default-chrome-argExplicitly disable default arguments for the browser.- Type: array
-
--categoryEmulation/--category-emulationSet to false to exclude tools related to emulation.- Type: boolean
- Default:
true
-
--categoryPerformance/--category-performanceSet to false to exclude tools related to performance.- Type: boolean
- Default:
true
-
--categoryNetwork/--category-networkSet to false to exclude tools related to network.- Type: boolean
- Default:
true
-
--performanceCrux/--performance-cruxSet to false to disable sending URLs from performance traces to CrUX API to get field performance data.- Type: boolean
- Default:
true
-
--slimExposes a "slim" set of 3 tools covering navigation, script execution and screenshots only.- Type: boolean
Pass them via the args property in the JSON configuration. For example:
{
"mcpServers": {
"opera-devtools": {
"command": "npx",
"args": [
"opera-devtools-mcp@latest",
"--headless=true",
"--isolated=true"
]
}
}
}{
"mcpServers": {
"opera-devtools": {
"command": "npx",
"args": [
"opera-devtools-mcp@latest",
"--wsEndpoint=ws://127.0.0.1:9222/devtools/browser/<id>",
"--wsHeaders={\"Authorization\":\"Bearer YOUR_TOKEN\"}"
]
}
}
}opera-devtools-mcp starts a browser instance using the following user data directory:
- Linux / macOS:
$HOME/.cache/chrome-devtools-mcp/chrome-profile-$CHANNEL - Windows:
%HOMEPATH%/.cache/chrome-devtools-mcp/chrome-profile-$CHANNEL
The user data directory is not cleared between runs. Set the isolated option to true
to use a temporary user data dir instead which will be cleared automatically after
the browser is closed.
By default, the server will start a new Chrome instance with a dedicated profile. You can instead connect to a running instance via --browser-url:
{
"mcpServers": {
"opera-devtools": {
"command": "npx",
"args": [
"opera-devtools-mcp@latest",
"--browser-url=http://127.0.0.1:9222"
]
}
}
}Start the browser with the remote debugging port enabled:
macOS (Chrome)
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stablemacOS (Opera Neon)
/Applications/Opera\ Neon.app/Contents/MacOS/Opera\ Neon --remote-debugging-port=9222 --user-data-dir=/tmp/opera-profileLinux
/usr/bin/google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stableWindows
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="%TEMP%\chrome-profile-stable"Warning
Enabling the remote debugging port opens up a debugging port on the running browser instance. Any application on your machine can connect to this port and control the browser. Make sure that you are not browsing any sensitive websites while the debugging port is open.
Please consult these instructions.
See Troubleshooting.