mcpField
S
SRA-RiskGate

SRA-RiskGate

Local
github.com/sriram1983007-devFinance1Updated today

About SRA-RiskGate

Check stablecoin and x402 payments before an AI agent pays: approve, hold, or reject

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"sriram1983007-dev-sra-riskgate": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
],
"env": {
"SRA_BASE_URL": "<SRA_BASE_URL>",
"SRA_MODEL": "<SRA_MODEL>",
"SRA_MAX_AMOUNT": "<SRA_MAX_AMOUNT>",
"SRA_KNOWN_RECIPIENTS": "<SRA_KNOWN_RECIPIENTS>",
"SRA_KNOWN_RECIPIENTS_FILE": "<SRA_KNOWN_RECIPIENTS_FILE>",
"SRA_BLOCKED_ADDRESSES": "<SRA_BLOCKED_ADDRESSES>",
"SRA_BLOCKED_ADDRESSES_FILE": "<SRA_BLOCKED_ADDRESSES_FILE>",
"SRA_MAX_AUTH_VALIDITY_SECONDS": "<SRA_MAX_AUTH_VALIDITY_SECONDS>",
"SRA_API_KEY": "<SRA_API_KEY>",
"SRA_TIMEOUT": "<SRA_TIMEOUT>",
"SRA_DEPEG_HOLD_PCT": "<SRA_DEPEG_HOLD_PCT>",
"SRA_DEPEG_REJECT_PCT": "<SRA_DEPEG_REJECT_PCT>",
"SRA_MAX_GATEWAY_VALIDITY_SECONDS": "<SRA_MAX_GATEWAY_VALIDITY_SECONDS>",
"SRA_CIRCLE_WALLETS": "<SRA_CIRCLE_WALLETS>",
"SRA_CIRCLE_USDC_TOKEN_IDS": "<SRA_CIRCLE_USDC_TOKEN_IDS>"
}
}
}
}
Run commanduvx sra-riskgate-mcp
Environment variables to set
SRA_BASE_URLOpenAI-compatible endpoint serving SRA-RiskGate-4B (default: Ollama at http://localhost:11434/v1)
SRA_MODELModel name on that endpoint (default: sriram1983007/sra-riskgate)
SRA_MAX_AMOUNTRule ceiling in USDC; larger payments are held (default: 1000)
SRA_KNOWN_RECIPIENTSVerified payee addresses, comma-separated; payments to anyone else are held (default: check off)
SRA_KNOWN_RECIPIENTS_FILEFile with one verified payee address per line, added to SRA_KNOWN_RECIPIENTS
SRA_BLOCKED_ADDRESSESAddresses to always reject, comma-separated
SRA_BLOCKED_ADDRESSES_FILEFile with one address to reject per line, added to SRA_BLOCKED_ADDRESSES
SRA_MAX_AUTH_VALIDITY_SECONDSSecretLongest an x402 authorization may stay valid before it is held (default: 3600)
SRA_API_KEYSecretAPI key for the model endpoint, if it needs one
SRA_TIMEOUTSeconds to wait for the model (default: 120)
SRA_DEPEG_HOLD_PCTHold payments when USDC is this many percent off $1.00 (default: 1)
SRA_DEPEG_REJECT_PCTReject payments when USDC is this many percent off $1.00 (default: 5)
SRA_MAX_GATEWAY_VALIDITY_SECONDSLongest a Circle Gateway batched payment may stay valid before it is held (default: 691200, 8 days)
SRA_CIRCLE_WALLETSCircle Wallets the agent may use, as walletId=0xaddress pairs, comma-separated; any other wallet is held
SRA_CIRCLE_USDC_TOKEN_IDSSecretCircle token ids confirmed to be USDC, for transfers by tokenId, comma-separated

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
pypisra-riskgate-mcp0.9.1

Tools

3

Saved tool list · updated today

ParameterTypeRequiredDescription
senderstringYes
chain_idintegerYes
recipientstringYes
amount_usdcnumberYes
peg_deviation_pctanyNo

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.