Tap
The Tap server is a browser automation platform that lets you run pre-built web automations (taps), forge new ones with AI, interact with web pages, and monitor changes — all through an MCP-compatible interface.
Run & Manage Taps
tap_list— List available taps (start here)tap_run— Execute pre-built taps deterministically at zero AI runtime costtap_watch— Monitor a tap for changes over time (price tracking, new listings, etc.)tap_doctor— Health-check taps, get root-cause diagnostics, and auto-heal broken onestap_logs— View execution historytap_reload— Push updated taps to connected runtimes without restarting
Forge New Automations
forge_inspect— Analyze a page to detect frameworks, APIs, and generate extraction strategiesforge_verify— Test extraction logic live before savingforge_save— Compile and save a.tap.jsprogram to disk; runs forever at $0 after saving
Browser Interaction
tap_nav— Navigate to a URLtap_click— Click elements by text or CSS selectortap_type— Type into inputs (supports standard, contentEditable, CodeMirror, Draft.js, ProseMirror)tap_eval— Execute arbitrary JavaScripttap_find— Find elements by visible text; returns position, selector, bounding boxtap_pressKey— Simulate key presses with optional modifierstap_upload— Upload files to file inputstap_screenshot— Capture the page as JPEG or PNGtap_cookies— Retrieve cookies for the current sitetap_wait— Pause execution for a specified duration
Page Inspection
inspect_page— Get URL, title, and meta tagsinspect_dom— Get DOM structure (optionally scoped to a selector)inspect_a11y— Get the accessibility treeinspect_element— Inspect a specific element by selectorinspect_networkStart/inspect_networkDump— Capture and dump network requests/responses including API bodiesinspect_download— Download and parse content from a URL
Tab & Network Management
tab_list— List all open browser tabsintercept_on/intercept_off— Enable or disable request interception with URL patterns
Allows searching and retrieving metadata for scientific papers from arXiv.
Enables retrieval of trending topics and hot searches from Baidu.
Allows interaction with Bilibili to access trending videos, search content, and retrieve video details and comments.
Provides access to trending content and posts on the Bluesky social network.
Enables fetching of top stories and popular technical posts from the dev.to community.
Allows access to trending content and hot topics on Douban.
Provides tools to track trending repositories and interact with GitHub content.
Enables access to trending search data via Google Trends.
Allows retrieval of popular and trending technical articles from Juejin.
Provides tools to browse hot stories and community discussions on Lobste.rs.
Enables searching for articles and fetching trending stories from Medium.
Allows access to ranking data and popular illustrations on Pixiv.
Provides tools to discover hot products and trending launches on Product Hunt.
Enables retrieval of information about top and popular Python packages on PyPI.
Allows searching content, fetching hot posts, and submitting comments on Reddit.
Provides access to hot and trending questions within the Stack Overflow community.
Enables tracking of top-selling games and trending content on the Steam store.
Allows for the programmatic publishing of articles via Telegra.ph.
Provides tools to browse hot topics and community discussions on the V2EX platform.
Enables searching for articles and accessing detailed content from the WeChat platform.
Allows retrieval of most-read articles and trending content from Wikipedia.
Provides comprehensive tools to browse hot notes, search content, view post details, and publish new notes.
Enables access to trending videos and content on YouTube.
Allows for searching, fetching hot topics, and viewing detailed question and comment data on Zhihu.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Your agent's closed-loop action layer for the browser — the login-gated, exception-heavy, compliance-critical last 20% that clean APIs and cloud agents can't reach. Driven in your own Chrome, captured once, replayed forever at zero LLM tokens.
As APIs get walled off and metered, the work that survives lives behind logins, OTP walls, and human-gesture gates — the exceptions, approvals, and compliance steps a cloud agent architecturally can't touch. Taprun is the action layer for exactly that: your agent drives your real, already-logged-in Chrome, closes the loop (act → verify the effect → re-run on drift), and hands you a deterministic replay you own.
Every other browser agent re-runs a live LLM — and re-burns tokens — on every execution. Taprun's AI agent inspects the page once and emits a deterministic .flow.json program; every replay after that is pure data dispatch — same result every call, $0 in tokens, no agent in the loop. It runs in your real Chrome, so cookies and login sessions stay on your machine by architecture. tap verify catches breakage before your data goes stale.
Works with Claude Code, CodeBuddy, Cursor, Cline, Windsurf, and any MCP host — install straight from the chat window. Forge a tap from any URL on demand — no catalog needed.
Capture: AI inspects the site → compiles a .flow.json program (one-time cost)
Run: The program executes instantly, same result every time ($0, zero AI)
Verify: tap verify checks the snapshot equivalence predicate (catches drift)
Repair: re-run capture against the same site/name; the next (only when needed)
verify rebaselines after human reviewHow Taprun Compares
Taprun | AI Browser Agents | Traditional Scrapers | |
AI cost per run | $0 (compile once) | Tokens every run | Free |
Accuracy | Deterministic | Varies per run | Deterministic |
Silent failure detection | Per-tap CEL | None | None |
Breakage diagnostics |
| None | Manual spot checks |
Detection risk | Low (real browser sessions) | High | High |
Runtimes | 2 (Chrome extension + Playwright) | 1 | 1 |
Code inspectable | .flow.json — bare JSON, 18-op closed vocabulary, git diff | Black box / ephemeral | Fragile scripts |
MCP native | Yes (authoring layer only — execution is zero tokens) | No | No |
Related MCP server: Puppeteer MCP Server
Get Started
1. Attach to your agent — from the chat window
Claude Code / CodeBuddy — paste two lines into the chat, nothing else:
/plugin marketplace add LeonTing1010/taprun
/plugin install tap@taprunThat installs the Taprun MCP server plus the skills that teach your agent when to use it and the hook that routes walled fetches to Taprun — no terminal, no config file. (CodeBuddy wires plugin MCP servers at startup only, so fully restart it once after installing; Claude Code picks them up with /reload-plugins.)
Any other MCP host (Cursor · VS Code · Claude Desktop) — one command writes the config for you:
npx -y @taprun/cli embed cursor # or: vscode | claude-desktop | claude-code | codebuddy | qwenThe binary self-copies to ~/.tap/bin and your agent's MCP config is written. Re-check anytime with tap embed --verify.
Using a coding agent that isn't in that list?
tap embedtargets are data, not code: drop a row into~/.tap/embed-targets.jsonand the new agent works immediately — no engine release. Each row names one of four install kinds (cc-pluginfor Claude-Code-plugin hosts,cli-mcp-addfor CLIs with a<cli> mcp add,ide-deeplink,desktop-bundle), e.g.[{"id":"kode","kind":"cc-plugin","display":"Kode CLI","tier":1,"cli":"kode"}]. Same doctrine as the rest of Taprun — the engine stays closed and mechanical; you extend it in local data.
Now pick your runtime — the extension is only needed to reuse your live logged-in Chrome:
Public pages / open APIs / CI — nothing more to install. The MCP server runs over
npx; you're done. Append--no-extensionfor a fully in-chat Playwright runtime with its own isolated profile (no browser gesture, no click).Logged-in sites (your bank / internal dashboard / Xiaohongshu / Zhihu) — just tell your agent "set up tap for logged-in sites" right in the chat. The tap-setup skill drives the whole bridge from the chat: it materializes the stable binary (from the engine
npxalready downloaded — no second download) and registers the native-messaging manifest, then opens the extension page. The single Add to Chrome click is the only step that isn't a chat action — it is the trust gate that lets Taprun reuse your existing login, and the in-flight call resumes automatically once it lands.Claude Desktop: download
tap.mcpband double-click.
brew install LeonTing1010/tap/taprun # Homebrew (macOS / Linux)
curl -fsSL https://taprun.dev/install.sh | sh # permanent binary
npx -y @taprun/cli --version # zero-install (any Node host)Manual MCP config, if you'd rather write it yourself:
{ "mcpServers": { "tap": { "command": "npx", "args": ["-y", "@taprun/cli", "mcp", "stdio"] } } }Platform | Download |
macOS (Apple Silicon) | |
macOS (Intel) | |
Linux | |
Windows |
2. Prove it works (~2 minutes, no login)
Run the first entry of the claims ledger — the exact verification its nightly CI runs:
mkdir -p ~/.tap/flows/github
curl -fsSL https://raw.githubusercontent.com/LeonTing1010/tap-skills/main/claims/2026-07-11-github-trending-has-no-api/plan.json \
-o ~/.tap/flows/github/trending-no-api.flow.json
tap github/trending-no-api"state": "committed" plus today's trending repos at zero tokens = your install works and the claim holds.
3. Forge your own
tap capture https://news.ycombinator.com hn/front --intent "front-page stories with points"
tap hn/front # replay forever, $0Or just ask your AI agent:
You: What's trending on GitHub today?
Agent: Here are today's top repos — React compiler hit 734 stars...
You: Capture a tap for Douban top 250 movies
Agent: Done. Run `tap douban/top250` anytime — $0 per run.Optional: Drive the binary from your own code (TypeScript / Python)
Skip MCP — call the tap binary from your own loop:
tap capture <url> hackernews/top --intent "front-page top stories"
tap hackernews/top --args '{}' # JSON-on-stdout, exit 0 on success
tap verify hackernews/top # 3-arm verdict (live / drifted / unreachable)The CLI emits ToolResult<T> envelopes as JSON — same shape the MCP surface returns — so any language with a subprocess library can drive it. See tap --help for the full verb list.
Have an existing Playwright / Puppeteer / Stagehand script?
Don't rewrite. Convert with one of the open-source adapters — drop your existing source in, get a Taprun-compatible .flow.json plan out:
# Existing Playwright script (47M weekly npm downloads — most likely the one you have)
npm install @taprun/from-playwright @taprun/spec
node -e "import('@taprun/from-playwright').then(m => console.log(m.playwrightToTap(require('fs').readFileSync('tests/login.spec.ts','utf8'), {site:'example', name:'login'})))"
# Or scaffold a new starter from scratch
npx create-tap-script github/trending https://github.com/trendingAdapter | Source format | Coverage |
| 8 page.* APIs (goto/click/fill/type/press/waitForSelector/waitForTimeout/screenshot) | |
| 7 page.* APIs + page.keyboard.press | |
| Hybrid: deterministic page.* mapped to plan ops; NL | |
(none — scaffolder) | Generates a starter |
The format itself is documented at @taprun/spec — the public protocol surface package: TypeScript types for the v2 Plan (18-op closed union + discriminated read/write Plan union) + JSON Schema 2020-12 with $id resolvable at taprun.dev/spec/plan-v1/schema.json, bidirectionally drift-guarded against the TS types. Third-party tooling (IDE $schema autocomplete, ajv-equivalent validators in Python/Ruby/Go, governance layers, alternative runtimes, MCP hosts with plan-aware permission scoping) builds against this package without depending on the proprietary Taprun engine. Plan-v1 reference: taprun.dev/spec/plan-v1. Source for all five packages: packages/ (see packages/README.md for the workspace overview).
What Can You Do?
Read — Extract data from any website
tap reddit/hot # Reddit front page
tap bilibili/trending # Bilibili trending
tap arxiv/search --keyword "LLM" # arXiv papersWrite — Operate any website
tap xiaohongshu/publish --title "My Note" --images photo.jpg
tap zhihu/publish --title "My Article" --content "..."Watch — Monitor changes
tap verify github/trending # spot drift; schedule via cron / launchdCompose — Chain like Unix pipes
tap github/trending | tap filter --field stars --gt 500 | tap tableForge — Create new automations with AI
tap capture https://news.ycombinator.com hackernews/hot --intent "top stories" # API detected — compiled without AI
tap capture https://example.com mysite/home --intent "..." # BYOK Claude / GPT for the long tailBring your own model — works with Claude, OpenAI, DeepSeek, or any OpenAI-compatible endpoint including local Ollama / LM Studio for fully offline forge:
tap config set ai.baseUrl http://localhost:11434/v1
tap config set ai.key ollama
tap config set ai.model llama3.1
tap capture https://arxiv.org/list/cs.AI/recent arxiv/recent --intent "recent papers" # 0 bytes leave your machineHow It Works
┌─ Chrome extension (your real browser sessions)
You → AI → Taprun ──────┤
capture └─ Playwright (headless, server, CI/CD)You describe what you want (URL × natural-language intent)
AI compiles it into a
.flow.jsonprogram — bare JSON, 18-op closed vocabulary, version-controlledTaprun runs the program on either runtime — forever, at $0
Every successful compilation makes the next one faster. Need a tap for a new site? Your agent forges one on demand with capture — no catalog required.
Verified Claims
tap-skills is no longer a skills catalog — it's a claims ledger: dated, falsifiable claims about the live web, each vendoring its own deterministic plan, re-verified nightly by CI at zero LLM tokens. A claim that drifts flips to 🟡 publicly, the same night.
Verify the first claim yourself (~2 minutes, no login, no browser):
mkdir -p ~/.tap/flows/github
curl -fsSL https://raw.githubusercontent.com/LeonTing1010/tap-skills/main/claims/2026-07-11-github-trending-has-no-api/plan.json \
-o ~/.tap/flows/github/trending-no-api.flow.json
npx -y @taprun/cli github/trending-no-apiYou get the exact verification the nightly CI gets — deterministic replay, same result. The 140-skill v1 catalog is preserved untouched on the v1-archive branch; pre-built catalogs only rot, so plans are forged on demand with capture instead.
tap verify <site>/<name> # Snapshot equivalence — catches silent failures before your data goes stale
tap list # See everything available
tap show <site>/<name> # Print the saved tap's plan as JSONLocal-first by architecture
Zero-token replay is the headline; local-first is the guarantee underneath it. Taprun runs in your browser — the Chrome extension reuses your live login sessions, so cookies, auth tokens, and credentials never leave your machine. A structural choice, not a marketing claim:
Concern | Cloud-first browser SDKs | Taprun (local-first) |
Where do logged-in cookies live? | On the cloud vendor's servers | Only in your local browser |
What does the AI see? | The full session + your data | Only the page DOM during forge time |
Compliance with | Vendor signs ToS for you | Your account, your terms |
Internal / intranet sites | Need VPN tunneling | Just open the page |
Decommission risk | Vendor goes down → your scrapers stop | Local code keeps running |
Layer | Protection |
Sandbox | Programs run with zero permissions — no file, network, or system access |
Static Analysis | CI blocks dangerous patterns before they reach users |
Local-only | Your data, sessions, and API keys never leave your machine — architecturally |
See SECURITY.md for the full threat model.
Contributing
The easiest way to contribute: forge a new tap. One .flow.json file is all it takes.
See CONTRIBUTING.md for details.
Roadmap
Community skills catalog — retired 2026-07 in favor of the claims ledger (v1 catalog archived)
2 runtimes — Chrome extension + Playwright (headless / CI)
Unix pipes —
tap A | tap BWatch mode — monitor changes over time
Verify —
tap verifysnapshot-equivalence check with a 4-arm drift verdict (equivalent / drifted / first_snapshot / unreachable)Single-command MCP server —
tap mcp stdio(ortap mcp http) for any MCP hostAndroid runtime
iOS runtime
Concurrency control — deterministic coordination for M agents operating shared accounts in parallel
Support
GitHub Discussions — Q&A, ideas, show & tell
support@taprun.dev — licensing, private feedback, consulting
Issues — bug reports
Privacy
Taprun is local-first by architecture. It drives your own browser on your own machine — credentials, cookies, and page data never leave it. The engine ships no telemetry and makes no outbound network calls except the ones your own saved taps explicitly direct (op:fetch). Saved taps, secrets, and traces live under ~/.tap/ on your machine only.
Full policy: taprun.dev/privacy.
License
Chrome Extension & docs: MIT. Claims ledger: MIT.
Star History
Available Tools
11 toolsforge_draftAInspect
Load a tap into memory and optionally verify it live. Accepts a structured plan (TapAnnotation — preferred; verify runs it via the plan runtime) or legacy code (.tap.js source). When url is provided, auto-runs verification and returns {score, rows}. Without url, just stashes the draft.
Inputs: url, code, path, plan, +1 more.
forge_inspectARead-onlyInspect
Analyze a page for tap forging: detects framework, SSR state, APIs, and generates extraction strategies. Also use this to re-forge a broken tap — inspect the page again to find what changed. Pass probe_writes:true to discover write actions without triggering them (zero side effects).
AUTHORING PRINCIPLE: Prefer API > SSR > DOM. handle.fetch (cookie-aware) and handle.ssrState beat handle.eval(querySelectorAll); handle.find / handle.copyAll beat hand-rolled selectors. Read existing_taps first — if one already covers part of the need, compose with it inside handle.pipe rather than re-extracting.
Inputs: url, detail, probe_writes.
forge_saveADestructiveInspect
Save the tap to disk as .tap.json and auto-commit to git. Accepts either a structured plan (W3C Annotation wrapping an ExecutionPlan body — preferred) or code (legacy .tap.js source, migrated to a plan on write). Falls back to code from the active forge.draft session when neither is passed. After saving, tap.run can execute it forever with zero AI.
Optional verify_examples runs the just-saved tap against the supplied examples and asserts row-shape contracts (min_rows, non_empty, max_elapsed_ms). When all examples pass, the response includes doctor (verdict from running tap.doctor on the saved tap). When any example fails, the response includes regenerated_inspect — a fresh forge.inspect on the same URL — so the agent can re-forge in one round-trip instead of three. When omitted, behavior is unchanged and the response carries doctor: "indeterminate".
Inputs: name (required), site (required), code, plan, +1 more.
inspectARead-onlyInspect
Inspect the current page. Use target to choose what to inspect: page (url/title/meta), dom (HTML structure), a11y (accessibility tree), element (single element detail, requires selector), network (captured traffic — auto-starts capture on first call, dumps on subsequent). Default: page.
Inputs: bodies, target, selector, url_filter.
tap_doctorARead-onlyInspect
Health check for taps. Runs each tap's examples against its health contract. Returns {ok, annotations[], issues[], suggestions[]}. Each annotation is a W3C Web Annotation (motivation:'assessing') with body.tap:verdict in {healthy, broken, stale, layer-mismatch}. Use when tap.run returns empty/error rows, or after forge.save to validate. ALWAYS specify site+name — unscoped checks scan all user taps and are expensive. PIPE TAPS: annotations include recursive sub-tap diagnosis via body.children[]. Use tap.explain for static analysis without running.
Inputs: name, site, timeout.
tap_envARead-onlyIdempotentInspect
Check tap runtime environment: binary version, TAP_HOME directory, installed skills count, Playwright availability, daemon status, and OS info. Zero side effects — no browser needed. Use for initial troubleshooting or CI health gates.
Inputs: no named parameters.
tap_expand_toolsAInspect
Expand this session's MCP tool set. Call when the default Layer-1 set (run/list/doctor/fix/forge.*/inspect) is insufficient — e.g. need manual browser actions (click/type/fill/scroll), write-tap operations, or diagnostic probes that aren't exposed yet. Levels: 2 = creative (forge supplements + diagnostics), 3 = manual (raw browser control: tap.click, tap.type, tap.eval, tap.find, tap.upload, tap.nav, tap.wait, tap.cookies, tap.pressKey). After calling, the server sends notifications/tools/list_changed; clients that honor it will re-query tools/list automatically. Higher-level calls subsume lower ones — calling with level:3 exposes both Layer 2 and Layer 3.
Inputs: level (required).
tap_fixARead-onlyInspect
Diagnose and repair a broken tap. Runs tap.doctor first, then collects page-level diagnostics (current DOM vs expected selectors, auth wall detection, redirect analysis). Returns the same shape as tap.doctor plus repair-specific fields: {diagnostics:{currentSnapshot, expectedSelectors, authWall, suggestions[]}, patches[]}. Free tier gets diagnostics only; Pro tier gets AI-generated fix proposals. Use when tap.doctor returns verdict=broken.
Inputs: name (required), site (required), timeout.
tap_listARead-onlyIdempotentInspect
Discover available taps. Default (no args) returns a compact site-grouped summary for orientation. Pass {query:'...'} for substring search across site/name/description (ranked by relevance). Pass {site} for full schema (columns, args) of one site; {site, name} for a single tap. If a matching tap exists, use tap.run — it executes with zero AI, faster and more stable than manual tap operations. NEVER bypass a tap by using manual tap.* calls to replicate what a tap already does.
Inputs: name, site, query.
tap_runAInspect
Run a pre-built tap. Preferred over tap.* tools — deterministic, zero AI at runtime. Returns {columns, rows, count, timing, cache_hit}. Read-intent taps are memoized for 5 minutes per process; identical calls return cached data with cache_hit:true. Pass {fresh:true} to bypass cache. Write-intent taps are never cached. If rows contain login/error page content or are empty on a site that requires login → call tap.runtime(runtime:'chrome') first, then retry. If rows is empty on a public site, use tap.doctor(site, name) for structured diagnosis. On transient failure (timeout, connection), RETRY tap.run — do not fall back to manual tap.* operations.
Inputs: name (required), site (required), args, fresh, +1 more.
tap_runtimeAIdempotentInspect
Switch browser runtime mid-session. Default is headless (no login). Use 'chrome' when you need the user's real browser with login sessions (Xiaohongshu, Zhihu, etc.) or for write operations (publish, comment). Use 'headless' to switch back. (Unrelated to tap mcp connect, which registers the Tap MCP server with an AI host.)
Inputs: runtime (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Tools have mostly distinct purposes, but forge_inspect and inspect both deal with page inspection, and tap_doctor/tap_fix overlap in diagnosis/repair. Descriptions help disambiguate, but some overlap exists.
Naming follows consistent verb_noun pattern with 'forge_' and 'tap_' prefixes. 'inspect' stands alone without prefix, and 'tap_expand_tools' is slightly wordy but still consistent with the prefix pattern.
11 tools is well-scoped for the tap automation domain, covering forging, running, diagnosing, fixing, inspecting, and environment checks without being overwhelming or sparse.
Covers the core lifecycle: draft, save, run, list, inspect, diagnose, fix, and runtime switching. Missing explicit delete or view detailed tap schema, but most critical operations are present.
Maintenance
Related MCP Connectors
Pre-action attestation perimeter for AI agents — 8 primitives, signed C18 receipt per call.
The cloud for agents. Tools for AI agents to register, build, and deploy other agents. Zero human required.
AI agent infrastructure for discovery, authorization, execution, identity, and signed receipts.
Context and control for any AI. Agent identity, scoped access, and proof across tools.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables automation of browser tasks using Playwright by interacting via Claude Desktop for executing user-defined prompts and operations.1227 npm12MIT
- AlicenseAqualityDmaintenanceEnables browser automation with Puppeteer, supporting navigation, form interactions, and connection to active Chrome instances for comprehensive web page interaction.82,684 npm489MIT
- AlicenseAqualityBmaintenanceA Model Context Protocol server that provides real-time web search capabilities to AI assistants through pluggable search providers, currently integrated with the Brave Search API.526 npm16MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables web scraping, crawling, and content extraction capabilities through integration with Firecrawl.8201,139 npm2MIT