@aifirelab/mcp-pinchtab
OfficialClick 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., "@@aifirelab/mcp-pinchtab open https://example.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.
@aifirelab/mcp-pinchtab
MCP server for Pinchtab -- browser automation for AI agents.
What it does
Bridges Claude (or any MCP client) to a local Pinchtab server for headless browser control. Provides 16 tools for navigating pages, clicking elements, filling forms, taking screenshots, and more.
Works over stdio -- compatible with Claude Code, Claude Desktop, and any MCP client
Uses Pinchtab's accessibility-tree snapshots for token-efficient page understanding
All interactions use element refs (
e0,e1, ...) from snapshots -- no CSS selectors needed
Related MCP server: chrome-mcp
Prerequisites
Node.js 18+
Pinchtab installed globally:
npm i -g pinchtab
Quick Start -- Claude Code
Add to your .mcp.json:
{
"mcpServers": {
"pinchtab": {
"type": "stdio",
"command": "npx",
"args": ["@aifirelab/mcp-pinchtab"]
}
}
}Quick Start -- Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"pinchtab": {
"command": "npx",
"args": ["@aifirelab/mcp-pinchtab"]
}
}
}Environment Variables
Variable | Default | Description |
|
| Override Pinchtab server URL |
|
| Override pinchtab binary path |
Tools
Tool | Description | Key Parameters |
| Navigate the browser to a URL |
|
| Get accessibility tree snapshot of the page (token-efficient) |
|
| Click an element by ref |
|
| Type text character by character |
|
| Instantly fill a form field (clears existing value) |
|
| Press a keyboard key |
|
| Select an option from a dropdown |
|
| Scroll the page or an element |
|
| Hover over an element |
|
| Extract text content of the current page | -- |
| Take a screenshot (base64 JPEG) | -- |
| Execute JavaScript in the browser |
|
| List all open browser tabs | -- |
| Close the current or a specific tab |
|
| Get all cookies for the current page | -- |
| Check if Pinchtab server is running | -- |
License
MIT
Available Tools
17 toolsclickA
Click an element by ref (e.g. 'e5'). Use snapshot to find refs. For SPAs, clicking may not cause a full page navigation.
Inputs: ref (required), human, waitMs.
close_tabB
Close the current or a specific tab.
Inputs: tabId.
evaluateC
Execute JavaScript in the browser and return the result.
Inputs: expression (required).
fillA
Instantly fill a form field (clears existing value). For React/Vue/Angular apps, set submitEvents=true or use click + type_text instead, as direct fill may not trigger framework state updates.
Inputs: ref (required), value (required), submitEvents.
get_cookiesB
Get all cookies for the current page.
Inputs: no named parameters.
get_textB
Extract text content of the current page.
Inputs: no named parameters.
healthA
Check if Pinchtab server is running.
Inputs: no named parameters.
hoverC
Hover over an element.
Inputs: ref (required).
list_tabsB
List all open browser tabs.
Inputs: no named parameters.
pressB
Press a keyboard key (Enter, Tab, Escape, ArrowDown, etc.)
Inputs: key (required), ref.
screenshotA
Take a screenshot as base64 image. Expensive in tokens — prefer snapshot for most tasks. Use screenshot only when visual layout matters.
Inputs: no named parameters.
scrollB
Scroll the page or a specific element.
Inputs: direction (required), ref, amount.
selectC
Select an option from a dropdown.
Inputs: ref (required), value (required).
snapshotA
Get accessibility tree snapshot of the page. Returns element refs (e0, e1, ...) for interaction. This is the primary way to understand page state and costs far fewer tokens than a screenshot.
Inputs: compact, interactive.
type_textA
Type text character by character. Fires real keyboard events, so works with React/Vue/Angular. Use 'fill' for instant input on plain HTML forms.
Inputs: ref (required), text (required), human.
wait_for_selectorA
Wait for a CSS selector to appear on the page. Polls every 500ms up to the timeout.
Inputs: selector (required), timeoutMs.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each tool targets a distinct browser action (navigate, click, select, scroll, hover, evaluate, etc.), and descriptions explicitly disambiguate the trickiest pairs (type_text vs fill, snapshot vs screenshot vs get_text). Minor residual overlap remains between snapshot and get_text for reading page state, but the guidance pushes agents to snapshot first.
All names are lowercase snake_case, with action-oriented verbs (list_tabs, close_tab, wait_for_selector, get_cookies) that fit a predictable pattern. A few bare verbs (press, select, scroll, hover, fill) lack the noun object but remain unambiguous in context.
17 tools is at the upper edge of reasonable but each covers a distinct browser primitive that a Playwright-style agent actually needs. Nothing is obviously redundant, though the set is on the heavy side for a single-surface MCP server.
Core interaction lifecycle (navigate, snapshot, click, type, key press, select, scroll, wait, evaluate, tabs, cookies, health) is well covered. However there are notable asymmetries: get_cookies without set_cookies, list_tabs/close_tab without an open/new_tab, and no back/forward/reload or dialog/file-upload handling, which will create dead ends for some workflows.
Maintenance
Related MCP Connectors
Unofficial Browserless MCP — wraps the Browserless headless-Chromium REST API (browserless.io)
Stealth web browser for agents: search, fetch, click, download and type in persistent MCP sessions.
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables MCP clients to control a real local browser window for web automation tasks such as clicking, typing, scrolling, and taking screenshots.55 npm-
- AlicenseBqualityCmaintenanceEnables MCP clients to drive a real Chromium browser for automation, including navigation, JavaScript execution, CDP commands, network capture, and multi-tab control.722 PyPIGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables agents to control a browser over HTTP MCP to open pages, take screenshots, click coordinates, and record audio/video as WebM.MIT
- AlicenseNot gradedqualityBmaintenanceEnables controlling isolated headless browser sessions through MCP tools for navigation, inspection, JavaScript evaluation, input actions, screenshots, and multi-tab session management.1MIT