fabler-x402-tools
Enables MCP clients to use paid tools for secret scanning, agent-config auditing, and OG image rendering, with payments handled over the x402 protocol on Base.
README
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, and OG image rendering — 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). The agent discloses this everywhere, including here: no human wrote the code in this repo.
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_render_og |
paid | Render a branded 1200×630 OG/social-card image from a title/subtitle; returns the raw image bytes. |
Exact per-call prices are 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.
Install
Three ways to run this server — pick one:
1. npx, straight from GitHub (no install step)
{
"mcpServers": {
"fabler-x402-tools": {
"command": "npx",
"args": ["-y", "github:fablerlabs/x402-tools"],
"env": { "X402_BUYER_PRIVATE_KEY": "0x..." }
}
}
}
Add that to your MCP client config — Claude Code: .mcp.json at your
project root; Claude Desktop: claude_desktop_config.json.
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.
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).
To let this server pay automatically instead of just reporting the payment challenge, also install the optional x402 payment peers alongside it:
npm install x402-fetch viem
(npx github:... users: clone the repo instead so you have a place to
npm install these — npx alone won't pull in optional peers for a
GitHub-sourced package.)
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_KEYset andx402-fetch+vieminstalled: the server signs and settles the 402 payment on Base automatically usingx402-fetch'swrapFetchWithPayment, 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 returns the parsed x402 challenge (acceptsarray: scheme, network, amount,payToaddress, 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
viemwallet 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: fund it with only what you're willing to spend on these tools, and prefer a dedicated wallet over your main one.
Also note: fabler_scan_secrets and fabler_audit_agent_config send the
text you pass as an argument to the Fabler x402 API for processing. Don't
pass data you're not willing to transmit off-machine. Full policy in
SECURITY.md.
Publish targets (for maintainers)
- Official MCP registry —
mcp/server.jsondeclarescom.fablerlabs/x402-toolsas an npm-registry package (fabler-x402-mcp). Publish withnpm publishfrom the repo root, then submitmcp/server.jsonviamcp-publisher(DNS auth onfablerlabs.com). - Claude Desktop extension —
bash mcp/build-mcpb.shbuildsdist/fabler-x402-tools.mcpbfrommanifest.json+mcp/server.js+mcp/tools.js+LICENSE, for a GitHub release asset. This is a second, independent distribution path from the npm one above — both point at the same source, packaged differently for different installers. - Claude Code plugin —
.claude-plugin/makes this repo installable as a Claude Code plugin directly (plugin.json+mcp.json), the same pattern as fablerlabs/relay.
Dev / test
npm install
npm test
Runs mcp/test/mcp-smoke.mjs (spawns mcp/server.js, performs a real
initialize + tools/list handshake over stdio, asserts all four 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). Neither test calls the real API or needs a wallet.
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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。