OpenCode Browser

v1.0.0Browser Automationstable

Browser automation plugin for OpenCode AI editor - Control Chrome/Edge with AI, automate web testing, scraping & form filling via MCP integration

ai-coding-assistantai-pluginbrowser-automationchrome-automationedge-automation
Share:
48
Stars
0
Downloads
0
Weekly
0/5

What is OpenCode Browser?

OpenCode Browser is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to browser automation plugin for opencode ai editor - control chrome/edge with ai, automate web testing, scraping & form filling via mcp integration

Browser automation plugin for OpenCode AI editor - Control Chrome/Edge with AI, automate web testing, scraping & form filling via MCP integration

This server falls under the Browser Automation category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Browser automation plugin for OpenCode AI editor - Control C

Use Cases

Chrome/Edge browser automation
Web testing and form filling automation
michaljach

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 19, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx opencode-browser

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use OpenCode Browser

OpenCode Browser is a browser automation plugin for the OpenCode AI editor that wires the @browsermcp/mcp browser automation server directly into OpenCode's MCP tool system. It lets you control Chrome or Edge from within your AI coding sessions — navigating URLs, filling forms, clicking elements, taking screenshots, and scraping page content — without any manual browser driver setup. The plugin handles the OpenCode configuration boilerplate so you can get browser automation working with a single init command.

Prerequisites

  • Node.js 18 or later with npx
  • OpenCode AI editor installed and configured
  • Google Chrome or Microsoft Edge installed on your system
  • An opencode.json configuration file in your project or home directory
1

Initialize the plugin

Run the init command to automatically add the OpenCode Browser plugin and browsermcp MCP server entries to your opencode.json configuration file.

# Add to the current project's opencode.json:
npx opencode-browser init

# Or add to your global (~/.opencode/opencode.json) config:
npx opencode-browser init --global

# Preview what would be written without changing files:
npx opencode-browser init --print
2

Review the generated configuration

The init command produces a configuration block that registers the browsermcp MCP server. Verify the generated opencode.json looks correct.

{
  "plugin": ["opencode-browser"],
  "mcp": {
    "browsermcp": {
      "type": "local",
      "command": ["npx", "-y", "@browsermcp/[email protected]"],
      "enabled": true
    }
  }
}
3

Restart OpenCode

Restart the OpenCode editor to pick up the new plugin and MCP server configuration. The browsermcp tools will appear in the available tool list.

4

Enable debug mode (optional)

If you need to troubleshoot browser automation steps, enable debug logging by adding the BROWSER_MCP_DEBUG environment variable to the MCP server config.

"environment": {
  "BROWSER_MCP_DEBUG": "true"
}
5

Use browser tools in your AI session

Ask OpenCode to perform browser tasks using natural language. The AI will invoke the appropriate browsermcp tools to navigate, interact, and extract content from web pages.

OpenCode Browser Examples

Client configuration

Full opencode.json configuration after running npx opencode-browser init, enabling browser automation tools in OpenCode.

{
  "plugin": ["opencode-browser"],
  "mcp": {
    "browsermcp": {
      "type": "local",
      "command": ["npx", "-y", "@browsermcp/[email protected]"],
      "enabled": true,
      "environment": {
        "BROWSER_MCP_DEBUG": "false"
      }
    }
  }
}

Prompts to try

These prompts exercise browser automation from within an OpenCode AI session.

- "Navigate to https://github.com and search for 'opencode'."
- "Go to https://example.com/contact and fill in Name: John, Email: [email protected], then submit the form."
- "Visit https://news.ycombinator.com and get the titles of the top 5 stories."
- "Take a screenshot of the current page and describe what you see."
- "Extract all the links from https://docs.example.com/api."

Troubleshooting OpenCode Browser

Browser does not launch when browser automation tools are invoked.

Ensure Chrome or Edge is installed and accessible in your system PATH. The @browsermcp/mcp package launches the browser automatically — if it fails, try running 'npx -y @browsermcp/[email protected]' directly in a terminal to see the error output. Set BROWSER_MCP_DEBUG=true for detailed logs.

opencode-browser init says opencode.json not found.

Create an empty opencode.json file in your project root (echo '{}' > opencode.json) before running init. For global setup, use 'npx opencode-browser init --global' which targets ~/.opencode/opencode.json and creates it if needed.

Browser tools are available but page interactions fail or time out.

The plugin uses speed-oriented guidance that prefers direct navigation over screenshots. If a site is slow to load, ask the AI to 'wait for the page to fully load' before interacting. For complex SPAs, explicitly instruct the AI to wait for specific elements to appear before attempting to click them.

Frequently Asked Questions about OpenCode Browser

What is OpenCode Browser?

OpenCode Browser is a Model Context Protocol (MCP) server that browser automation plugin for opencode ai editor - control chrome/edge with ai, automate web testing, scraping & form filling via mcp integration It connects AI assistants to external tools and data sources through a standardized interface.

How do I install OpenCode Browser?

Follow the installation instructions on the OpenCode Browser GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with OpenCode Browser?

OpenCode Browser works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is OpenCode Browser free to use?

Yes, OpenCode Browser is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Browser Automation MCP Servers

Explore all browser automation servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "opencode-browser": { "command": "npx", "args": ["-y", "opencode-browser"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use OpenCode Browser?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides