Skip to main content
Glama
@powforge/captcha-mcp

@powforge/captcha-mcp

@powforge/captcha-mcp

계정 없이 AI 에이전트에게 호출당 비용을 청구하세요. PoW 해결 = 무료 티어. 라이트닝 결제 = 유료 티어.

OpenAI의 Sora API는 호출당 비용을 청구할 수 없습니다. Anthropic의 결제 시스템은 도구로 전달되지 않습니다. 오늘 MCP 서버를 배포했는데 자율 에이전트가 이를 발견하면, 비용은 고스란히 당신의 몫이 됩니다.

이것이 바로 그 게이트웨이입니다. stdio를 통한 세 가지 도구. 표준 라이브러리만 사용합니다.

퀵스타트

npx -y @powforge/captcha-mcp

이게 전부입니다. 설치도, 설정도, API 키도 필요 없습니다. 서버가 stdio에서 시작되어 MCP 클라이언트를 기다립니다.

Claude Code, Cursor 또는 MCP 호환 호스트에 연결하려면 설정에 다음을 추가하세요:

{
  "mcpServers": {
    "powforge-captcha": {
      "command": "npx",
      "args": ["-y", "@powforge/captcha-mcp"]
    }
  }
}

또는 npx @powforge/captcha-mcp --install을 실행하여 설정 블록을 출력하세요.

Related MCP server: @bitcoinbenji/mcp

기능

PowForge pow-captcha 서비스(captcha.powforge.dev)를 세 가지 MCP 도구로 래핑합니다:

도구

목적

challenge

새로운 작업 증명 퍼즐을 요청합니다. {id, salt, difficulty, signature}를 반환합니다.

verify

해결된 nonce를 제출합니다. 5분간 유효한 HMAC 서명 액세스 토큰을 반환합니다.

status

서버 상태, 평생 통계, L402 엔드포인트 메타데이터를 제공합니다.

무료 티어는 에이전트의 CPU 시간 약 5~10초를 소모합니다(SHA-256, 기본값 14 선행 0 비트). 유료 티어는 L402(WWW-Authenticate 내 RFC 7235 + bolt11 인보이스)를 통해 라이트닝으로 3 sats를 지불합니다.

OAuth, API 키, Stripe 대신 이 방식을 사용하는 이유

방식

호출당 비용

계정 필요

에이전트 친화적

API 키

$0

예

아니오

OAuth

$0

예

아니오

Stripe 미터링

높은 오버헤드

예

아니오

PoW + L402

초 단위 시간 또는 3 sats

아니오

예

에이전트에게는 이메일 주소가 없습니다. 확인 링크를 클릭하지도 않습니다. 신용카드를 입력하지도 않습니다. PoW + 라이트닝은 완전히 자율적인 호출자를 위한 유일한 인증 기본 요소입니다.

설정

CAPTCHA_URL을 설정하여 다른 캡차 백엔드를 가리키도록 할 수 있습니다. 기본값은 http://localhost:3077이며, 개발을 위해 전체 스택을 로컬에서 실행할 수 있습니다. 프로덕션 배포 시에는 https://captcha.powforge.dev를 가리키도록 하세요.

CAPTCHA_URL=https://captcha.powforge.dev npx @powforge/captcha-mcp

로컬 개발

캡차 위젯 저장소를 복제하거나 공개 서비스를 실행하세요. MCP 서버는 status에 나열된 캡차 엔드포인트에 대한 HTTP 액세스만 있으면 됩니다.

git clone https://github.com/zekebuilds-lab/captcha-mcp
cd captcha-mcp
node src/server.js

stderr에 ready를 출력하고 stdin에서 JSON-RPC를 기다립니다.

프로토콜을 수동으로 스모크 테스트하세요:

echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1"}}}' | node src/server.js

serverInfo: { name: "@powforge/captcha-mcp", version: "0.1.0" }가 포함된 JSON 응답이 표시되어야 합니다.

자체 백엔드에서 토큰 검증

에이전트가 귀하의 서비스에 토큰을 제출할 때, 에이전트를 신뢰하지 않고도 다음과 같이 검증할 수 있습니다:

curl -X POST https://captcha.powforge.dev/api/token/verify \
  -H "Content-Type: application/json" \
  -d '{"token":"<token-from-verify-tool>"}'

{valid: true, method, issued_at, expires_at} 또는 {valid: false, reason}을 반환합니다.

관련 패키지

  • @powforge/captcha — 동일 서비스를 위한 브라우저 위젯.

  • @powforge/mcp-l402-gate — L402 + ID 깊이 점수를 사용하여 모든 MCP 서버를 제한하는 Express 미들웨어.

  • @powforge/mcp-identity — 에이전트 평판 오라클. 첫 호출 시 남용 방지를 위해 이 게이트와 함께 사용하세요.

라이선스

MIT

Available Tools

3 tools
challengeA

Request a fresh PoW challenge from the PowForge captcha service. Returns {id, salt, difficulty, signature, instructions}. The agent must find a nonce such that SHA-256(salt + nonce) has at least difficulty leading zero bits, then call the verify tool. Free tier — no payment required.

Inputs: no named parameters.

statusA

Return PowForge captcha server health, lifetime stats (pow_solves, ln_skips, challenges_issued), and L402 endpoint metadata (scope, price_sats, paid endpoint URL). Use this to discover the Lightning skip price before paying, or as a liveness check.

Inputs: no named parameters.

verifyA

Verify a PoW solution. Input: {salt, nonce, id, signature, algo?, difficulty?} from a prior challenge call plus the nonce the agent computed. Returns a 5-minute HMAC-signed token on success, or {valid: false, reason} on failure. Tokens can be re-verified server-side via POST /api/token/verify.

Inputs: salt (required), nonce (required), id (required), signature (required), +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct purpose: challenge initiates a PoW challenge, status checks server health and metadata, and verify submits the solution. No overlap in functionality.

    Naming Consistency5/5

    All tool names are single-word imperative verbs (challenge, status, verify), following a consistent naming pattern.

    Tool Count5/5

    Three tools are appropriate for a captcha service, covering the core workflow (challenge, verify) and a status check. Not excessive or insufficient.

    Completeness4/5

    The core PoW challenge-verify cycle is complete. However, the status tool mentions a Lightning skip option, but no tool to execute it, which is a minor gap.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers