ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

x402 Universal Payer

โดย nirholasรุ่น 1.0.2i★ –iรันบนเครื่อง
ชื่อใน registryio.github.nirholas/x402-bridge

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Pay any x402 endpoint on the open web: auto-paying bridge with Bazaar discovery and spend caps.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ
  • ต้องใส่ค่าเหล่านี้: MCP_BRIDGE_EVM_PRIVATE_KEY, MCP_BRIDGE_SVM_PRIVATE_KEY

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: MCP_BRIDGE_EVM_PRIVATE_KEY, MCP_BRIDGE_SVM_PRIVATE_KEY, MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC, MCP_BRIDGE_MAX_TOTAL_ATOMIC, MCP_BRIDGE_ALLOWED_PAYTO, MCP_BRIDGE_ALLOWED_HOSTS, MCP_BRIDGE_ALLOW_HTTP, MCP_BRIDGE_DISCOVER_LIMIT, MCP_BRIDGE_BAZAAR_URL, MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER, MCP_BRIDGE_MAX_DEPOSIT_ATOMIC, X402_MCP_BRIDGE_CHANNELS_DIR, RPC_URL_8453

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "x402-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/mcp-bridge"
      ],
      "env": {
        "MCP_BRIDGE_EVM_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_SVM_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_MAX_TOTAL_ATOMIC": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_ALLOWED_PAYTO": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_ALLOWED_HOSTS": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_ALLOW_HTTP": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_DISCOVER_LIMIT": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_BAZAAR_URL": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_MAX_DEPOSIT_ATOMIC": "ใส่ค่าของคุณ",
        "X402_MCP_BRIDGE_CHANNELS_DIR": "ใส่ค่าของคุณ",
        "RPC_URL_8453": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add x402-bridge --env MCP_BRIDGE_EVM_PRIVATE_KEY='ใส่ค่าของคุณ' --env MCP_BRIDGE_SVM_PRIVATE_KEY='ใส่ค่าของคุณ' --env MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC='ใส่ค่าของคุณ' --env MCP_BRIDGE_MAX_TOTAL_ATOMIC='ใส่ค่าของคุณ' --env MCP_BRIDGE_ALLOWED_PAYTO='ใส่ค่าของคุณ' --env MCP_BRIDGE_ALLOWED_HOSTS='ใส่ค่าของคุณ' --env MCP_BRIDGE_ALLOW_HTTP='ใส่ค่าของคุณ' --env MCP_BRIDGE_DISCOVER_LIMIT='ใส่ค่าของคุณ' --env MCP_BRIDGE_BAZAAR_URL='ใส่ค่าของคุณ' --env MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER='ใส่ค่าของคุณ' --env MCP_BRIDGE_MAX_DEPOSIT_ATOMIC='ใส่ค่าของคุณ' --env X402_MCP_BRIDGE_CHANNELS_DIR='ใส่ค่าของคุณ' --env RPC_URL_8453='ใส่ค่าของคุณ' -- npx -y @three-ws/mcp-bridge

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "x402-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/mcp-bridge"
      ],
      "env": {
        "MCP_BRIDGE_EVM_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_SVM_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_MAX_TOTAL_ATOMIC": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_ALLOWED_PAYTO": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_ALLOWED_HOSTS": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_ALLOW_HTTP": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_DISCOVER_LIMIT": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_BAZAAR_URL": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_MAX_DEPOSIT_ATOMIC": "ใส่ค่าของคุณ",
        "X402_MCP_BRIDGE_CHANNELS_DIR": "ใส่ค่าของคุณ",
        "RPC_URL_8453": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "x402-bridge": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@three-ws/mcp-bridge"
      ],
      "env": {
        "MCP_BRIDGE_EVM_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_SVM_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_MAX_TOTAL_ATOMIC": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_ALLOWED_PAYTO": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_ALLOWED_HOSTS": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_ALLOW_HTTP": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_DISCOVER_LIMIT": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_BAZAAR_URL": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER": "ใส่ค่าของคุณ",
        "MCP_BRIDGE_MAX_DEPOSIT_ATOMIC": "ใส่ค่าของคุณ",
        "X402_MCP_BRIDGE_CHANNELS_DIR": "ใส่ค่าของคุณ",
        "RPC_URL_8453": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • MCP_BRIDGE_EVM_PRIVATE_KEY ความลับ env
    0x-prefixed 32-byte hex private key that funds USDC payments on EVM chains (Base, Arbitrum, …). At least one of the EVM/SVM keys is required. Treat like cash — use a dedicated low-balance wallet.
  • MCP_BRIDGE_SVM_PRIVATE_KEY ความลับ env
    Solana secret key that funds USDC payments: base58 64-byte secret key (Phantom / solana-keygen format) or a JSON array of 64 integers. At least one of the EVM/SVM keys is required. Treat like cash.
  • MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC env
    Per-call spending cap in atomic units (USDC has 6 decimals). Payments above this abort with a clear reason.
  • MCP_BRIDGE_MAX_TOTAL_ATOMIC env
    Cumulative session spending ceiling in atomic units. Once total spend would exceed it, further payments abort until restart.
  • MCP_BRIDGE_ALLOWED_PAYTO env
    Comma-separated payee allowlist. When set, any payment whose payTo address is not listed is refused.
  • MCP_BRIDGE_ALLOWED_HOSTS env
    Comma-separated hostname allowlist for outbound paid requests. When set, any other host is refused before a request is signed.
  • MCP_BRIDGE_ALLOW_HTTP env
    Set to 1 to allow http:// targets (local development only). https is enforced otherwise.
  • MCP_BRIDGE_DISCOVER_LIMIT env
    Max number of x402 Bazaar resources to register as dynamic tools at startup. Set 0 to disable discovery.
  • MCP_BRIDGE_BAZAAR_URL env
    x402 Bazaar discovery endpoint. Override to point at a self-hosted or alternative bazaar.
  • MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIER env
    How many request-amounts to deposit at once when opening an EVM batch-settlement channel.
  • MCP_BRIDGE_MAX_DEPOSIT_ATOMIC env
    Hard cap in atomic units on a single batch-settlement channel deposit or top-up.
  • X402_MCP_BRIDGE_CHANNELS_DIR env
    Directory for persisted batch-settlement channel state (survives client restarts).
  • RPC_URL_8453 env
    Per-chain RPC override, one variable per chain id (RPC_URL_ , e.g. RPC_URL_8453 for Base). Defaults to viem's public RPC for that chain.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub nirholas ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32466 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 27% ของอีก 32466 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 32466 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

x402 Universal Payer ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: MCP_BRIDGE_EVM_PRIVATE_KEY, MCP_BRIDGE_SVM_PRIVATE_KEY

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.0.2) เข้า registry 3 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, HotCodePush

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวาน
ติดตั้ง

