@codeinklingon/browser-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@codeinklingon/browser-mcp go to google.com and take a screenshot"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@codeinklingon/browser-mcp
vibecoded port of oh-my-pi's browser tool as an mcp server
MCP server for headless browser automation via Puppeteer. Drop-in replacement for @playwright/mcp with enhanced stealth anti-detection and Playwright-format ARIA snapshots.
Usage
Add to your opencode.json:
{
"mcp": {
"browser-mcp": {
"type": "local",
"command": ["npx", "-y", "@codeinklingon/browser-mcp"],
"enabled": true
}
}
}Or install the skill (registers the MCP server + loads AI guidance):
npx skills install @codeinklingon/browser-mcpOr run directly:
npx @codeinklingon/browser-mcpRelated MCP server: Chrome MCP Stealth
Tools
Tool | Description |
| Open a tab, optionally navigate to a URL |
| Execute JS in the tab — has full |
| Close the tab and release resources |
The tab API
Every browser_tab_run call has tab, display, wait, assert in scope.
Navigation & Info
Method | Notes |
| Current URL (sync) |
| Page title |
|
|
| Wait for next page load |
Click & Input
Method | Notes |
| CSS, |
| Type into input |
| Clear then type |
|
|
| |
|
|
| Selector or |
| File input |
Scrolling & Visibility
Method | Notes |
| Scroll by pixels |
| Center element in viewport |
Page State
Method | Notes |
| Accessibility tree: |
| Playwright-format YAML with |
| Raw JS in page context |
|
|
| Base64 PNG |
Element Refs
Method | Notes |
| ElementHandleActions from |
| ElementHandleActions from |
| CSS, text, xpath, aria-ref |
| String substring or RegExp |
| String, RegExp, or function |
ElementHandleActions: { click, type, fill, hover, focus, screenshot, evaluate, scrollIntoView }
Important
display,wait,assertare bare globals — NOTtab.*methodsdisplay(x)✓ —tab.display(x)✗wait(2000)✓ —tab.wait(2000)✗
Navigation invalidates refs — re-run
ariaSnapshot()orobserve()aftergoto()Single-expression code auto-returns its value (no explicit
returnneeded)
Selector Syntax
Prefix | Example | Notes |
(none) |
| CSS selector |
|
| Visible text (retries 10x) |
|
| XPath |
|
| Ref from |
Example
await tab.goto('https://example.com/login')
const snap = await tab.ariaSnapshot()
display(snap)
await tab.fill('aria-ref=e5', 'admin')
await tab.fill('aria-ref=e8', 'password')
await tab.click('aria-ref=e12')
await tab.waitForNavigation()
display(tab.url())
const screenshot = await tab.screenshot()
display(screenshot)Install
# Quick start — installs the skill and registers the MCP server
npx skills install codeinklingon/browser-mcp
# Or manually add to opencode.json (see Usage above)Build from source
npm install
npm run buildPublish:
npm publishLicense
MIT
Available Tools
3 toolsbrowser_tab_closeA
Close the browser tab and release resources.
Inputs: no named parameters.
browser_tab_openC
Open a browser tab, optionally navigating to a URL. Reuses existing tab by name.
Inputs: url, viewport.
browser_tab_runA
Execute JavaScript code in the browser tab. The code runs as an async function body.
CRITICAL RULES:
MUST call browser_tab_open before browser_tab_run
ALWAYS await async tab methods
tab.observe() and tab.goto() invalidate previous element refs
Default to tab.observe() for page state; screenshot only when appearance matters
For reading static content (articles, docs, JSON, PDFs), prefer webfetch — browser is for JS execution, auth, interactive actions
Available variables in scope:
tab — TabApi object: tab.url(): string (sync) tab.title(): Promise tab.goto(url, { waitUntil? }) waitUntil: 'load' | 'domcontentloaded' | 'networkidle' tab.click(selector) CSS, "text/...", "xpath/...", "aria-ref=..." tab.type(selector, text) tab.fill(selector, value) clear + type into input tab.press(key, { selector? }) e.g. 'Enter', 'Escape' tab.hover(selector) tab.scroll(deltaX, deltaY) tab.scrollIntoView(selector) tab.screenshot({ fullPage?, selector? }) returns base64 PNG tab.evaluate(fn, ...args) raw JS in page context tab.observe() accessibility tree: { elements: [{ id, role, name, value, focused }] } tab.ariaSnapshot() Playwright-format YAML tree with [ref=eN] ids, [cursor=pointer] for clickables tab.id(n) ElementHandleActions from observe() id tab.ref("e5") ElementHandleActions from ariaSnapshot() ref tab.waitForSelector(selector, { timeout?, visible?, hidden? }) tab.waitForUrl(pattern, { timeout? }) string substring or RegExp tab.waitForResponse(pattern, { timeout? }) string, RegExp, or (res) => boolean tab.waitForNavigation({ waitUntil?, timeout? }) tab.select(selector, ...values) option(s) tab.drag(from, to) selector or { x, y } point tab.extract(format?) 'markdown' | 'text' | omitted (returns HTML) tab.uploadFile(selector, ...filePaths) file input
ElementHandleActions: { click, type, fill, hover, focus, screenshot, evaluate, scrollIntoView }
display(value) — emit structured output (NOT a tab.* method)
wait(ms) — delay (NOT a tab.* method; use bare wait(2000), not tab.wait(...))
assert(cond, msg?) — guard (NOT a tab.* method)
Selectors: CSS by default, "text/Sign in" for visible text, "xpath/...", "aria-ref=e5" from ariaSnapshot.
Single-expression code auto-returns its value (no explicit 'return' needed). Use display() for intermediate values.
Inputs: code (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a distinct action: open, run, close. No overlap; an agent can easily select the correct tool for each step of the browser lifecycle.
All names follow the exact pattern `browser_tab_<verb>`, with verbs being clear actions. Perfectly consistent.
Three tools cover the essential browser tab lifecycle: open, execute code, close. This is a well-scoped set for the server's purpose.
The tools cover the primary workflow (open, run, close). While additional tools for specialized actions (e.g., tab navigation) could be added, the API methods described in the critical rules provide sufficient interactivity, so no dead ends.
Maintenance
Related MCP Connectors
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Unofficial Browserless MCP — wraps the Browserless headless-Chromium REST API (browserless.io)
MCP server for Mint — AI-powered QA that runs your app in a real browser on every PR.
Web scraping MCP server — scrape, extract structured data, screenshot any site with anti-bot bypass.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceA MCP server that provides browser automation tools, allowing users to navigate websites, take screenshots, click elements, fill forms, and execute JavaScript through Playwright.82Apache 2.0
- AlicenseNot gradedqualityCmaintenanceAn MCP server for stealth browser automation that uses human-like interaction patterns to bypass bot detection via the Chrome DevTools Protocol. It enables users to navigate, interact with elements, and capture data from websites using undetectable behaviors like Bezier mouse movements and Gaussian typing delays.2MIT
- AlicenseNot gradedqualityDmaintenanceSelf-hosted MCP server for browser automation using Puppeteer, with tools for navigation, screenshots, mouse interactions, cookie management, and multiple transport protocols.21MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for headless browser automation using Puppeteer, enabling AI to navigate, click, fill forms, take screenshots, and execute JavaScript on web pages.MIT