x402 payment safety: judge a payment against your policy before signing. No keys, never signs.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
verify the recipient. Call this first when a 402 response arrives and you cannot read the payment-required header. Returns the decoded x402 v2 challenge: scheme, network, asset, atomic amount, payee, resource and timeout. Pure decoding: no network call, no signature, no verdict — use evaluate_mcp_payment when you want a decision. Fails closed with a named error if the header is malformed or not base64.
The raw base64 value of the payment-required header
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http x402-payment-safety https://api.paystage.xyz/mcp
verify the recipient. Call this first when a 402 response arrives and you cannot read the payment-required header. Returns the decoded x402 v2 challenge: scheme, network, asset, atomic amount, payee, resource and timeout. Pure decoding: no network call, no signature, no verdict — use evaluate_mcp_payment when you want a decision. Fails closed with a named error if the header is malformed or not base64.
| Argument | Type | Description |
|---|---|---|
| header* | string | The raw base64 value of the payment-required header |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"header"
],
"properties": {
"header": {
"type": "string",
"minLength": 1,
"description": "The raw base64 value of the payment-required header"
}
}
}transaction scope. Call this when an agent might pay several times in one turn and you want one policy decision covering all of them. Verdict is pay | review | do_not_pay per item, in input order, with reason codes — so the agent can stop at the first refusal rather than discovering it after three payments. Read-only, holds no keys, never signs. Cheaper and more consistent than calling evaluate_mcp_payment in a loop: same policy, one round trip.
| Argument | Type | Description |
|---|---|---|
| policy* | any | |
| payments* | array |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"payments",
"policy"
],
"properties": {
"policy": {},
"payments": {
"type": "array",
"items": {},
"maxItems": 50,
"minItems": 1
}
}
}transaction scope. Call this BEFORE an agent places a HIP-3 / trade.xyz order. Verdict is allow | review | do_not_trade, with the rule that fired (notional above cap, market not allowed, leverage too high). Returns the decision and a one-line reason. Local policy only: this is not financial advice, holds no keys, and cannot place or cancel an order. Prices come from a read-only market query.
| Argument | Type | Description |
|---|---|---|
| policy | any | |
| proposal* | object | |
| snapshot | any | |
| policy_path | string |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"proposal"
],
"properties": {
"policy": {},
"proposal": {
"type": "object",
"required": [
"dex",
"asset",
"side",
"size"
],
"properties": {
"dex": {
"type": "string"
},
"side": {
"enum": [
"buy",
"sell"
],
"type": "string"
},
"size": {
"type": "string"
},
"asset": {
"type": "string"
},
"leverage": {
"type": "number"
},
"limit_px": {
"type": "string"
},
"order_type": {
"enum": [
"limit",
"market"
],
"type": "string"
}
}
},
"snapshot": {},
"policy_path": {
"type": "string"
}
}
}verify the recipient. Call this BEFORE signing any x402 payment. Verdict is pay | review | do_not_pay, each with stable reason codes (e.g. 'amount 1.00 USDC exceeds max_amount 0.05 USDC'). Returns the decision plus a signed receipt you can verify offline with verify_receipt. Read-only: holds no keys, never signs, never moves funds. A refusal costs nothing.
| Argument | Type | Description |
|---|---|---|
| policy | any | |
| agent_id | string | Which agent is asking. Required to reach per-agent budgets in policy.agents. |
| policy_path | string | |
| payment_required* | any |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"payment_required"
],
"properties": {
"policy": {},
"agent_id": {
"type": "string",
"description": "Which agent is asking. Required to reach per-agent budgets in policy.agents."
},
"policy_path": {
"type": "string"
},
"payment_required": {}
}
}spending limits. Call this when an agent already holds authorisations and you need to know which are dangerous. Verdict is pay | review | do_not_pay per authorisation, with reason codes naming the rule that fired (unlimited allowance, expiry already passed, spender not on the allow-list). Returns per-authorisation decisions plus a summary action. Read-only: never revokes, never signs. Revocation is a transaction you send yourself.
| Argument | Type | Description |
|---|---|---|
| policy | any | |
| tokens | array | |
| wallet* | string | |
| network | string | |
| rpc_url | string | |
| spenders | array | |
| policy_path | string | |
| eip3009_nonces | array |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"wallet"
],
"properties": {
"policy": {},
"tokens": {
"type": "array",
"items": {
"type": "string"
}
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"rpc_url": {
"type": "string"
},
"spenders": {
"type": "array",
"items": {
"type": "string"
}
},
"policy_path": {
"type": "string"
},
"eip3009_nonces": {
"type": "array",
"items": {
"type": "string"
}
}
}
}transparent risk assessments. Call this when an agent is about to make its Nth payment and you need to know whether the rate itself is the risk. Verdict is pay | review | do_not_pay over a rolling window (per-hour and per-day spend, count of payees). Returns the decision plus which window was breached. Read-only: it reads the history you pass in, holds no keys, and calls no external service.
| Argument | Type | Description |
|---|---|---|
| now_ms | integer | |
| policy | any | |
| history | array | |
| proposed* | object | |
| policy_path | string |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"proposed"
],
"properties": {
"now_ms": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"policy": {},
"history": {
"type": "array",
"items": {
"type": "object",
"required": [
"timestamp_ms"
],
"properties": {
"id": {
"type": "string"
},
"asset": {
"type": "string"
},
"amount": {
"type": "string"
},
"decimals": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"timestamp_ms": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"amount_atomic": {
"type": "string"
}
}
},
"default": []
},
"proposed": {
"type": "object",
"required": [
"timestamp_ms"
],
"properties": {
"id": {
"type": "string"
},
"asset": {
"type": "string"
},
"amount": {
"type": "string"
},
"decimals": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"timestamp_ms": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": 0
},
"amount_atomic": {
"type": "string"
}
}
},
"policy_path": {
"type": "string"
}
}
}spending limits. Call this when auditing what an agent could still spend without a new signature — ERC-20 allowances, Permit2 and EIP-3009 authorisations. Returns each authorisation with spender, amount and expiry. Read-only and needs only a public RPC; no key, no funds moved. Use it after an incident to see what remains exposed, not to revoke anything (this tool cannot revoke).
| Argument | Type | Description |
|---|---|---|
| policy | any | |
| tokens | array | |
| wallet* | string | |
| network | string | |
| rpc_url | string | |
| spenders | array | |
| policy_path | string | |
| eip3009_nonces | array |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"wallet"
],
"properties": {
"policy": {},
"tokens": {
"type": "array",
"items": {
"type": "string"
}
},
"wallet": {
"type": "string"
},
"network": {
"type": "string"
},
"rpc_url": {
"type": "string"
},
"spenders": {
"type": "array",
"items": {
"type": "string"
}
},
"policy_path": {
"type": "string"
},
"eip3009_nonces": {
"type": "array",
"items": {
"type": "string"
}
}
}
}test funds. Call this when you need Base Sepolia USDC to exercise the paid path end to end — one drip of 0.5 USDC per address per 24 hours, and the refusal tells you when it resets rather than just failing. Reads a public faucet: no key needed, no account, and it can only ever send testnet USDC. Use a throwaway address for anything automated; the cap is per address, so a script that generates a new address per call is not clever, it is why faucets get closed.
| Argument | Type | Description |
|---|---|---|
| address* | string | |
| faucetUrl | string |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"address"
],
"properties": {
"address": {
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
},
"faucetUrl": {
"type": "string",
"format": "uri"
}
}
}spending limits. Call this before wiring a policy into anything: a policy that fails validation makes every evaluation refuse, which looks like a product bug and is not one. Returns valid: true, or the exact field and message that is wrong. No payment needed, no network call, no key. Use it in CI on the policy file your agent ships with.
| Argument | Type | Description |
|---|---|---|
| policy* | any |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"policy"
],
"properties": {
"policy": {}
}
}verify the recipient. Call this when you have a receipt and want to know whether it is genuine, without trusting the server that issued it. Returns VALID with the verdict it attests to, INVALID if the payload was altered, or UNVERIFIABLE when the key cannot be fetched — and UNVERIFIABLE is a refusal, not a pass. Needs only the receipt JSON and a network connection; no account, no shared secret. Fetches the signing key from a published URL you can pin with key_url.
| Argument | Type | Description |
|---|---|---|
| key_url | string | Override the published key location |
| receipt* | any | The receipt object as issued |
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"receipt"
],
"properties": {
"key_url": {
"type": "string",
"format": "uri",
"description": "Override the published key location"
},
"receipt": {
"description": "The receipt object as issued"
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 18, 2026.