HotCodePush

โดย hotcodepush-team

Manage over-the-air (OTA) updates for React Native, Expo, Capacitor and Cordova apps.

รันบนคลาวด์อัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

@three-ws/mcp-bridge

One MCP server that can pay any x402-paid endpoint on the open web — the universal x402 payer for AI agents.

Quick start · Security · Tools · Environment · three.ws


A Model Context Protocol server that can pay any x402-paid endpoint on the open web. Point your agent at a URL that answers 402 Payment Required; the bridge signs, pays, retries, and hands back the response plus the settlement receipt — EVM exact, EVM batch-settlement, and Solana exact, all behind hard spending caps. It also pre-loads a tool per service discovered on the Coinbase x402 Bazaar, so the entire paid-API economy shows up in your tool list.

Quick start

Claude Code:

claude mcp add x402-bridge -e MCP_BRIDGE_SVM_PRIVATE_KEY=... -- npx -y @three-ws/mcp-bridge

Use -e MCP_BRIDGE_EVM_PRIVATE_KEY=0x... instead (or as well) to pay on Base and other EVM chains. At least one key is required.

Claude Desktop (claude_desktop_config.json) or Cursor (~/.cursor/mcp.json):

{

"mcpServers": { "x402-bridge": { "command": "npx", "args": ["-y", "@three-ws/mcp-bridge"], "env": { "MCP_BRIDGE_EVM_PRIVATE_KEY": "0x…buyer key…", "MCP_BRIDGE_SVM_PRIVATE_KEY": "…base58 64-byte secret key…", "MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC": "100000", "MCP_BRIDGE_DISCOVER_LIMIT": "20" } } } }

Restart the client and ask for something like "pay $0.01 on Base for a weather report" — the model picks a matching Bazaar tool (or call_paid_endpoint), and the bridge auto-pays via x402.

Security and spending controls

This server holds private keys and spends real USDC. Read this section before configuring it.

  • Use a dedicated, low-balance wallet. MCP_BRIDGE_EVM_PRIVATE_KEY / MCP_BRIDGE_SVM_PRIVATE_KEY should never be a main wallet. Fund it with only what you are willing to let an agent spend.
  • Per-call cap. Any payment above MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC (default 100000 = $0.10 USDC) is refused before a payload is signed, with an error naming the network, asset, and cap.
  • Session ceiling. Cumulative spend per process is capped by MCP_BRIDGE_MAX_TOTAL_ATOMIC (default 1000000 = $1.00 USDC). This bounds the damage of a looping or prompt-injected agent: once the ceiling is reached, every further payment aborts until restart. The accumulator reserves atomically, so concurrent calls cannot jointly overshoot it.
  • Payee allowlist. Set MCP_BRIDGE_ALLOWED_PAYTO (comma-separated addresses) to refuse payment to any recipient you have not explicitly trusted.
  • SSRF guard. Every outbound payable URL — whether supplied by the model or by a Bazaar listing — passes one chokepoint that enforces an https-only scheme policy, resolves the hostname, and rejects the request if any resolved address is private, loopback, link-local (including 169.254.169.254 cloud metadata), CGNAT, ULA, or unspecified. Literal-IP hosts are checked directly; redirects are never followed (a public host cannot 3xx the bridge into internal infrastructure). http:// is available only behind the explicit MCP_BRIDGE_ALLOW_HTTP=1 dev opt-in.
  • Host allowlist. Set MCP_BRIDGE_ALLOWED_HOSTS (comma-separated hostnames) for strict mode: only listed hosts can be paid at all.
  • Deposit caps. Batch-settlement channel deposits are bounded by MCP_BRIDGE_MAX_DEPOSIT_ATOMIC (default $5.00) regardless of what a server requests.
  • Honest annotations. Every paying tool is annotated readOnlyHint: false, idempotentHint: false, openWorldHint: true, so MCP hosts apply their strictest confirmation policy. Retrying a paid call is a new charge.

What it exposes

On startup the bridge registers:

ToolWhat it does
call_paid_endpointUniversal fallback: hit any URL, auto-pay if it returns 402. Returns the response + parsed settlement.
list_bazaar_toolsReturns the cached list of Bazaar-discovered tools (name, resource, accepted payment terms). Free.
refresh_bazaarRe-queries the x402 Bazaar and re-registers dynamic tools without restarting. Free.
paid_ …One tool per discovered Bazaar resource (up to MCP_BRIDGE_DISCOVER_LIMIT), with that endpoint's schema.

Tools whose prices all exceed the per-call cap are filtered out at discovery time, so the model never sees a tool it cannot afford.

Tool annotations

Every tool carries MCP ToolAnnotations so hosts can apply the right confirmation policy:

  • call_paid_endpoint and every dynamic paid_* tool: readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true. These spend real USDC — each call settles a payment (capped by MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMIC), and retrying is a new charge. They never delete or overwrite caller state, hence not destructive.
  • list_bazaar_tools: readOnlyHint: true, idempotentHint: true, openWorldHint: false. Pure in-process cache read; free, no network.
  • refresh_bazaar: readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true. Free (no payment), but it mutates the registered tool set from the live Bazaar feed, so repeat calls can differ.

