What is MCP?
Model Context Protocol is Anthropic’s open standard for giving LLMs access to external tools. l402-kit ships a ready-made MCP server with two categories of tools:Generic L402 tools
| Tool | Description |
|---|---|
l402_fetch | Fetch any URL — pays automatically if it returns 402 |
l402_balance | Check remaining Lightning budget |
l402_spending_report | Full breakdown of payments this session |
VERITY tools — paid services, auto-pay included
| Tool | Price | Description |
|---|---|---|
verity_btc_price | 10 sats | Real-time BTC price in USD, EUR, BRL |
verity_worldstate | 80 sats | UTC time + geolocation + local weather |
verity_search | 100 sats | Web search, top 10 organic results |
verity_summarize | 50 sats | AI summarization up to 50,000 chars |
verity_sentiment | 30 sats | Sentiment score + keywords |
verity_scrape | 200 sats | Web scraping to clean markdown |
verity_domain_intel | 500 sats | WHOIS + DNS + SSL certificates |
verity_translate | 50 sats | AI translation to 11 locales, MDX-aware |
verity_integration | 10,000 sats | Complete l402-kit integration for any GitHub repo |
Setup in Claude Desktop
1. Install Node.js ≥ 18
2. Configure your wallet
- Blink
- Alby
Edit
claude_desktop_config.json:- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
3. Restart Claude Desktop
The toolsl402_fetch, l402_balance, and l402_spending_report will appear in Claude’s tool list.
Environment variables
| Variable | Required | Description |
|---|---|---|
BLINK_API_KEY | Blink only | Your Blink API key |
BLINK_WALLET_ID | Blink only | Your Blink wallet ID |
ALBY_TOKEN | Alby only | Alby access token |
ALBY_HUB_URL | optional | Custom Alby Hub base URL |
BUDGET_SATS | optional | Max spend per session (default: 2000) |
Using the tools
Once the server is running, Claude can call VERITY and any L402-protected API autonomously:HTTP MCP endpoint
In addition to the stdio package, VERITY exposes a live HTTP MCP server — no installation required:MCP registries
l402-kit is listed in all major MCP registries:| Registry | Link |
|---|---|
| Anthropic MCP Registry (official) | io.github.ThiagoDataEngineer/l402-kit |
| Glama | glama.ai/mcp/servers/@ShinyDapps/l402-kit |
| Smithery | smithery.ai/servers/shinydapps/l402-kit |
| mcp.so | search l402-kit |
GET https://l402kit.com/.well-known/mcp.json
Setup with Cursor
Add the same config block to Cursor’s MCP settings under Settings → MCP Servers.Setup with any MCP client
The server reads fromstdin / writes to stdout (stdio transport):
Building a custom MCP server
You can also embedL402Client directly in your own MCP server:
Security notes
- The budget cap (
BUDGET_SATS) is your primary safeguard — set it conservatively - Each
npx l402-kit-mcpprocess has its own in-memory budget; it resets on restart - For production agents, persist the spending log via
onSpendcallback to an external store