Skip to main content
Glama
@aifirelab/mcp-pinchtab

@aifirelab/mcp-pinchtab

Official
by Ai-firelab

@aifirelab/mcp-pinchtab

MCP server for Pinchtab -- browser automation for AI agents.

npm version License: MIT

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

PINCHTAB_URL

http://localhost:9867

Override Pinchtab server URL

PINCHTAB_BIN

pinchtab (from PATH)

Override pinchtab binary path

Tools

Tool

Description

Key Parameters

navigate

Navigate the browser to a URL

url, newTab?

snapshot

Get accessibility tree snapshot of the page (token-efficient)

interactive?, compact?

click

Click an element by ref

ref, human?

type_text

Type text character by character

ref, text, human?

fill

Instantly fill a form field (clears existing value)

ref, value

press

Press a keyboard key

key, ref?

select

Select an option from a dropdown

ref, value

scroll

Scroll the page or an element

direction, amount?, ref?

hover

Hover over an element

ref

get_text

Extract text content of the current page

--

screenshot

Take a screenshot (base64 JPEG)

--

evaluate

Execute JavaScript in the browser

expression

list_tabs

List all open browser tabs

--

close_tab

Close the current or a specific tab

tabId?

get_cookies

Get all cookies for the current page

--

health

Check if Pinchtab server is running

--

License

MIT

Available Tools

17 tools
clickA

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

    B3.4/5.0

    Scored across 17 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to control a real local browser window for web automation tasks such as clicking, typing, scrolling, and taking screenshots.
      55 npm
      -
    • A
      license
      B
      quality
      C
      maintenance
      Enables MCP clients to drive a real Chromium browser for automation, including navigation, JavaScript execution, CDP commands, network capture, and multi-tab control.
      7
      22 PyPI
      GPL 3.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables controlling isolated headless browser sessions through MCP tools for navigation, inspection, JavaScript evaluation, input actions, screenshots, and multi-tab session management.
      1
      MIT