SRA-RiskGate MCP Setup & Guide
io.github.sriram1983007-dev/sra-riskgate-mcp · v0.20.0
The pre-sign firewall for AI agents that pay: approve, hold or reject stablecoin and x402 payments.
Copy the install config on this page first, then verify docs and permissions upstream.
Overview
The pre-sign firewall for AI agents that pay: approve, hold or reject stablecoin and x402 payments. SRA-RiskGate is a MCP Server listed from MCP Registry. Transports: stdio. This page includes an overview, setup tutorial, install commands, and use cases for Trae, Tongyi Lingma, Cursor, Claude Code, and VS Code.
Use cases
AgentHub Verified AvailabilityTested & Ready
Automated pipeline validated install commands, protocol & client compatibility
Copy by platform
Choose your platform
- Open or create .cursor/mcp.json in your project root
- Click Copy config and paste; merge only this mcpServers entry if others exist
- Replace <placeholders> in env with real secrets (see Environment variables below)
- Save, then Cmd+Shift+P → Reload Window
Pre-fill Environment Variables (Optional)
{
"mcpServers": {
"sra-riskgate-mcp": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
]
}
}
}Setup tutorial
- Open the SRA-RiskGate page and confirm this MCP Server (source: MCP Registry).
- Copy the Cursor, Claude Code, or VS Code snippet.
- Merge it into mcpServers and replace env placeholders with real secrets.
- Reload the window, then call the MCP tools from your agent chat.
Install commands
Install commands and setup steps are in the HTML so search engines and no-JS browsers can read them without running client JavaScript.
Claude Code (local)
- Install Claude Code CLI
- Copy the command below, replace <placeholders> with real env values, then run in terminal
- See Environment variables below if listed
claude mcp add sra-riskgate-mcp -- uvx sra-riskgate-mcpCursor — .cursor/mcp.json (local)
- Open or create .cursor/mcp.json in your project root
- Click Copy config and paste; merge only this mcpServers entry if others exist
- Replace <placeholders> in env with real secrets (see Environment variables below)
- Save, then Cmd+Shift+P → Reload Window
{
"mcpServers": {
"sra-riskgate-mcp": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
]
}
}
}VS Code — .vscode/mcp.json (local)
- Install GitHub Copilot in VS Code with MCP support
- Open or create .vscode/mcp.json in your project root
- Click Copy config and paste; merge only this mcpServers entry if others exist
- Replace <placeholders> in env with real secrets
- Save and Developer: Reload Window
{
"mcpServers": {
"sra-riskgate-mcp": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
]
}
}
}Claude Desktop — claude_desktop_config.json (local)
- Open Claude Desktop claude_desktop_config.json (see remote guide for paths)
- Click Copy config and merge under mcpServers
- Replace <placeholders> in env with real secrets
- Fully quit and restart Claude Desktop
{
"mcpServers": {
"sra-riskgate-mcp": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
]
}
}
}Trae — .trae/mcp.json (local)
- Trae → Settings → MCP, or edit .trae/mcp.json / global mcp.json
- Click Copy config and merge mcpServers
- Replace <placeholders> in env with real secrets
- Save and reload Trae
{
"mcpServers": {
"sra-riskgate-mcp": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
]
}
}
}Cherry Studio — MCP settings (local)
- Cherry Studio → Settings → MCP Servers → Add (STDIO)
- Or import JSON: click Copy config and merge mcpServers
- Replace <placeholders> in env; ensure Node.js / uv (npx, uvx) are installed
- Enable the server and check tools load
{
"mcpServers": {
"sra-riskgate-mcp": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
]
}
}
}Tongyi Lingma — MCP config (local)
- Lingma Settings → MCP → + → STDIO or config file
- Click Copy config and merge mcpServers
- Replace <placeholders> in env; need Node.js 18+ (npx) or uv (uvx)
- Confirm connected before using tools in agent chat
{
"mcpServers": {
"sra-riskgate-mcp": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
]
}
}
}Windsurf — mcp_config.json (local)
- Edit ~/.codeium/windsurf/mcp_config.json
- Click Copy config and merge mcpServers (stdio same as Cursor)
- Replace <placeholders> in env, save, refresh Cascade
{
"mcpServers": {
"sra-riskgate-mcp": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
]
}
}
}Cline — MCP Servers (local)
- Cline panel → Settings → MCP Servers
- Click Copy config and merge
- Replace <placeholders> in env, then save
{
"mcpServers": {
"sra-riskgate-mcp": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
]
}
}
}WorkBuddy — .workbuddy/mcp.json (local)
- Edit ~/.workbuddy/mcp.json (user) or project .workbuddy/mcp.json
- Or Plugins → MCP Servers → Configure MCP and paste the JSON below
- Replace <placeholders> in env; on Windows prefer absolute paths for command/scripts
- Save, restart WorkBuddy, confirm connector status is green
{
"mcpServers": {
"sra-riskgate-mcp": {
"command": "uvx",
"args": [
"sra-riskgate-mcp"
]
}
}
}Troubleshooting & Common ErrorsFAQ
Common connection errors and verified fixes for SRA-RiskGate
Getting 'connection closed' or exit code 1 in Cursor / Claude Code for SRA-RiskGate?
Usually caused by missing runtime paths or IDE environment inheritance. Fix steps: 1. Verify Node.js 18+ (npx) or Python 3.10+ (uvx) is installed; 2. Run 'which npx' or 'which uvx' in terminal, and replace 'command' with absolute path; 3. Reload or restart the client window after modifying config.
# Check binary path in terminal: which npx node -v
Getting 'spawn npx ENOENT' or 'command not found'?
The editor background process does not inherit your full terminal PATH. Solution: Globally install the package, or set the absolute binary path (e.g. C:\Program Files\nodejs\npx.cmd on Windows, or /usr/local/bin/npx on macOS).
Missing required environment variable or authentication failure?
SRA-RiskGate requires environment variables (SRA_BASE_URL、SRA_MODEL、SRA_MAX_AMOUNT、SRA_ALLOWED_TOKENS、SRA_EXTRA_TOKENS、SRA_EXTRA_TOKENS_FILE、SRA_NEW_COUNTERPARTY、SRA_RECEIPT_CHAIN_FILE、SRA_RPC_URL、SRA_LOOKALIKE_CHECK、SRA_KNOWN_RECIPIENTS、SRA_KNOWN_RECIPIENTS_FILE、SRA_BLOCKED_ADDRESSES、SRA_BLOCKED_ADDRESSES_FILE、SRA_MAX_AUTH_VALIDITY_SECONDS、SRA_API_KEY、SRA_TIMEOUT、SRA_DEPEG_HOLD_PCT、SRA_DEPEG_REJECT_PCT、SRA_MAX_GATEWAY_VALIDITY_SECONDS、SRA_CIRCLE_WALLETS、SRA_CIRCLE_USDC_TOKEN_IDS、SRA_EXPECTED_DELEGATES、SRA_EXPECTED_DELEGATES_FILE、SRA_EXPECTED_PAYMASTERS、SRA_EXPECTED_PAYMASTERS_FILE、SRA_EXPECTED_SPENDERS、SRA_EXPECTED_SPENDERS_FILE、SRA_MAX_ALLOWANCE、SRA_ALLOW_ACCOUNT_DEPLOYMENT、SRA_CHAINALYSIS_API_KEY、SRA_TRM_API_KEY、SRA_TRM_KEYLESS、SRA_RANGE_API_KEY、SRA_WEBACY_API_KEY、SRA_WEBACY_HIGH_RISK_SCORE、SRA_ELLIPTIC_API_KEY、SRA_ELLIPTIC_API_SECRET、SRA_ELLIPTIC_HIGH_RISK_SCORE、SRA_ELLIPTIC_SEVERE_RISK_SCORE、SRA_ELLIPTIC_UNSEEN_IS_CLEAN、SRA_SCREENING_HOLD_AT、SRA_SCREENING_REJECT_AT、SRA_SCREENING_TIMEOUT、SRA_POLICY_FILE、SRA_BUDGET_TOTAL、SRA_BUDGET_PER_PAYEE、SRA_BUDGET_WINDOW_HOURS、SRA_MAX_PAYMENTS_PER_HOUR、SRA_AMOUNT_SPIKE_FACTOR、SRA_LEDGER_FILE、SRA_RECEIPT_KEY、SRA_RECEIPT_KEY_ID). Ensure you have added valid keys under the 'env' object in your config file without trailing whitespace.
// .cursor/mcp.json 或 claude_desktop_config.json
{
"env": {
"API_KEY": "your_actual_key_here"
}
}Tool Mock Playground
SandboxSRA-RiskGate Tool Interface Simulation · Preview tool schema & outputs without local runtime
{
"target": "SRA-RiskGate",
"action": "execute",
"options": {
"mode": "standard",
"timeoutMs": 5000
}
}Click 'Run Mock' above
to preview the raw response returned to the LLM
Decision Guide: Why & When to Use
Assess suitability before installing to save trial-and-error time
- PR review
- Changelog generation
- Cross-repo issue search
- Replacing human security audit
- Unauthorized repo access
SRA-RiskGate + Scenario Prompt → Complete Agent Automation
MCP hands-on: install to visible results
Follow the full lab (expected UI/output + contrast checks). After installing this item, verify with the tutorial prompts.
Related resources
Kubernetes
io.mcp-cn.mcp-server-kubernetes
Kubernetes的MCP服务器,支持Kubernetes的读取和写入
n8n
io.mcp-cn.drballs/n8n-mcp-server
n8n工作流自动化平台的MCP服务器,提供完整的工作流管理、执行控制、凭证管理等功能
AntV图表
io.mcp-cn.antv/mcp-server-chart
基于AntV的图表生成MCP工具,支持多种图表类型的创建和渲染
Excel MCP
io.mcp-cn.negokaz/excel-mcp-server
Excel文件的MCP服务器,支持Excel文件的读取和写入
Figma
io.mcp-cn.figma-developer-mcp
连接Figma的MCP服务器,支持设计文件管理和操作
Playwright
io.mcp-cn.playwright/mcp
基于Playwright的自动化测试和网页操作MCP工具
Often paired with
insurance-advisor-china
v2.4.41
io.clawhub.mnetfairy/insurance-advisor-china
中国大陆AI保险顾问。为个人和家庭提供全方位的保险咨询、产品对比、方案设计、投保指导。当用户询问保险配置、保险方案、产品对比、重疾险/医疗险/寿险/意外险/储蓄险推荐、保费计算、保障缺口分析、需求分析、核保合规、理赔等问题时使用。发布产物仅含 SKILL.md + 3 个只读参考文件(references/products.json、insurance-knowledge.md、compliance.md)+ 3 个运行时脚本(needs_analyzer / premium_calculator / plan_designer);数据清洗脚本与回归测试脚本是本地维护工具,不随发布产物分发。
ai-insurance-advisor
v2.4.45
io.clawhub.mnetfairy/ai-insurance-advisor
中国大陆保险顾问。本 skill 覆盖 8 项能力:保险需求分析(needs_analyzer.py)、产品对比(premium_calculator.py + 本地 products.json)、保费计算(premium_calculator.py)、方案设计(plan_designer.py)、保险知识问答(insurance-knowledge.md)、合规要点提示(compliance.md)、朋友圈/社交营销文案生成(agent LLM 生成,无专属脚本)、培训话术支持(agent LLM 生成,无专属脚本)。不提供核保预审、理赔代办、代理人展业工具等能力——这些场景请转人工或调用专业服务。发布产物仅含 SKILL.md + 3 个只读参考文件 + 3 个运行时脚本(needs_analyzer / premium_calculator / plan_designer);数据清洗与回归测试脚本为本地维护工具,不随发布产物分发。
中文公文写作
v2.1.6
io.clawhub.gongyu0918-debug/chinese-official-writing
用于中文公文、事务性材料和新闻稿件的起草、改写、压缩、润色、审校、文种核对、去口语化、降 AI 味及 Word 格式处理,适用于机关、企事业单位、学校和新闻机构。涵盖申请、请示、报告(含突发事件和事故的初报、续报、阶段终报)、通知、通告、意见、决定、决议、议案、公报、命令、函、复函、批复、说明、方案、纪要、公告、公示、通报、制度、规定、办法、细则、操作规程、工作要点、总结、调研、讲话、致辞、主持词、述职、可研、审查材料、技术需求、新闻消息、编者按、新闻评论,以及采购、整改、反馈和 AI 算力等场景。
ai-era-career-planner
v2.3.31
io.clawhub.mnetfairy/ai-era-career-planner
AI时代职业规划师技能。专为AI时代职场变化而设计,帮助用户应对AI带来的职业冲击与机遇。当用户询问职业规划、职业建议、选专业、职场转型、未来就业方向时触发。功能包括:收集用户基本信息、霍兰德职业兴趣测评、职业价值观分析、AI时代职业影响评估(高危/中危/低危分级),并输出完整的个性化职业规划报告。【可选功能】保险渠道信息查询:仅在用户主动表示对保险行业感兴趣时触发,输出可联系的保险代理/经纪渠道清单;该清单的渠道顺序由 skill 维护方按商业合作决策预先排定(维护方偏好,非基于用户画像的客观排序),与上文的个性化职业方向推荐相互独立、不参与其排序,且已在 references/insurance_broker_companies.json 的 priority_basis 与 priority_disclosure 字段中披露,用户可随时要求并列对比其他渠道。关键词:职业规划、选专业、工作建议、做什么工作好、职业转型、AI时代职业、AI替代、哪些工作会被AI取代。
Keep exploring AgentHub
Most people compare similar tools or check scenario guides before installing—start here.
Listing badge: put AgentHub on your site
Copy either snippet into your project homepage, docs, or GitHub README. The badge is a hotlinked SVG — nothing to host — and it links back to this page so visitors can find the install steps.
<a href="https://myagenthub.cn/p/io.github.sriram1983007-dev/sra-riskgate-mcp" title="Listed on AgentHub: SRA-RiskGate" target="_blank" rel="noopener">
<img src="https://myagenthub.cn/badge/io.github.sriram1983007-dev/sra-riskgate-mcp?lang=en" alt="Listed on AgentHub: SRA-RiskGate" height="20" style="border:0"/>
</a>[](https://myagenthub.cn/p/io.github.sriram1983007-dev/sra-riskgate-mcp)Badges are generated on the fly from /badge/<package-id>, so name and listing changes propagate automatically. Keep the link target unchanged — it is what counts as the referral.
Unified Manifest
{
"id": "io.github.sriram1983007-dev/sra-riskgate-mcp",
"type": "mcp-server",
"version": "0.20.0",
"displayName": "SRA-RiskGate",
"description": "The pre-sign firewall for AI agents that pay: approve, hold or reject stablecoin and x402 payments.",
"repository": {
"url": "https://github.com/sriram1983007-dev/sra-riskgate-mcp",
"source": "github"
},
"distribution": {
"packages": [
{
"registryType": "pypi",
"identifier": "sra-riskgate-mcp",
"version": "0.20.0",
"runtimeHint": "uvx",
"transport": "stdio",
"environmentVariables": [
{
"name": "SRA_BASE_URL",
"description": "OpenAI-compatible endpoint serving SRA-RiskGate-4B (default: Ollama at http://localhost:11434/v1)"
},
{
"name": "SRA_MODEL",
"description": "Model name on that endpoint (default: sriram1983007/sra-riskgate)"
},
{
"name": "SRA_MAX_AMOUNT",
"description": "Rule ceiling in whole tokens of the stablecoin paid; larger payments are held (default: 1000)"
},
{
"name": "SRA_ALLOWED_TOKENS",
"description": "Stablecoins the payment checks may approve: USDC, USDT, USDB, USDG (comma-separated). Default: USDC only"
},
{
"name": "SRA_EXTRA_TOKENS",
"description": "US-dollar stablecoins the SDK does not list, as JSON: [{\"symbol\", \"chain_id\", \"contract\", \"decimals\", \"eip3009\"}]. Enable payments in them with SRA_ALLOWED_TOKENS"
},
{
"name": "SRA_EXTRA_TOKENS_FILE",
"description": "Path to a JSON file in the SRA_EXTRA_TOKENS format"
},
{
"name": "SRA_NEW_COUNTERPARTY",
"description": "hold (default) or allow: allow keeps the look-alike check without holding every new payee"
},
{
"name": "SRA_RECEIPT_CHAIN_FILE",
"description": "With SRA_RECEIPT_KEY: a JSON Lines file where every receipt is linked to the one before it"
},
{
"name": "SRA_RPC_URL",
"description": "JSON-RPC endpoint for scan_wallet_for_poisoning (0.20.0+); a server setting the agent cannot change. May contain an API key.",
"isSecret": true
},
{
"name": "SRA_LOOKALIKE_CHECK",
"description": "standard (default) or strict: strict also rejects a payee imitating a known one by 3 characters at each end"
},
{
"name": "SRA_KNOWN_RECIPIENTS",
"description": "Verified payee addresses, comma-separated; payments to anyone else are held (default: check off)"
},
{
"name": "SRA_KNOWN_RECIPIENTS_FILE",
"description": "File with one verified payee address per line, added to SRA_KNOWN_RECIPIENTS"
},
{
"name": "SRA_BLOCKED_ADDRESSES",
"description": "Addresses to always reject, comma-separated"
},
{
"name": "SRA_BLOCKED_ADDRESSES_FILE",
"description": "File with one address to reject per line, added to SRA_BLOCKED_ADDRESSES"
},
{
"name": "SRA_MAX_AUTH_VALIDITY_SECONDS",
"description": "Longest an x402 authorization may stay valid before it is held (default: 3600)"
},
{
"name": "SRA_API_KEY",
"description": "API key for the model endpoint, if it needs one",
"isSecret": true
},
{
"name": "SRA_TIMEOUT",
"description": "Seconds to wait for the model (default: 120)"
},
{
"name": "SRA_DEPEG_HOLD_PCT",
"description": "Hold payments when USDC is this many percent off $1.00 (default: 1)"
},
{
"name": "SRA_DEPEG_REJECT_PCT",
"description": "Reject payments when USDC is this many percent off $1.00 (default: 5)"
},
{
"name": "SRA_MAX_GATEWAY_VALIDITY_SECONDS",
"description": "Longest a Circle Gateway batched payment may stay valid before it is held (default: 691200, 8 days)"
},
{
"name": "SRA_CIRCLE_WALLETS",
"description": "Circle Wallets the agent may use, as walletId=0xaddress pairs, comma-separated; any other wallet is held"
},
{
"name": "SRA_CIRCLE_USDC_TOKEN_IDS",
"description": "Circle token ids confirmed to be USDC, for transfers by tokenId, comma-separated"
},
{
"name": "SRA_EXPECTED_DELEGATES",
"description": "EIP-7702 delegate contracts your wallet uses on purpose, comma-separated; with account_code, any other delegation is held"
},
{
"name": "SRA_EXPECTED_DELEGATES_FILE",
"description": "File with one expected delegate address per line, added to SRA_EXPECTED_DELEGATES"
},
{
"name": "SRA_EXPECTED_PAYMASTERS",
"description": "Paymasters your smart account uses on purpose (comma/space separated). When set, a UserOperation with any other paymaster is held."
},
{
"name": "SRA_EXPECTED_PAYMASTERS_FILE",
"description": "File with one expected paymaster address per line."
},
{
"name": "SRA_EXPECTED_SPENDERS",
"description": "Contracts your wallet approved on purpose (comma/space separated). check_allowances holds an allowance to any other spender."
},
{
"name": "SRA_EXPECTED_SPENDERS_FILE",
"description": "File with one expected spender address per line."
},
{
"name": "SRA_MAX_ALLOWANCE",
"description": "The most any one spender may be allowed, in whole tokens. check_allowances holds anything larger."
},
{
"name": "SRA_ALLOW_ACCOUNT_DEPLOYMENT",
"description": "Set to 1 to allow a UserOperation that also deploys the smart account (initCode/factory). Default: held."
},
{
"name": "SRA_CHAINALYSIS_API_KEY",
"description": "Chainalysis sanctions API key: screen sender and payee with Chainalysis",
"isSecret": true
},
{
"name": "SRA_TRM_API_KEY",
"description": "TRM Labs sanctions API key: screen sender and payee with TRM",
"isSecret": true
},
{
"name": "SRA_TRM_KEYLESS",
"description": "Set to 1 to screen with TRM's free keyless access (no key)"
},
{
"name": "SRA_RANGE_API_KEY",
"description": "Range Risk API key: screen sender and payee with Range",
"isSecret": true
},
{
"name": "SRA_WEBACY_API_KEY",
"description": "Webacy API key: screen sender and payee with Webacy",
"isSecret": true
},
{
"name": "SRA_WEBACY_HIGH_RISK_SCORE",
"description": "Webacy overallRisk above which a payment counts as high risk (default: 50, Webacy's High band)"
},
{
"name": "SRA_ELLIPTIC_API_KEY",
"description": "Elliptic API key: screen sender and payee with Elliptic (needs SRA_ELLIPTIC_API_SECRET)",
"isSecret": true
},
{
"name": "SRA_ELLIPTIC_API_SECRET",
"description": "Elliptic API secret (Base64), used to sign Elliptic requests",
"isSecret": true
},
{
"name": "SRA_ELLIPTIC_HIGH_RISK_SCORE",
"description": "Elliptic risk_score (0-10) that counts as high risk and holds (default: 5)"
},
{
"name": "SRA_ELLIPTIC_SEVERE_RISK_SCORE",
"description": "Elliptic risk_score (0-10) that counts as severe and rejects (default: 10)"
},
{
"name": "SRA_ELLIPTIC_UNSEEN_IS_CLEAN",
"description": "Set to 1 to pass addresses Elliptic has never seen on chain (default: held)"
},
{
"name": "SRA_SCREENING_HOLD_AT",
"description": "Provider risk level that holds a payment: none, low, medium, high, severe (default: high)"
},
{
"name": "SRA_SCREENING_REJECT_AT",
"description": "Provider risk level that rejects a payment (default: severe)"
},
{
"name": "SRA_SCREENING_TIMEOUT",
"description": "Seconds per screening provider call (default: 10)"
},
{
"name": "SRA_POLICY_FILE",
"description": "Path to a JSON or YAML policy file (sra-riskgate 1.8.0 format): limits, payees, tokens, screening, budgets, anomalies"
},
{
"name": "SRA_BUDGET_TOTAL",
"description": "Rolling budget per agent wallet: approved payments above this total in the window are held"
},
{
"name": "SRA_BUDGET_PER_PAYEE",
"description": "Rolling budget per payee for each agent wallet"
},
{
"name": "SRA_BUDGET_WINDOW_HOURS",
"description": "Budget window in hours (default: 24)"
},
{
"name": "SRA_MAX_PAYMENTS_PER_HOUR",
"description": "Hold a payment once the wallet made this many approved payments in the last hour"
},
{
"name": "SRA_AMOUNT_SPIKE_FACTOR",
"description": "Hold a payment larger than this many times the wallet's median payment to that payee"
},
{
"name": "SRA_LEDGER_FILE",
"description": "Where approved payments are recorded for budgets (JSON Lines); default: memory only"
},
{
"name": "SRA_RECEIPT_KEY",
"description": "Secret (hex or base64, at least 16 bytes) to sign a receipt for every payment decision",
"isSecret": true
},
{
"name": "SRA_RECEIPT_KEY_ID",
"description": "Name recorded in receipts for the signing key (default: sra-riskgate-mcp)"
}
]
}
],
"remotes": []
},
"dependencies": [],
"installTargets": [
"claude-code",
"claude-desktop",
"cursor",
"vscode",
"trae",
"cherry-studio",
"lingma",
"windsurf",
"cline",
"workbuddy"
],
"keywords": [],
"provenance": {
"origin": "official-mcp-registry",
"originalId": "io.github.sriram1983007-dev/sra-riskgate-mcp",
"originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.sriram1983007-dev%2Fsra-riskgate-mcp/versions/latest",
"isOfficial": true,
"status": "active"
}
}