Tool results that are plain objects are returned as both a JSON text block (backward compatible) and structuredContent for typed clients.

Payment schemes

Payment paths registered on the buyer client:

  • eip155:* → BatchSettlementEvmScheme (preferred when the server advertises it; voucher-based, no per-call gas)
  • eip155:* → ExactEvmScheme (used when the server advertises scheme: "exact")
  • solana:* and the x402 v1 Solana networks (solana, solana-devnet, solana-testnet) → ExactSvmScheme / ExactSvmSchemeV1 (USDC SPL transfer co-signed by the advertised fee payer), registered together by registerExactSvmScheme(). v1 is the wire format most of the open x402 bazaar still speaks; the client always prefers v2 when a seller advertises both. The spending-cap hook reads either amount (v2) or maxAmountRequired (v1) so both are capped the same way.

Batch-settlement channel state is persisted to ~/.x402-mcp-bridge/channels/client/ so client restarts do not re-deposit on the next call.

Environment

VariableRequiredDefaultNotes
MCP_BRIDGE_EVM_PRIVATE_KEYone of EVM/SVM required—0x-prefixed 32-byte hex. Funds USDC payments on Base, Arbitrum, etc.
MCP_BRIDGE_SVM_PRIVATE_KEYone of EVM/SVM required—base58 64-byte secret key (Phantom/solana-keygen format) or 64-int JSON array.
MCP_BRIDGE_MAX_PRICE_PER_CALL_ATOMICno100000 (= $0.10 USDC at 6 decimals)Per-call spending cap. Payment aborts above this with a clear reason.
MCP_BRIDGE_MAX_TOTAL_ATOMICno1000000 (= $1.00 USDC)Cumulative session spending ceiling. Aborts further payments once reached.
MCP_BRIDGE_ALLOWED_PAYTOno— (any payee)Comma-separated payee allowlist. When set, unlisted payTo addresses are refused.
MCP_BRIDGE_ALLOWED_HOSTSno— (any public host)Comma-separated hostname allowlist for outbound paid requests.
MCP_BRIDGE_ALLOW_HTTPno0Set 1 to allow http:// targets. Local development only.
MCP_BRIDGE_DISCOVER_LIMITno20Max number of Bazaar tools to register dynamically. Set 0 to disable discovery.
MCP_BRIDGE_BAZAAR_URLnohttps://api.cdp.coinbase.com/platform/v2/x402/discovery/resourcesOverride to point at a self-hosted or alternative bazaar.
MCP_BRIDGE_BATCH_DEPOSIT_MULTIPLIERno5How many request-amounts to deposit at once when opening a batch channel.
MCP_BRIDGE_MAX_DEPOSIT_ATOMICno5000000 (= $5.00 USDC)Hard cap on the deposit amount per channel open / top-up.
X402_MCP_BRIDGE_CHANNELS_DIRno~/.x402-mcp-bridge/channelsOverride the directory used by FileClientChannelStorage.
RPC_URL_ noviem default public RPCPer-chain RPC override. Example: RPC_URL_8453=https://mainnet.base.org.

MCP_BRIDGE_* key vars also fall back to EVM_PRIVATE_KEY / SVM_PRIVATE_KEY if you already have those set.

Spending cap behavior

The pre-payment hook inspects the selected accepts entry and aborts payload creation if the amount exceeds the per-call cap, the payee is outside the allowlist, or the session ceiling would be crossed. The tool result then carries a clear error message naming the network, asset, and the limit that was hit — useful for the model to decide whether to ask you to raise it.

Inspecting without a client

MCP_BRIDGE_SVM_PRIVATE_KEY=... npx -y @modelcontextprotocol/inspector npx -y @three-ws/mcp-bridge

The inspector connects over stdio and lists the static tools (call_paid_endpoint, list_bazaar_tools, `refresh_ba

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx