Skip to main content
Glama
@powforge/captcha-mcp

@powforge/captcha-mcp

@powforge/captcha-mcp

アカウント不要で、AIエージェントの呼び出しごとに課金します。 PoW(プルーフ・オブ・ワーク)を解けば無料枠、Lightning決済を行えば有料枠となります。

OpenAIのSora APIでは呼び出しごとの課金はできません。Anthropicの請求はツールに引き継がれません。もし今日MCPサーバーを公開し、自律型エージェントが見つけた場合、あなたが請求を負担することになります。

これがそのゲートウェイです。stdio経由の3つのツール。標準ライブラリのみを使用。

クイックスタート

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) を3つのMCPツールとしてラップします:

ツール

目的

challenge

新しいプルーフ・オブ・ワークのパズルを要求します。{id, salt, difficulty, signature} を返します。

verify

解いたナンスを送信します。5分間有効なHMAC署名付きアクセストークンを返します。

status

サーバーの健全性、累積統計、L402エンドポイントのメタデータを返します。

無料枠では、エージェントに約5〜10秒のCPU時間(SHA-256、デフォルトで先頭14ビットがゼロ)のコストがかかります。有料枠では、L402(RFC 7235 + WWW-Authenticate 内のbolt11インボイス)を介してLightningで3サトシのコストがかかります。

なぜOAuth、APIキー、Stripeではないのか

アプローチ

呼び出しコスト

アカウント必須

エージェント向け

APIキー

$0

はい

いいえ

OAuth

$0

はい

いいえ

Stripe課金

高いオーバーヘッド

はい

いいえ

PoW + L402

数秒または3サトシ

いいえ

はい

エージェントにはメールアドレスがありません。確認リンクをクリックすることも、クレジットカードを入力することもできません。PoW + Lightningは、完全に自律的な呼び出し元に対して機能する唯一の認証プリミティブです。

設定

CAPTCHA_URL を設定して、別のキャプチャバックエンドを指定できます。デフォルトは http://localhost:3077 で、開発用にフルスタックをローカルで実行できます。本番環境では https://captcha.powforge.dev を指定してください。

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

ローカル開発

captcha widget repo をクローンするか、パブリックサービスを実行してください。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 + Depth-of-Identityスコアリングを使用して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