SRA-RiskGate
io.github.sriram1983007-dev/sra-riskgate-mcp
v0.20.0Updated Nov 22, 2026stdio · PyPI
The pre-sign firewall for AI agents that pay: approve, hold or reject stablecoin and x402 payments.
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add sra-riskgate-mcp -- uvx sra-riskgate-mcp==0.20.0Configuration
53 settings.
SRA_RPC_URLEnv var· optional· secretJSON-RPC endpoint for scan_wallet_for_poisoning (0.20.0+); a server setting the agent cannot change. May contain an API key.SRA_API_KEYEnv var· optional· secretAPI key for the model endpoint, if it needs oneSRA_CHAINALYSIS_API_KEYEnv var· optional· secretChainalysis sanctions API key: screen sender and payee with ChainalysisSRA_TRM_API_KEYEnv var· optional· secretTRM Labs sanctions API key: screen sender and payee with TRMSRA_RANGE_API_KEYEnv var· optional· secretRange Risk API key: screen sender and payee with RangeSRA_WEBACY_API_KEYEnv var· optional· secretWebacy API key: screen sender and payee with Webacy
Show 47 moreShow fewer
SRA_ELLIPTIC_API_KEYEnv var· optional· secretElliptic API key: screen sender and payee with Elliptic (needs SRA_ELLIPTIC_API_SECRET)SRA_ELLIPTIC_API_SECRETEnv var· optional· secretElliptic API secret (Base64), used to sign Elliptic requestsSRA_RECEIPT_KEYEnv var· optional· secretSecret (hex or base64, at least 16 bytes) to sign a receipt for every payment decisionSRA_BASE_URLEnv var· optionalOpenAI-compatible endpoint serving SRA-RiskGate-4B (default: Ollama at http://localhost:11434/v1)SRA_MODELEnv var· optionalModel name on that endpoint (default: sriram1983007/sra-riskgate)SRA_MAX_AMOUNTEnv var· optionalRule ceiling in whole tokens of the stablecoin paid; larger payments are held (default: 1000)SRA_ALLOWED_TOKENSEnv var· optionalStablecoins the payment checks may approve: USDC, USDT, USDB, USDG (comma-separated). Default: USDC onlySRA_EXTRA_TOKENSEnv var· optionalUS-dollar stablecoins the SDK does not list, as JSON: [{"symbol", "chain_id", "contract", "decimals", "eip3009"}]. Enable payments in them with SRA_ALLOWED_TOKENSSRA_EXTRA_TOKENS_FILEEnv var· optionalPath to a JSON file in the SRA_EXTRA_TOKENS formatSRA_NEW_COUNTERPARTYEnv var· optionalhold (default) or allow: allow keeps the look-alike check without holding every new payeeSRA_RECEIPT_CHAIN_FILEEnv var· optionalWith SRA_RECEIPT_KEY: a JSON Lines file where every receipt is linked to the one before itSRA_LOOKALIKE_CHECKEnv var· optionalstandard (default) or strict: strict also rejects a payee imitating a known one by 3 characters at each endSRA_KNOWN_RECIPIENTSEnv var· optionalVerified payee addresses, comma-separated; payments to anyone else are held (default: check off)SRA_KNOWN_RECIPIENTS_FILEEnv var· optionalFile with one verified payee address per line, added to SRA_KNOWN_RECIPIENTSSRA_BLOCKED_ADDRESSESEnv var· optionalAddresses to always reject, comma-separatedSRA_BLOCKED_ADDRESSES_FILEEnv var· optionalFile with one address to reject per line, added to SRA_BLOCKED_ADDRESSESSRA_MAX_AUTH_VALIDITY_SECONDSEnv var· optionalLongest an x402 authorization may stay valid before it is held (default: 3600)SRA_TIMEOUTEnv var· optionalSeconds to wait for the model (default: 120)SRA_DEPEG_HOLD_PCTEnv var· optionalHold payments when USDC is this many percent off $1.00 (default: 1)SRA_DEPEG_REJECT_PCTEnv var· optionalReject payments when USDC is this many percent off $1.00 (default: 5)SRA_MAX_GATEWAY_VALIDITY_SECONDSEnv var· optionalLongest a Circle Gateway batched payment may stay valid before it is held (default: 691200, 8 days)SRA_CIRCLE_WALLETSEnv var· optionalCircle Wallets the agent may use, as walletId=0xaddress pairs, comma-separated; any other wallet is heldSRA_CIRCLE_USDC_TOKEN_IDSEnv var· optionalCircle token ids confirmed to be USDC, for transfers by tokenId, comma-separatedSRA_EXPECTED_DELEGATESEnv var· optionalEIP-7702 delegate contracts your wallet uses on purpose, comma-separated; with account_code, any other delegation is heldSRA_EXPECTED_DELEGATES_FILEEnv var· optionalFile with one expected delegate address per line, added to SRA_EXPECTED_DELEGATESSRA_EXPECTED_PAYMASTERSEnv var· optionalPaymasters your smart account uses on purpose (comma/space separated). When set, a UserOperation with any other paymaster is held.SRA_EXPECTED_PAYMASTERS_FILEEnv var· optionalFile with one expected paymaster address per line.SRA_EXPECTED_SPENDERSEnv var· optionalContracts your wallet approved on purpose (comma/space separated). check_allowances holds an allowance to any other spender.SRA_EXPECTED_SPENDERS_FILEEnv var· optionalFile with one expected spender address per line.SRA_MAX_ALLOWANCEEnv var· optionalThe most any one spender may be allowed, in whole tokens. check_allowances holds anything larger.SRA_ALLOW_ACCOUNT_DEPLOYMENTEnv var· optionalSet to 1 to allow a UserOperation that also deploys the smart account (initCode/factory). Default: held.SRA_TRM_KEYLESSEnv var· optionalSet to 1 to screen with TRM's free keyless access (no key)SRA_WEBACY_HIGH_RISK_SCOREEnv var· optionalWebacy overallRisk above which a payment counts as high risk (default: 50, Webacy's High band)SRA_ELLIPTIC_HIGH_RISK_SCOREEnv var· optionalElliptic risk_score (0-10) that counts as high risk and holds (default: 5)SRA_ELLIPTIC_SEVERE_RISK_SCOREEnv var· optionalElliptic risk_score (0-10) that counts as severe and rejects (default: 10)SRA_ELLIPTIC_UNSEEN_IS_CLEANEnv var· optionalSet to 1 to pass addresses Elliptic has never seen on chain (default: held)SRA_SCREENING_HOLD_ATEnv var· optionalProvider risk level that holds a payment: none, low, medium, high, severe (default: high)SRA_SCREENING_REJECT_ATEnv var· optionalProvider risk level that rejects a payment (default: severe)SRA_SCREENING_TIMEOUTEnv var· optionalSeconds per screening provider call (default: 10)SRA_POLICY_FILEEnv var· optionalPath to a JSON or YAML policy file (sra-riskgate 1.8.0 format): limits, payees, tokens, screening, budgets, anomaliesSRA_BUDGET_TOTALEnv var· optionalRolling budget per agent wallet: approved payments above this total in the window are heldSRA_BUDGET_PER_PAYEEEnv var· optionalRolling budget per payee for each agent walletSRA_BUDGET_WINDOW_HOURSEnv var· optionalBudget window in hours (default: 24)SRA_MAX_PAYMENTS_PER_HOUREnv var· optionalHold a payment once the wallet made this many approved payments in the last hourSRA_AMOUNT_SPIKE_FACTOREnv var· optionalHold a payment larger than this many times the wallet's median payment to that payeeSRA_LEDGER_FILEEnv var· optionalWhere approved payments are recorded for budgets (JSON Lines); default: memory onlySRA_RECEIPT_KEY_IDEnv var· optionalName recorded in receipts for the signing key (default: sra-riskgate-mcp)
Links
Listed in the official MCP Registry since Nov 22, 2026. Mirrored daily; last checked Nov 26, 2026.