Tap
Taprun — это MCP-сервер для автоматизации браузера и веб-скрейпинга для ИИ-агентов. Укажите на любой сайт; ваш агент один раз проанализирует страницу, скомпилирует детерминированную программу и будет воспроизводить её вечно — ноль ИИ-токенов при выполнении, один и тот же результат при каждом вызове. Работает с Claude Code, Cursor, Cline, Windsurf и любым MCP-хостом. Запускается в реальном Chrome (с сессиями входа) или headless Playwright. Контракты работоспособности выявляют скрытые сбои. Сравнение структурных состояний точно показывает, что изменилось. tap doctor обнаруживает поломки до того, как ваши данные устареют — а не через три дня.
Forge: AI inspects the site → compiles a .tap.js program (one-time cost)
Run: The program executes instantly, same result every time ($0, zero AI)
Monitor: tap doctor checks health contracts + structural state diffs (catches breakage)
Heal: AI reads diagnostics and patches the program (only when needed)MCP — это уровень создания. tap.run — это уровень выполнения. ИИ участвует только во время создания (один раз). Выполнение — это чистый код, ноль токенов, детерминированный вывод. 140+ готовых навыков для 68+ сайтов — Reddit, GitHub, Hacker News, LinkedIn, Twitter, YouTube, Producthunt и другие — или создайте свой собственный из любого URL. Один бинарный файл, ноль зависимостей.
Варианты использования: автоматизация браузера для ИИ-агентов · запланированный веб-скрейпинг · извлечение структурированных данных · мониторинг контента · автоматизация сайтов с авторизацией · конвейеры данных с нескольких сайтов · мониторинг надежности для долгоживущих агентов.
Начало работы
1. Установка
Без установки через npx (на любой машине с Node):
npx -y @taprun/cli --versionПервый запуск загружает соответствующий бинарный файл платформы (~30 МБ) и кэширует его. Последующие вызовы происходят мгновенно.
Постоянная установка через curl (macOS / Linux):
curl -fsSL https://taprun.dev/install.sh | shПлатформа | Скачать |
macOS (Apple Silicon) | |
macOS (Intel) | |
Linux | |
Windows |
2. Подключение к вашему ИИ-агенту
Работает с Claude Code, Cursor, Windsurf или любым MCP-совместимым агентом — расширение не требуется:
{ "mcpServers": { "tap": { "command": "npx", "args": ["-y", "@taprun/cli", "mcp", "start"] } } }Или автоматически настройте все установленные агенты:
tap mcp connect3. Запуск
tap github/trending # GitHub trending repos
tap hackernews/hot # Hacker News front page
tap weibo/hot # 微博热搜
tap xiaohongshu/search --keyword "AI" # 小红书搜索Или просто спросите своего ИИ-агента:
You: What's trending on GitHub today?
Agent: Here are today's top repos — React compiler hit 734 stars...
You: Forge a tap for Douban top 250 movies
Agent: Done. Run `tap douban/top250` anytime — $0 per run.Опционально: Расширение для Chrome (для сайтов с авторизацией)
Большинство «тапов» работают без входа в систему. Для сайтов, требующих вашу сессию (Xiaohongshu, Zhihu и т.д.), установите расширение для Chrome из интернет-магазина Chrome.
Related MCP server: Puppeteer MCP Server
Что вы можете делать?
Чтение — Извлечение данных с любого веб-сайта
tap reddit/hot # Reddit front page
tap bilibili/trending # Bilibili trending
tap arxiv/search --keyword "LLM" # arXiv papersЗапись — Управление любым веб-сайтом
tap xiaohongshu/publish --title "My Note" --images photo.jpg
tap zhihu/publish --title "My Article" --content "..."Наблюдение — Мониторинг изменений
tap watch github/trending --every 5mКомпоновка — Объединение как в Unix-конвейерах
tap github/trending | tap filter --field stars --gt 500 | tap tableСоздание — Создание новых автоматизаций с помощью ИИ
tap forge "get Hacker News top stories" # BYOK Claude / GPT
tap forge https://news.ycombinator.com # API detected — compiled without AIИспользуйте свою собственную модель — работает с Claude, OpenAI, DeepSeek или любым OpenAI-совместимым эндпоинтом, включая локальные Ollama / LM Studio для полностью автономного создания:
tap config set ai.baseUrl http://localhost:11434/v1
tap config set ai.key ollama
tap config set ai.model llama3.1
tap forge "scrape arxiv recent papers" # 0 bytes leave your machineКак это работает
┌─ Chrome (your real browser sessions)
You → AI → Taprun ──────┤─ Playwright (headless, server, CI/CD)
compile └─ macOS (native desktop apps)Вы описываете, что вам нужно (естественным языком или URL)
ИИ компилирует это в программу
.tap.js— обычный JavaScript, с контролем версийTaprun запускает программу на любой из трех сред выполнения — вечно, за $0
Каждая успешная компиляция делает следующую быстрее. 140+ навыков сообщества означают, что ваш агент уже знает 68+ веб-сайтов.
Навыки сообщества
tap-skills — 140+ навыков, открытый исходный код.
Категория | Примеры |
Тренды | GitHub, Hacker News, Reddit, Product Hunt, Bilibili, Zhihu, Weibo, Xiaohongshu |
Поиск | arXiv, Reddit, X, Zhihu, Weibo, Xiaohongshu, Bilibili, Medium |
Чтение | Темы Zhihu, видео Bilibili, заметки Xiaohongshu, книги WeRead |
Запись | Посты X, заметки Xiaohongshu, статьи Zhihu, Dev.to, LinkedIn |
Мониторинг | Отслеживание цен, биржевые данные, анализ конкурентов |
tap doctor # Health check — catches silent failures before your data goes stale
tap update # Install / update all skills
tap list # See everything availableСравнение Taprun
Taprun | ИИ-браузерные агенты | Традиционные скрейперы | |
Стоимость ИИ за запуск | $0 (компиляция один раз) | Токены при каждом запуске | Бесплатно |
Точность | Детерминированная | Варьируется при каждом запуске | Детерминированная |
Обнаружение скрытых сбоев | Контракты работоспособности + diff состояния | Нет | Нет |
Диагностика поломок |
| Нет | Ручная проверка |
Риск обнаружения | Низкий (реальные сессии браузера) | Высокий | Высокий |
Среды выполнения | 3 (Chrome + Playwright + macOS) | 1 | 1 |
Проверка кода | .tap.js — git diff, отладка, версии | «Черный ящик» / эфемерно | Хрупкие скрипты |
MCP native | Да (только уровень создания — выполнение без токенов) | Нет | Нет |
Безопасность
Уровень | Защита |
Песочница | Программы запускаются с нулевыми правами — нет доступа к файлам, сети или системе |
Статический анализ | CI блокирует опасные паттерны до того, как они попадут к пользователям |
Только локально | Ваши данные, сессии и API-ключи никогда не покидают вашу машину |
Подробности см. в SECURITY.md.
Вклад в проект
Самый простой способ внести вклад: создать новый «тап». Достаточно одного файла .tap.js.
Подробности см. в CONTRIBUTING.md.
Дорожная карта
[x] 140+ навыков сообщества для 68+ сайтов
[x] 3 среды выполнения — Chrome, Playwright, macOS
[x] Unix-конвейеры —
tap A | tap B[x] Режим наблюдения — мониторинг изменений во времени
[x] Doctor — контракты работоспособности, diff отпечатков, автоматическая диагностика сломанных тапов
[x] Настройка одной командой —
tap mcp connectнастраивает все ИИ-агенты[ ] Среда выполнения Android
[ ] Среда выполнения iOS
[ ] Контроль параллелизма — детерминированная координация для M агентов, работающих с общими аккаунтами параллельно
Поддержка
GitHub Discussions — вопросы и ответы, идеи, демонстрации
support@taprun.dev — лицензирование, частные отзывы, консалтинг
Issues — отчеты об ошибках
Лицензия
Расширение для Chrome и документация: MIT. Навыки сообщества: MIT.
История звезд
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.
ERC-8004 agent identity, on-chain subscriptions, reputation, A2A tasks and chat over 53 tools.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables automation of browser tasks using Playwright by interacting via Claude Desktop for executing user-defined prompts and operations.1212MIT
- AlicenseAqualityDmaintenanceEnables browser automation with Puppeteer, supporting navigation, form interactions, and connection to active Chrome instances for comprehensive web page interaction.82,142 npm492MIT
- 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.519 npm17MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables web scraping, crawling, and content extraction capabilities through integration with Firecrawl.82MIT