402-in-a-Box
Provides payment processing for compute pack purchases in USD via PayPal Orders v2, including 0% Export LUT tax receipts.
Provides payment processing for compute pack purchases in INR, including 18% GST tax receipts and sequential invoicing.
402-in-a-Box — HTTP 402 Metering & Compute Packs for MCP
Turn any Model Context Protocol (2026-07-28) server into a pay-per-call metered API using HTTP 402 Payment Required, atomic reserve-commit-rollback metering, and compliant fiat compute packs (Razorpay INR 18% GST & PayPal USD 0% Export LUT).
Live MCP Endpoint:
https://mcp.vashishta.srigenmedia.com/mcpAgent Discovery Card:
https://mcp.vashishta.srigenmedia.com/.well-known/agent.jsonDeveloper Portal & 25-Unit Free Sandbox:
https://vashishta.srigenmedia.com/developers/402Kavach KYA Spend-Hold Firewall:
https://kavach.srigenmedia.com
3-Step Quickstart
1. Install the Clean-Room SDK
# TypeScript / Cloudflare Workers
[](https://mcptry.com/servers/io.github.srigenmedia/402-in-a-box)
npm install @srigenmedia/mcp-402
# Python / FastAPI / MCP
[](https://mcptry.com/servers/io.github.srigenmedia/402-in-a-box)
pip install srigen-mcp-4022. Connect an MCP Client (mcp_config.json)
{
"mcpServers": {
"vashishta-402": {
"type": "streamable-http",
"url": "https://mcp.vashishta.srigenmedia.com/mcp",
"headers": {
"Authorization": "Bearer ${MCP_402_API_KEY}"
}
}
}
}3. Run the 60-Second Terminal Demo
$env:MCP_402_API_KEY = "<your-sandbox-key-from-portal>"
.\scripts\demo-402-flow.ps1Related MCP server: peage-mcp
Architecture: 402-in-a-Box + Kavach KYA
flowchart LR
Agent["AI Agent / MCP Client"] -->|"1. POST /mcp (No Key)"| Edge["402-in-a-Box Edge Meter"]
Edge -->|"HTTP 402 + PAYMENT-REQUIRED"| Agent
Agent -->|"2. Top-up Pack (Razorpay INR / PayPal USD)"| Portal["Developer Portal (/developers/402)"]
Portal -->|"Mint SRG-COMPUTE-UNIT-V1"| Ledger["Durable Object Credit Meter + D1 Audit"]
Agent -->|"3. POST /mcp + Bearer Key + Idempotency-Key"| Edge
Edge -->|"Policy & 2FA Spend-Hold Check (Zero Custody)"| Kavach["Kavach KYA Firewall (kavach.srigenmedia.com)"]
Kavach -->|"ALLOW / HOLD_2FA"| Edge
Edge -->|"Reserve -> Execute -> Commit + PAYMENT-RESPONSE"| AgentCompliance & Zero-Custody Posture
Closed-Loop SaaS Compute Units:
SRG-COMPUTE-UNIT-V1billed under SAC998315(non-withdrawable, non-transferable compute credits).Taxation & Invoicing: Razorpay 18% GST (INR) and PayPal Orders v2 0% Export LUT (USD) with sequential GST/LUT tax receipts.
Indian Crypto Firewall:
x402on-chain facilitator verification is disabled by default (X402_CRYPTO_ENABLED = false) on Indian deployments (opt-inonly for non-Indian self-hosters).Kavach KYA (
₹0Custody): Stores only authorization policy state,user_intent_hash,cart_mandate_hash, and verified bank/gateway RRN/UTR proofs — holding₹0customer funds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Attribution and settlement infrastructure for AI agent content access over HTTP 402 and MCP.
HTTP 402 & x402 V2 billing, pricing quotes, signed receipts, and Stripe top-ups for APIs & MCP.
Pay-per-action access to APIs and MCP tools over Lightning L402 and Base USDC x402.
Ledger of record for AI spend: verifiable receipts, waste auditor & model arbitrage MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables pay-per-call access control for AI agents using HTTP 402 and on-chain settlement, allowing microtransactions for API usage.79 PyPIMIT
- FlicenseNot gradedqualityCmaintenanceMCP server that provides AI agents a prepaid fiat wallet, enabling them to pay metered APIs per call on the peage rail with adjustable spending caps.-
- AlicenseAqualityBmaintenanceEnables any existing API to become a pay-per-call service for agents by issuing HTTP 402 payment requests and settling USDC payments via CDP, while exposing MCP tools that charge per call and support Bazaar discovery.345 npmMIT
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to use paid MCP tools within a human-approved budget by holding a PayPal sandbox authorization, checking each call against policy, recording usage in a durable ledger, and capturing or voiding the authorization at session close.MIT