NA

n1byn1kt/apitap

Browser automation

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

131 stars 9 forks 품질 87 트렌드 30Apache-2.0

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 지식을 구축하는 세 가지 방법을 가지고 있습니다:

  1. 캡처 (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:

  1. 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 attach to capture from your already-running Chrome.
  2. Discover (automatic) — ApiTap auto-detects frameworks (WordPress, Next.js, Shopify) and probes for OpenAPI specs at common paths. Works without a browser.
  3. 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
GitHub에서 전체 README 보기

설치

npx apitap mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "apitap": { "command": "apitap", "args": ["mcp"] } } }