Opera DevTools MCP
Enables AI coding assistants to control and inspect a browser via DevTools, with additional Opera Neon AI tools for chat, page actions, content generation, and research.
README
Opera DevTools MCP
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.
Tool reference | Changelog | Contributing | Troubleshooting | Design Principles
Key features
- 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.
Opera Neon AI tools
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. |
Disclaimers
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.
Requirements
- Node.js v20.19 or a newer latest maintenance LTS version.
- A Chromium-based browser (Chrome or Opera Neon).
- npm
Getting started
Add the following config to your MCP client:
{
"mcpServers": {
"opera-devtools": {
"command": "npx",
"args": ["-y", "opera-devtools-mcp@latest"]
}
}
}
[!NOTE] Using
opera-devtools-mcp@latestensures that your MCP client will always use the latest version of the Opera DevTools MCP server.
Connecting to Opera Neon
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-profile
MCP Client configuration
<details> <summary>Claude Code</summary>
claude mcp add opera-devtools --scope user npx opera-devtools-mcp@latest
</details>
<details> <summary>Cursor</summary>
Go to Cursor Settings -> MCP -> New MCP Server. Use the config provided above.
</details>
<details> <summary>Copilot / VS Code</summary>
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":{}}'
</details>
<details> <summary>Windsurf</summary> Follow the <a href="https://docs.windsurf.com/windsurf/cascade/mcp#mcp-config-json">configure MCP guide</a> using the standard config from above. </details>
<details> <summary>Cline</summary> Follow https://docs.cline.bot/mcp/configuring-mcp-servers and use the config provided above. </details>
Your first prompt
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.
Tools
If you run into any issues, checkout our troubleshooting guide.
<!-- BEGIN AUTO GENERATED TOOLS -->
- Input automation (10 tools)
- Navigation automation (6 tools)
- Emulation (2 tools)
- Performance (3 tools)
- Network (2 tools)
- Debugging (8 tools)
- Memory (4 tools)
- Opera (4 tools)
- Extensions (5 tools)
- Third-party (2 tools)
- WebMCP (2 tools)
<!-- END AUTO GENERATED TOOLS -->
Configuration
The Opera DevTools MCP server supports the following configuration options:
<!-- BEGIN AUTO GENERATED OPTIONS -->
-
--autoConnect/--auto-connectIf specified, automatically connects to a browser (Chrome 144+) running locally from the user data directory identified by the channel param (default channel is stable). Requires the remote debugging server to be started in the Chrome instance via chrome://inspect/#remote-debugging.- Type: boolean
- Default:
false
-
--browserUrl/--browser-url,-uConnect to a running, debuggable Chrome instance (e.g.http://127.0.0.1:9222). For more details see: https://github.com/operasoftware/opera-devtools-mcp#connecting-to-a-running-chrome-instance.- Type: string
-
--wsEndpoint/--ws-endpoint,-wWebSocket endpoint to connect to a running Chrome instance (e.g., ws://127.0.0.1:9222/devtools/browser/<id>). 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 Chrome executable.- Type: string
-
--isolatedIf specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed. Defaults to false.- Type: boolean
-
--userDataDir/--user-data-dirPath to the user data directory for Chrome. Default is $HOME/.cache/opera-devtools-mcp/chrome-profile$CHANNEL_SUFFIX_IF_NON_STABLE- Type: string
-
--channelSpecify a different Chrome channel that should be used. The default is the stable channel version.- Type: string
- Choices:
canary,dev,beta,stable
-
--logFile/--log-filePath to a file to write debug logs to. Set the env variableDEBUGto*to enable verbose logs. Useful for submitting bug reports.- Type: string
-
--viewportInitial viewport size for the Chrome instances started by the server. For example,1280x720. In headless mode, max size is 3840x2160px.- Type: string
-
--proxyServer/--proxy-serverProxy server configuration for Chrome passed as --proxy-server when launching the browser. See https://www.chromium.org/developers/design-documents/network-settings/ for details.- 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). Usually requires a computer-use model able to produce accurate coordinates by looking at screenshots.- Type: boolean
-
--experimentalScreencast/--experimental-screencastExposes experimental screencast tools (requires ffmpeg). Install ffmpeg https://www.ffmpeg.org/download.html and ensure it is available in the MCP server PATH.- Type: boolean
-
--experimentalFfmpegPath/--experimental-ffmpeg-pathPath to ffmpeg executable for screencast recording.- Type: string
-
--categoryExperimentalWebmcp/--category-experimental-webmcpSet to true to enable debugging WebMCP tools. Requires Chrome 149+ with the following flags:--enable-features=WebMCPTesting,DevToolsWebMCPSupport- Type: boolean
-
--chromeArg/--chrome-argAdditional arguments for Chrome. Only applies when Chrome is launched by opera-devtools-mcp.- Type: array
-
--ignoreDefaultChromeArg/--ignore-default-chrome-argExplicitly disable default arguments for Chrome. Only applies when Chrome is launched by opera-devtools-mcp.- 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
-
--categoryExtensions/--category-extensionsSet to true to include tools related to extensions. Note: This feature is currently only supported with a pipe connection. autoConnect, browserUrl, and wsEndpoint are not supported with this feature until 149 will be released.- Type: boolean
- Default:
false
-
--categoryExperimentalThirdParty/--category-experimental-third-partySet to true to enable third-party developer tools exposed by the inspected page itself- Type: boolean
- Default:
false
-
--performanceCrux/--performance-cruxSet to true to enable sending URLs from performance traces to CrUX API to get field performance data.- Type: boolean
- Default:
false
-
--usageStatistics/--usage-statisticsSet to true to opt-in to usage statistics collection. Google collects usage data to improve the tool, handled under the Google Privacy Policy (https://policies.google.com/privacy). This is independent from Chrome browser metrics. Disabled ifOPERA_DEVTOOLS_NO_USAGE_STATISTICSorCIenv variables are set.- Type: boolean
- Default:
false
-
--slimExposes a "slim" set of 3 tools covering navigation, script execution and screenshots only. Useful for basic browser tasks.- Type: boolean
-
--redactNetworkHeaders/--redact-network-headersIf true, redacts some of the network headers considered senstive before returning to the client.- Type: boolean
- Default:
false
<!-- END AUTO GENERATED OPTIONS -->
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"
]
}
}
}
Connecting via WebSocket with custom headers
{
"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\"}"
]
}
}
}
Concepts
User data directory
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.
Connecting to a running browser instance
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-stable
macOS (Opera Neon)
/Applications/Opera\ Neon.app/Contents/MacOS/Opera\ Neon --remote-debugging-port=9222 --user-data-dir=/tmp/opera-profile
Linux
/usr/bin/google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable
Windows
"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.
Debugging Chrome on Android
Please consult these instructions.
Known limitations
See Troubleshooting.
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。