Purpose
Tactab is a tactile browser control and multimodal vision bridge tool for AI agents. It enables MCP-compatible AI clients (Cursor, Claude Desktop, Antigravity, Windsurf, Cline, etc.) to "see" and "operate" the user's Google Chrome browser, making it suitable for local automation scenarios that require AI to interact directly with web pages.
Main Capabilities
- Multimodal Vision: Supports capturing high-resolution PNG screenshots for AI to inspect page visual layout.
- DOM Control: Supports full DOM scraping, button clicking, form filling, and page navigation.
- Local and Private: All communication strictly goes through the local loopback address 127.0.0.1; session cookies, logged-in tabs (such as AWS, Jira, GitHub), and local development servers (such as localhost:3000) do not leave the local machine.
- Single Extension: One lightweight Chrome extension can connect multiple AI tools, with no need to install a separate extension for each AI tool.
- Universal MCP Standard: Plug and play via standard input/output (stdio), compatible with Claude Desktop, Cursor, Antigravity, Windsurf, or custom AI agents.
- Multi-Agent Handoff Protocol: Built-in "Triple-Anchor" architecture, supporting seamless transfer of context between different AI models, including AGENTS.md, PLAN.md, and Git milestones.
Usage
Architecture
- The AI agent calls the
automate_websitetool via standard input/output (stdio). - The Tactab bridge server (
bridge.js) listens on127.0.0.1:8765and converts tool calls into JSON WebSocket messages. - The Tactab Chrome extension's Service Worker (
background.js) receives commands, manages connection state, and routes to the active tab. - The content script (
content.js) performs operations within the active web page and returns structured results back through the pipeline.
Quick Start
- Install server dependencies: Open a terminal in the
server/directory and run the installation (on Windows, if the script execution policy restricts npm, you can runnpm.cmd install). - Load the Chrome extension: Open Chrome and go to
chrome://extensions/, enable "Developer mode" in the upper right corner, click "Load unpacked" in the upper left corner, and select theextension/folder in this repository. When connected to the local MCP server, the extension badge shows green ON; when disconnected, it shows red OFF and automatically retries every 5 seconds. - Configure the AI client: Add Tactab to the AI client's MCP configuration, using the absolute path to
server/bridge.js. Configuration file locations:- Windows:
%APPDATA%\Claude\claude_desktop_config.json - macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json - Windows note: Use escaped backslashes in paths, for example
"C:\\path\\to\\tactab\\server\\bridge.js". - Cursor: Open Cursor settings ➔ Features ➔ MCP Servers (or edit
.cursor/mcp.json), and add the exact same JSON block.
- Windows:
Supported Browser Operations
The
automate_website tool supports the following operations on any standard web page: screenshots, DOM scraping, button clicking, form filling, page navigation, element extraction, page scrolling, etc.
Example Prompts
After configuration is complete, you can instruct the AI in natural language:
- "Take a screenshot of the current tab and inspect the layout design."
- "View the chart on the active tab and summarize the visual data."
- "View my current Chrome tab and summarize what you see."
- "Fill in the login form with test credentials and submit it."
- "Extract all visible product titles and links on the page."
- "Scroll down 800 pixels and extract the pricing table."
Multi-Agent Handoff Protocol (Triple-Anchor Architecture)
Use in any project:
- Add the
AGENTS.mdandPLAN.mdCopy to the codebase root directory. - Anchor 1 (AGENTS.md): Modern AI tools (Cursor, Antigravity, Claude, ChatGPT CLI) will automatically read it, instructing the model to check before modifying any files
PLAN.mdand git status. - Anchor 2 (PLAN.md): Contains a live checklist and decision log to prevent new agents from accidentally reverting intentional architectural choices.
- Anchor 3 (Git milestones): When the current agent is approaching the token limit, instruct it to "commit progress to Git and update PLAN.md".
- Instant continuation: Open the next AI agent and prompt "continue". The new model reads
AGENTS.md➔PLAN.md➔ git status and can take over immediately with zero context loss.
Use Cases
- Automated workflows that require AI to directly view and operate the local Chrome browser
- Local operations on logged-in web pages (such as AWS, Jira, GitHub)
- Visual inspection and interaction with a local development server (such as localhost:3000)
- Code context handoff between multiple AI models
- Local automated testing without the need for subscription or paid cloud automation platforms
Limitations and Precautions
- Only standard web pages are supported; restricted internal pages (such as
chrome://extensions、about:blank) are unavailable. - The default WebSocket port is 8765, which can be changed via the
WS_PORTenvironment variable, and the port inextension/background.jsmust be updated accordingly. - The software is for personal workflow automation, educational research, and authorized testing only. Users must ensure on their own that automated operations, scraping requests, and web interactions comply with all applicable laws as well as the terms of service, acceptable use policies, and robots.txt guidelines of the websites accessed.
- It must not be used to bypass authentication barriers, paywalls, CAPTCHAs, rate limits, or security controls, nor to access or extract proprietary, copyrighted, or sensitive personal data without explicit permission.
- The authors and contributors are not responsible for any misuse, website bans, legal disputes, data loss, damages, or consequences. By using this project, you agree to assume all related risks and responsibilities.
- The project is released under the MIT License and may be used freely for open-source and commercial purposes.