
n1byn1kt/apitap
Browser automationこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
n1byn1kt/apitapは、https://github.com/n1byn1kt/apitap.からインポートされたMCPサーバー候補です。
概要
n1byn1kt/apitapは、https://github.com/n1byn1kt/apitap.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
CLI、MCPサーバー、npmライブラリで、どんなウェブサイトもAPIに変換します — ドキュメントもSDKもブラウザも使いません。
ApiTapはCLI、MCPサーバー、npmライブラリで、AIエージェント(およびあなた)がブラウザではなくAPIを通じてウェブを閲覧できるようにします。サイトを指向すれば、実際のトラフィックから内部APIを取得し、携帯可能な署名付きskillファイルを生成し、fetch()で直接リクエストを再生します。認証情報はファイル内に存在せず、暗号化されたストレージに保管されリプレイ時に注入されます。リプレイはキャプチャされたルート形状と照合されるため、エージェントはタスク中に失敗する前にドリフトしたエンドポイントを学習します。DOMなし、セレクターなし、不安定な待ち時間なし。トークンコストはブラウザ自動化と比べて20〜100倍下がります。OpenAPI仕様を公開しているサイトは、apitap import(APIs.guruディレクトリ内蔵)を通じてキャプチャを完全にスキップできます。
ウェブは人間の目のために作られました。ApiTapはそれを機械にネイティブ化しています。
スクレイピングも禁止。ブラウザも使えません。APIだけです。
仕組み
ApiTapはAPI知識を構築するために3つの方法を持っています。
- キャプチャ(30秒)— ブラウザを起動し、サイトを訪れ、通常通りブラウジング。ApiTapはCDPを通じてすべてのネットワークトラフィックを傍受し、ノイズをフィルタリングし、スキルファイルを生成します。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
ApiTap
The CLI, MCP server, and npm library that turns any website into an API — no docs, no SDK, no browser.
ApiTap is a CLI, MCP server, and npm library that lets AI agents (and you) browse the web through APIs instead of browsers. Point it at a site: it captures the internal API from real traffic, generates a portable signed skill file, and replays requests directly with fetch(). Credentials never live in the file — they stay in encrypted storage and are injected at replay — and replays are matched against the captured route shapes, so your agent learns an endpoint drifted before it fails mid-task. No DOM, no selectors, no flaky waits. Token costs drop 20-100x compared to browser automation. Sites that publish OpenAPI specs can skip capture entirely via apitap import (APIs.guru directory built in).
The web was built for human eyes; ApiTap makes it native to machines.
# Capture a site's private API once…
apitap capture https://polymarket.com
# …then replay it forever — no browser in this path
apitap replay gamma-api.polymarket.com get-events
# Read page content without a browser
apitap read https://en.wikipedia.org/wiki/Node.js
✓ Wikipedia decoder: ~127 tokens (vs ~4,900 raw HTML)
# Or import published OpenAPI specs directly
apitap import --from apis-guru --search stripe
apitap replay api.stripe.com get-listcharges limit=5
No scraping. No browser. Just the API.

How It Works
ApiTap has three ways to build its API knowledge:
- Capture (30 seconds) — Launch a browser, visit a site, browse normally. ApiTap intercepts all network traffic via CDP, filters noise, and generates a skill file. Or use
apitap attachto capture from your already-running Chrome. - Discover (automatic) — ApiTap auto-detects frameworks (WordPress, Next.js, Shopify) and probes for OpenAPI specs at common paths. Works without a browser.
- Import (instant) — Import OpenAPI/Swagger specs from the APIs.guru directory of 2,500+ public APIs, or from any spec URL/file. Endpoints get a confidence score based on spec quality. No browser needed.
All three paths produce the same artifact: a skill file — a portable JSON map of an API’s endpoints, stored at ~/.apitap/skills/.
Import: OpenAPI spec → Converter → Merge → skill.json (confidence 0.6-0.85)
Capture: Browser → CDP listener → Filter → Skill Generator → skill.json (confidence 1.0)
Attach: Running Chrome → CDP attach → Filter → skill.json (confidence 0.8-1.0)
Replay: Agent → Replay Engine (skill.json) → fetch() → API → JSON response
インストール
npx apitap mcp設定
{
"mcpServers": {
"apitap": {
"command": "apitap",
"args": ["mcp"]
}
}
}