SafeRoute
Noncustodial Base x402 payment control and seller settlement recovery
Should I use this
Quality & Safety
Findings (2)
- LOWin prepare_token_transfer
- LOWin guard_base_trade
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"saferoute": {
"url": "https://saferoute-x402-production.up.railway.app/mcp"
}
}
}Remote endpoints
https://saferoute-x402-production.up.railway.app/mcpstreamable-httphttps://api.usesaferoute.com/mcpstreamable-httpWhat it can do
Tool inventory
Tools (13)
⚪protect_payment(idempotencyKey, payment, settlement)
One automatic x402 payment-safety front door: pre-payment ALLOW/BLOCK, duplicate-safe ID binding, policy risk reasons, and optional mined-settlement verification. Free and rate-limited; the buyer signs and pays.
Input Schema
{
"type": "object",
"properties": {
"idempotencyKey": {
"type": "string",
"minLength": 16,
"maxLength": 128,
"pattern": "^[a-zA-Z0-9._:-]+$"
},
"payment": {
"type": "object",
"properties": {
"payer": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"paymentRequired": {
"type": "object",
"properties": {
"x402Version": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"resource": {
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"url"
],
"additionalProperties": {}
},
"accepts": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"scheme": {
"type": "string",
"minLength": 1,
"maxLength": 32
},
"network": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"asset": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"amount": {
"type": "string",
"pattern": "^\\d+$"
},
"payTo": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"maxTimeoutSeconds": {
"type": "integer",
"minimum": 1,
"maximum": 3600
}
},
"required": [
"scheme",
"network",
"asset",
"amount",
"payTo",
"maxTimeoutSeconds"
],
"additionalProperties": {}
}
}
},
"required": [
"x402Version",
"resource",
"accepts"
],
"additionalProperties": {}
},
"policy": {
"type": "object",
"properties": {
"maxAmountAtomic": {
"type": "string",
"pattern": "^\\d+$"
},
"reviewAboveAmountAtomic": {
"type": "string",
"pattern": "^\\d+$"
},
"allowedPayees": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
}
},
"blockedPayees": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
}
},
"allowedHosts": {
"maxItems": 100,
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
}
},
"required": [
"payer",
"paymentRequired"
],
"additionalProperties": false
},
"settlement": {
"type": "object",
"properties": {
"paymentResponseHeader": {
"type": "string",
"minLength": 1,
"maxLength": 8192
},
"transactionHash": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{64}$"
}
},
"additionalProperties": false
}
},
"required": [
"idempotencyKey",
"payment"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_base_swap(from, to, amount, sourceAgentId, referralCode, ...)
Wallet-free approved-token Base swap safety preflight. Costs $0.001 USDC.
Input Schema
{
"type": "object",
"properties": {
"from": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"to": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"amount": {
"type": "string"
},
"sourceAgentId": {
"type": "string"
},
"referralCode": {
"type": "string"
},
"intentId": {
"type": "string"
}
},
"required": [
"from",
"to",
"amount"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_safe_swap_quote(from, to, amount, wallet, executionMode, ...)
Safety-checked noncustodial Base swap quote. Costs $0.01 USDC; the buyer signs and broadcasts.
Input Schema
{
"type": "object",
"properties": {
"from": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"to": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"amount": {
"type": "string"
},
"wallet": {
"type": "string"
},
"executionMode": {
"type": "string",
"enum": [
"standard",
"gasless"
]
},
"sourceAgentId": {
"type": "string"
},
"referralCode": {
"type": "string"
},
"intentId": {
"type": "string"
}
},
"required": [
"from",
"to",
"amount",
"wallet"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡prove_safe_action(action, from, to, amount, wallet, ...)
Create a signed pre-sign ALLOW, BLOCK, or REVIEW receipt. Costs $0.05 USDC.
Input Schema
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"trade",
"transaction",
"token"
]
},
"from": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"to": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"amount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"wallet": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"executionMode": {
"type": "string",
"const": "standard"
},
"token": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"transaction": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"to": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"data": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]+$"
},
"value": {
"type": "string",
"pattern": "^\\d+$"
}
},
"required": [
"from",
"to",
"data"
]
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"action"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_wallet_risk(wallet, sourceAgentId, referralCode, intentId)
Read-only Base wallet account-posture check. Costs $0.01 USDC.
Input Schema
{
"type": "object",
"properties": {
"wallet": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"wallet"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_token_risk(token, sourceAgentId, referralCode, intentId)
Approved Base token risk and liquidity check. Costs $0.03 USDC.
Input Schema
{
"type": "object",
"properties": {
"token": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"token"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪preflight_transaction(transaction, sourceAgentId, referralCode, intentId)
Decode and simulate approved Base ERC-20 calldata or SafeRoute's exact official ERC-8004 registration. Costs $0.05 USDC.
Input Schema
{
"type": "object",
"properties": {
"transaction": {
"type": "object",
"properties": {
"from": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"to": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"data": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]+$"
},
"value": {
"type": "string",
"pattern": "^\\d+$"
}
},
"required": [
"from",
"to",
"data"
]
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"transaction"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪prepare_token_transfer(token, amount, sender, recipient, sourceAgentId, ...)
Prepare a bounded, simulated unsigned Base token transfer. Costs $0.10 USDC.
Input Schema
{
"type": "object",
"properties": {
"token": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"amount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"sender": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"recipient": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"token",
"amount",
"sender",
"recipient"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪guard_base_trade(from, to, amount, wallet, executionMode, ...)
Complete pre-sign trade guard with route and simulation evidence. Costs $0.12 USDC.
Input Schema
{
"type": "object",
"properties": {
"from": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"to": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"amount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"wallet": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"executionMode": {
"type": "string",
"const": "standard"
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"from",
"to",
"amount",
"wallet"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪verify_transaction_intent(transactionHash, intent, sourceAgentId, referralCode, intentId)
Compare a mined Base transaction with buyer intent. Costs $0.05 USDC.
Input Schema
{
"type": "object",
"properties": {
"transactionHash": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{64}$"
},
"intent": {
"type": "object",
"properties": {
"sender": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"recipient": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"sellToken": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"buyToken": {
"type": "string",
"enum": [
"USDC",
"WETH",
"EURC",
"CBETH",
"CBBTC",
"VIRTUAL",
"AERO"
]
},
"sellAmount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"minimumBuyAmount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"expectedBuyAmount": {
"type": "string",
"pattern": "^\\d+(?:\\.\\d+)?$"
},
"expectedTarget": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"expectedCalldataHash": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{64}$"
}
},
"required": [
"sender",
"recipient",
"sellToken",
"buyToken",
"sellAmount",
"minimumBuyAmount"
]
},
"sourceAgentId": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"referralCode": {
"type": "string",
"minLength": 3,
"maxLength": 64
},
"intentId": {
"type": "string",
"minLength": 16,
"maxLength": 128
}
},
"required": [
"transactionHash",
"intent"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪verify_swap_execution(transactionHash, receipt, receiptSignature)
Verify a standard-mode SafeRoute Base execution against its signed receipt. Free; referral payouts remain disabled.
Input Schema
{
"type": "object",
"properties": {
"transactionHash": {
"type": "string"
},
"receipt": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"receiptSignature": {
"type": "string"
}
},
"required": [
"transactionHash",
"receipt",
"receiptSignature"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪route_agent_payment(request)
Prepare a bounded, simulated exact-buy route to a payer-owned Base USDC target covering the x402 payment and optional buffer. Costs $0.05 USDC; buyer confirms funding, then retries standard x402 once.
Input Schema
{
"type": "object",
"properties": {
"request": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"request"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢list_supported_assets
List SafeRoute's seven approved Base assets, limits, fees, and execution modes. Free.
Input Schema
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}Community
Evidence