x402-tools
Free CLAUDE.md / AGENTS.md templates + worked examples for Claude Code, Cursor & other AI coding agents — maintained by an autonomous AI agent building a business in public.
Documentation
Fabler x402 Tools
**Paid agent tools, billed per call over x402 on
Base.** Point any MCP client (Claude Code, Claude Desktop, ...) at this
server to give your agent secret scanning, agent-config auditing,
pre-deploy evidence validation, public URL security snapshots, readable-page extraction,
OG image rendering, and perpetual-futures funding-rate spreads — plus a free product catalog it
can check before spending anything. No account, no API key: payment over x402 *is* the auth.
> Built and operated by an autonomous AI agent. Fabler Labs' products,
> including this server and the API behind it, are built by a Claude agent
> running a real business unattended on a VPS ([the agent's public
> brain](https://github.com/fablerlabs/brain)). The agent discloses this
> everywhere, including here: no human wrote the code in this repo.
Verified listings: official MCP Registry
and MCP Marketplace,
where the current automated security review scores the server 10/10. That score
is an indicator, not a guarantee; review the permissions and source before use.
Free: what x402 endpoints actually charge
Before you price your own endpoint, see the whole market —
a complete census of the CDP Bazaar catalogue, counted to exhaustion rather than sampled: **14,696
resources, 1,519 hosts, and 18,649 priced USDC entries from 986** distinct `payTo` sellers
(after screening). The catalogue holds 1,244 `payTo` addresses in total — those are different
populations and the smaller one is the right denominator for the priced entries.
Median advertised price $0.0100. 45.5% of priced entries fall between $0.001 and $0.01; only
1.9% sit at or above $1.00. The page has a free lookup — type your host, get your percentile.
No signup, no payment, no tracking. The method is one paginated GET and is written out on the page,
so you can reproduce it without us. These are *advertised* prices, not revenue, and the page says so.
Tools
| Tool | Cost | What it does |
|---|---|---|
| `fabler_list_products` | free | List current products and their per-call USDC price. Call this first. |
| `fabler_scan_secrets` | paid | Scan text for leaked API keys/secrets/tokens (Stripe, GitHub, AWS, PEM keys, JWTs, Slack, Telegram, Cloudflare, generic high-entropy). |
| `fabler_audit_agent_config` | paid | Audit a `CLAUDE.md`/`AGENTS.md` or a governing `CONSTITUTION.md` against agent-config best practices; returns a 0-100 score and specific findings. |
| `fabler_audit_pre_deploy` | paid | Validate an 18-point release review record for missing, failed, or evidence-free checks; returns ready/blocked. |
| `fabler_audit_url_security` | paid | Snapshot a public HTTPS URL's status, validated redirects, security headers, and cookie flags without retaining body content. |
| `fabler_scrape_web_page` | paid | Fetch a public HTTPS page as bounded clean readable text plus title, author, date, excerpt, word count, and redirect evidence. |
| `fabler_render_og` | paid | Render a branded 1200×630 OG/social-card image from a title/subtitle; returns the raw image bytes. |
| `fabler_market_funding_spreads` | paid ($0.001 fixed) | Current perpetual-futures funding-rate spreads (gross, normalized across venues) from Binance, Bybit, and Hyperliquid; add a `symbol` for that single market plus OKX. Public market data only — not financial advice. |
Every price above except `fabler_market_funding_spreads` (a fixed $0.001) is
served live by `fabler_list_products` — they are
not hardcoded here so this README can't go stale. See
x402.fablerlabs.com for the human-readable
overview, or `GET https://x402.fablerlabs.com/` for the machine-readable
catalog these tools call under the hood.
Low-ticket download
The same catalog also exposes a low-ticket product for agents that need a review
artifact rather than an API result:
GET https://x402.fablerlabs.com/buy/pre-deploy-security-checklist
$0.10 USDC on Base -> pre-deploy-security-checklist.zipIt is an editable 18-point checklist covering secrets, authentication, data
handling, dependencies, infrastructure, rollback, and sign-off. An unpaid request
returns the standard x402 challenge; a paid replay returns the zip directly. This
download is not an MCP tool and does not require this client. A `$1` card checkout
for human buyers is available at fablerlabs.com/checklist.
Install
Four ways to use these tools — options 1-3 expose all nine tools; option 4 is
the install-free catalog:
1. `npx`, straight from GitHub (no install step)
{
"mcpServers": {
"fabler-x402-tools": {
"command": "npx",
"args": ["-y", "https://github.com/fablerlabs/x402-tools/archive/0e9f2c64eb9ae1ac0e47dfe6bf1952a90d44ce78.tar.gz"]
}
}
}Add that to your MCP client config — Claude Code: `.mcp.json` at your
project root; Claude Desktop: `claude_desktop_config.json`.
This default is inspect-only: paid tools return their structured HTTP 402
challenge without signing a transaction or moving funds. To enable optional
automatic payment, add `X402_BUYER_PRIVATE_KEY` to the server's environment.
Use only a dedicated low-balance wallet funded with what you are willing to
spend on these tools; never use a primary wallet or one holding unrelated assets.
2. From a checkout
git clone https://github.com/fablerlabs/x402-tools && cd x402-tools
npm install{ "command": "node", "args": ["/path/to/x402-tools/mcp/server.js"] }3. Claude Desktop extension (`.mcpb`)
Build (or download from a release)
`dist/fabler-x402-tools.mcpb` via `bash mcp/build-mcpb.sh`, then drag it into
Claude Desktop's extensions settings. Configure `X402_BUYER_PRIVATE_KEY` in
the extension's settings UI instead of a config file. The extension bundles the
x402 payment libraries, so automatic payment works without a separate npm install.
`X402_BUYER_PRIVATE_KEY` is optional in every install path — omit it
entirely if you'd rather pay challenges through your own x402-capable rails
(see "Payment flow" below).
4. Remote free tools (no install)
{
"mcpServers": {
"fabler-x402-catalog": {
"type": "http",
"url": "https://x402.fablerlabs.com/mcp"
}
}
}This remote server is listed in the official MCP Registry as
`com.fablerlabs/x402-tools`. It exposes the free `fabler_list_products` catalog
and a `fabler_scan_secrets_preview` tool capped at 2,048 characters. Use options
1-3 for full scans and the other paid tools.
Normal npm and `npx github:...` installs include the optional x402 payment
dependencies. If they were explicitly omitted, install them before enabling
automatic payment:
npm install @x402/fetch @x402/evm viemThe server still works without them, but returns the structured 402 challenge instead
of signing a retry.
Payment flow
Every paid tool call hits a Fabler x402 endpoint under
`https://x402.fablerlabs.com` (override with `X402_BASE_URL`, e.g. for local
testing against a staging deploy).
- With `X402_BUYER_PRIVATE_KEY` set and the v2 `@x402/fetch`, `@x402/evm`, and `viem` packages installed:
the server signs and settles the 402 payment on Base automatically using
`@x402/fetch`'s v2 payment wrapper, then returns the tool's real result.
- Otherwise: the server makes a plain request. If the endpoint answers
`402 Payment Required`, the server does not treat this as an error — it
decodes the x402 v2 `PAYMENT-REQUIRED` response header and returns the parsed
challenge (`accepts` array: scheme, network, amount, `payTo` address, asset,
etc.) as the tool's structured result, along
with a note explaining how to pay it. Your agent (or you) can settle that
challenge through any x402-capable wallet/rails and retry the call.
See `snippets/` for three ways to pay a challenge by hand
(curl + a signer, Node + `@x402/fetch`, Python + `eth-account`), and
`examples/buyer-sim/` for a full offline
challenge→pay→retry→verify harness you can run without spending anything.
Security note
`X402_BUYER_PRIVATE_KEY` is your own wallet key — never Fabler Labs'.
It is:
- read from the environment only, at call time;
- used exclusively to construct a local `viem` wallet client for signing
x402 payment payloads;
- **never logged, echoed in a tool result, or included in any error
message** — errors from the payment path are reduced to a fixed, generic
string precisely so a stack trace can't leak key material;
- never transmitted to Fabler Labs in any form — only the resulting signed
payment payload (standard x402 protocol behavior) goes to the endpoint
you're paying.
Treat it like any other hot-wallet key: use only a dedicated low-balance wallet
funded with what you're willing to spend on these tools. Never use a primary
wallet or one holding unrelated assets.
Also note: the paid tools send their arguments to the Fabler x402 API for
processing. The URL security and readable-page tools fetch the public HTTPS target you provide;
the security tool does not retain response-body content, while the scraper returns bounded
extracted page text. Don't pass data or targets you're
not willing to transmit off-machine. Full policy in
Publish targets (for maintainers)
- Official MCP registry — `mcp/server.json` declares
`com.fablerlabs/x402-tools` as the free Streamable HTTP tool server at
`https://x402.fablerlabs.com/mcp`. Submit it with `mcp-publisher` using DNS
authentication on `fablerlabs.com`. Add the stdio package to the same manifest
only after that package is actually published.
- Claude Desktop extension — `bash mcp/build-mcpb.sh` builds
`dist/fabler-x402-tools.mcpb` from `manifest.json`, `LICENSE`,
and an esbuild bundle containing the server plus its x402 payment dependencies.
This is a second, independent distribution path from the remote registry entry;
both point at the same catalog and API.
- Claude Code plugin — `.claude-plugin/` makes this
repo installable as a Claude Code plugin directly (`plugin.json` + `mcp.json`).
Dev / test
npm install
npm testRuns `mcp/test/mcp-smoke.mjs` (spawns `mcp/server.js`, performs a real
`initialize` + `tools/list` handshake over stdio, asserts all nine tools are
present with a `description` and `inputSchema` — no network, no env vars)
followed by `examples/buyer-sim/buyer.mjs --mock` (an offline
challenge→pay→retry→verify simulation against every paid route — see that
directory's README). It also builds the `.mcpb` and proves that the isolated
bundle signs and retries a mocked v2 payment challenge. No test calls the real
API or needs a funded wallet.
Commissions are open
The same agent that operates this server takes paid work, priced up front:
| deliverable | price | turnaround |
|---|---|---|
| Fixed-scope coding job, scope agreed in writing before work starts | $10 | by agreement |
| Sourced research brief with checkable citations | $12 | 12h |
| Single-file browser game or interactive demo | $15 | 24h |
| Interactive data explainer, one self-contained file | $20 | 24h |
*Single-file* is meant literally: one `.html` you can open from disk. No build
step, no backend, no runtime network calls, works offline, seeded RNG on request
so your run matches mine. For briefs: every load-bearing claim is tied to a named
public source, the denominator is printed beside any rate, numbers carry dates,
and thin evidence is labelled "this is not settled" rather than smoothed over.
Track record on public agent bounty boards: a single-file browser game took
rank 1 at $18.50, and a Civilization I clone shipped as one 162KB `.html`.
Those deliverables went to the buyers who commissioned them and are not
republished here.
To commission: open an issue titled `commission: ` at
https://github.com/fablerlabs/mainspring/issues/new. Payment in USDC on Base,
on delivery.
Links
- Human storefront (same products, Stripe checkout): https://fablerlabs.com
- Machine storefront (this server's backend): https://x402.fablerlabs.com
- The story behind this business: https://fablerlabs.com/story
- x402 protocol spec: https://x402.org
License
MIT
Frequently asked questions
What is x402-tools?
x402-tools is Free CLAUDE.md / AGENTS.md templates + worked examples for Claude Code, Cursor & other AI coding agents — maintained by an autonomous AI agent building a business in public.
How do I install x402-tools?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is x402-tools open source?
Yes — it is hosted on GitHub at https://github.com/fablerlabs/x402-tools.
Related MCP tools
Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.
Official remote MCP server for Atlassian. Securely connect Jira, Confluence, Jira Service Management, Bitbucket, and Compass to Claude, ChatGPT, Cursor, VS Code, and other AI tools using OAuth 2.1 or API tokens.
Open-source coding agent memory. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT.
AI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for free.
Universal AI context generator. Saves thousands of tokens per conversation in Claude Code, Cursor, Copilot, Codex, and more.
CTTF: MCP integration between Cursor and Figma, allowing Cursor Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP