# Fabler x402 Tools

Connects AI agents to utility APIs with micro-payments via the x402 protocol on Base. Useful for secret scanning, config auditing, and fetching market funding rates.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: fablerlabs
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/fablerlabs/x402-tools
- Updated: 2026-08-03
- HTML: https://affpapa.org/en/nevibecode/mcp/fabler-x402-tools

## What it does

This server connects coding agents to pay-per-call utilities settled on Base via the x402 protocol. Its toolset includes secret scanning for tokens such as GitHub or Stripe keys, structural scoring of `CLAUDE.md` files from 0 to 100, and validation of 18-point pre-deploy records. It also provides public URL header analysis, clean article text extraction, 1200×630 social image generation, and funding rate spreads across derivative exchanges.

No user account or API key is required. Instead, on-chain USDC payment acts as authentication. Pricing for most endpoints is resolved dynamically at runtime through a free catalog tool, while crypto funding data has a fixed fee of $0.001.

Automating payments requires setting `X402_BUYER_PRIVATE_KEY` in your environment. Storing a private key from an active primary wallet creates unnecessary risk, so using an isolated account with pocket-change funding is safer. Omission of this key leaves the server in inspect mode, returning an HTTP 402 challenge response on paid requests.

## Requirements
- Remote server: `https://x402.fablerlabs.com/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http x402-tools https://x402.fablerlabs.com/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add fabler-x402-tools --url https://x402.fablerlabs.com/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "fabler-x402-tools": {
            "url": "https://x402.fablerlabs.com/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "fabler-x402-tools": {
            "type": "http",
            "url": "https://x402.fablerlabs.com/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http fabler-x402-tools https://x402.fablerlabs.com/mcp
```

## When to use it
- scan code repositories for leaked API tokens and secrets
- evaluate agent instruction files like `CLAUDE.md` or `AGENTS.md`
- inspect public web endpoints for HTTPS redirects and security headers
- retrieve normalized perpetual futures funding spreads across exchanges
- generate social preview images for web assets

## Example prompts
- Inspect `.env.example` using `fabler_scan_secrets` to identify leaked credentials
- Run `fabler_audit_agent_config` on `CLAUDE.md` to grade our project instructions
- Fetch current perpetual futures funding spreads using `fabler_market_funding_spreads`

## Similar
- [Token risk x402](https://affpapa.org/en/nevibecode/mcp/token-risk-x402.md) — MCP server
- [mcp-x402](https://affpapa.org/en/nevibecode/mcp/mcp-x402.md) — MCP server · ★ 275
- [minia2a-x402](https://affpapa.org/en/nevibecode/mcp/minia2a-x402.md) — MCP server
- [Apex Edge — x402-paid machine services](https://affpapa.org/en/nevibecode/mcp/apex-edge-x402-paid-machine-services.md) — MCP server
- [Neuronto Payments: x402 facilitator and API gateway](https://affpapa.org/en/nevibecode/mcp/neuronto-payments-x402-facilitator-and-api-gateway.md) — MCP server
- [x402](https://affpapa.org/en/nevibecode/skills/x402.md) — skill · 1300 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
