cody-for-chrome-mcp

v0.1.4
@ainative/cody-for-chrome-mcp Checked 4 days ago Published 20 days ago

MCP server for Cody in Chrome browser integration

MCP server that bridges Cody CLI to the Cody in Chrome browser extension. When Cody CLI starts a browser-automation session it spawns this server as a subprocess (stdio transport). Each tool call is forwarded to the running Chrome extension over a local Unix socket (/tmp/cody-mcp-browser-bridge-/*.sock). On Windows the same protocol runs over a named pipe. The server is spawned automatically by Cody CLI when the cody-in-chrome MCP server is configured. You can also run it manually for debugging:

Summary extracted from the README.

@ainative/cody-for-chrome-mcp

MCP server that bridges Cody CLI to the Cody in Chrome browser extension.

How it works

Cody CLI  -->  MCP stdio transport  -->  cody-for-chrome-mcp  -->  Unix socket  -->  Chrome extension

When Cody CLI starts a browser-automation session it spawns this server as a subprocess (stdio transport). Each tool call is forwarded to the running Chrome extension over a local Unix socket (/tmp/cody-mcp-browser-bridge-<user>/*.sock). On Windows the same protocol runs over a named pipe.

Tools (13)

Tool Description
tabs_context_mcp Get URL, title, and content of open tabs
tabs_create_mcp Open a new tab at a URL
tabs_close Close a tab by ID
navigate Navigate the active tab to a URL
click Click an element by CSS selector
fill_form Fill a form field (selector + value)
scroll Scroll the page or an element
screenshot Capture viewport screenshot as base64
gif_creator Record a GIF of interactions (start/stop/get)
read_console_messages Read browser console logs
read_network Read XHR/fetch network requests
javascript_tool Execute JavaScript in the page context
wait_for_element Wait for a CSS selector to appear

Usage

The server is spawned automatically by Cody CLI when the cody-in-chrome MCP server is configured. You can also run it manually for debugging:

npx @ainative/cody-for-chrome-mcp

Requirements

  • Node >= 18 or Bun >= 1.1
  • Cody in Chrome extension installed from https://ainative.studio/chrome
  • Extension must be running and logged in with the same AINative account as Cody CLI

Author

AINative Studio — https://ainative.studio