# x402check

The x402check MCP server checks a payee before an agent pays, allowing payment for an x402 resource only after the recipient passes review.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 12 repo stars
- Author: caiovicentino
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/caiovicentino/jev-risk-check-provider/tree/HEAD/packages/mcp
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/x402check

## What it does

x402check puts a risk decision before an agent’s payment. Its check returns `allow`, `warn`, `block`, or `not_verified`; the payment tool checks the exact recipient immediately before signing. A warning requires user approval, while blocked or unverified results produce no signature.

The stdio server exposes `x402check_check`, `x402check_pay`, `x402check_verify_attestation`, and `x402check_methodology`. These tools cover counterparty checks, gated access to paid x402 resources, attestation validation, and the service’s checking rules and prices. Run it with `npx -y @x402check/mcp`.

Checks are paid: credits charge $0.001, or $0.005 when a transaction simulation is included. Configure `X402CHECK_CREDIT_TOKEN` or `X402CHECK_PAYER_KEY`; with neither variable, checks return `not_verified`. The server requires Node.js 22 or later.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `X402CHECK_CREDIT_TOKEN`, `X402CHECK_PAYER_KEY`, `X402CHECK_BUDGET_USD`, `X402CHECK_PINNED_KEYS`, `X402CHECK_MAX_PAYMENT_USD` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env X402CHECK_CREDIT_TOKEN=<X402CHECK_CREDIT_TOKEN> --env X402CHECK_PAYER_KEY=<X402CHECK_PAYER_KEY> --env X402CHECK_BUDGET_USD=<X402CHECK_BUDGET_USD> --env X402CHECK_PINNED_KEYS=<X402CHECK_PINNED_KEYS> --env X402CHECK_MAX_PAYMENT_USD=<X402CHECK_MAX_PAYMENT_USD> --transport stdio mcp -- npx -y @x402check/mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add mcp --env X402CHECK_CREDIT_TOKEN=<X402CHECK_CREDIT_TOKEN> --env X402CHECK_PAYER_KEY=<X402CHECK_PAYER_KEY> --env X402CHECK_BUDGET_USD=<X402CHECK_BUDGET_USD> --env X402CHECK_PINNED_KEYS=<X402CHECK_PINNED_KEYS> --env X402CHECK_MAX_PAYMENT_USD=<X402CHECK_MAX_PAYMENT_USD> -- npx -y @x402check/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@x402check/mcp"
            ],
            "env": {
                "X402CHECK_CREDIT_TOKEN": "<X402CHECK_CREDIT_TOKEN>",
                "X402CHECK_PAYER_KEY": "<X402CHECK_PAYER_KEY>",
                "X402CHECK_BUDGET_USD": "<X402CHECK_BUDGET_USD>",
                "X402CHECK_PINNED_KEYS": "<X402CHECK_PINNED_KEYS>",
                "X402CHECK_MAX_PAYMENT_USD": "<X402CHECK_MAX_PAYMENT_USD>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@x402check/mcp"
            ],
            "env": {
                "X402CHECK_CREDIT_TOKEN": "<X402CHECK_CREDIT_TOKEN>",
                "X402CHECK_PAYER_KEY": "<X402CHECK_PAYER_KEY>",
                "X402CHECK_BUDGET_USD": "<X402CHECK_BUDGET_USD>",
                "X402CHECK_PINNED_KEYS": "<X402CHECK_PINNED_KEYS>",
                "X402CHECK_MAX_PAYMENT_USD": "<X402CHECK_MAX_PAYMENT_USD>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e X402CHECK_CREDIT_TOKEN=<X402CHECK_CREDIT_TOKEN> -e X402CHECK_PAYER_KEY=<X402CHECK_PAYER_KEY> -e X402CHECK_BUDGET_USD=<X402CHECK_BUDGET_USD> -e X402CHECK_PINNED_KEYS=<X402CHECK_PINNED_KEYS> -e X402CHECK_MAX_PAYMENT_USD=<X402CHECK_MAX_PAYMENT_USD> mcp npx -y @x402check/mcp
```
Replace <…> with your own values

## When to use it
- screen a counterparty before payment
- stop a transfer when the result is `block`
- gate access to a paid x402 resource
- validate an attestation before using its result

## Example prompts
- Use `x402check_check` to review the recipient of this payment and report the findings.
- Fetch this paid resource with `x402check_pay`; sign only after the payee is cleared.
- Run `x402check_verify_attestation` for the exact request before trusting the verdict.

## Similar
- [Agent Wormhole](https://affpapa.org/en/nevibecode/mcp/agent-wormhole.md) — MCP server · ★ 6 repo stars
- [TollWarden](https://affpapa.org/en/nevibecode/mcp/tollwarden.md) — MCP server · ★ 2 repo stars
- [TrustBench](https://affpapa.org/en/nevibecode/mcp/trustbench.md) — MCP server · 1029 installs
- [x402-payments](https://affpapa.org/en/nevibecode/skills/x402-payments.md) — skill · 591 installs
- [okx-agent-payments-protocol](https://affpapa.org/en/nevibecode/skills/okx-agent-payments-protocol.md) — skill · 16200 installs
- [x402 Gateway — ScriptMasterLabs](https://affpapa.org/en/nevibecode/mcp/x402-gateway-scriptmasterlabs.md) — MCP server · 223 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
