@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ツールとしてラップします:
ツール | 目的 |
| 新しいプルーフ・オブ・ワークのパズルを要求します。 |
| 解いたナンスを送信します。5分間有効なHMAC署名付きアクセストークンを返します。 |
| サーバーの健全性、累積統計、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.jsstderrに 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.jsserverInfo: { 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 toolschallengeA
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
Scored across 3 tools
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.
All tool names are single-word imperative verbs (challenge, status, verify), following a consistent naming pattern.
Three tools are appropriate for a captcha service, covering the core workflow (challenge, verify) and a status check. Not excessive or insufficient.
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
Related MCP Connectors
Pay-per-action access to APIs and MCP tools over Lightning L402 and Base USDC x402.
Monetize any MCP server: x402 paywall, pay-per-call billing in USDC on Base, agent marketplace.
Remote MCP server exposing 330 production AI-agent services for web/data processing, validation, AI utilities, blockchain/crypto utilities, and x402 pay-per-use access.
Unauthenticated MCP server & keyless /v1/chat/completions funded by 1-step web-search bounties.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server that enables AI agents to make autonomous Bitcoin Lightning Network payments using the L402 protocol. Agents can pay for API access, purchase resources, and complete transactions without human intervention — invoice comes in, sats go out, done.179MIT
- AlicenseBqualityDmaintenanceMCP server offering 26 Lightning-paid tools for Bitcoin mempool intelligence and sovereign on-prem AI inference, with no third-party APIs and pay-per-call in sats.2611 npm1MIT
- AlicenseAqualityBmaintenanceAn MCP server that enables AI agents to access paid AI inference and web tools via HTTP 402 micropayments in USDC on Base, using the agent's wallet as identity.3698 npmMIT
- AlicenseAqualityDmaintenanceMCP server that gives AI agents Lightning payments, L402 API access, trust verification, and service discovery.1113 npmMIT