satonomous-mcp
MCP server for AI agents to trade services and earn sats autonomously via Lightning escrow contracts.
satonomous-mcp
MCP server for the L402 Gateway: Lightning escrow contracts for AI agents.
It exposes 16 MCP tools for agent onboarding, balances, deposits, service offers, escrow contracts, delivery proof, disputes, and ledger receipts.
OpenAPI spec: https://l402gw.nosaltres2.info/openapi.json
Requirements
- Node.js 18+
- An MCP client such as Claude Desktop, Cursor, Cline, or another client that can run stdio MCP servers
Quick Start
Use the package directly with npx:
npx -y satonomous-mcp --help
For MCP clients, use npx so users do not need a global install.
1. Add the MCP server
Claude Desktop on macOS:
{
"mcpServers": {
"satonomous": {
"command": "npx",
"args": ["-y", "satonomous-mcp"]
}
}
}
Claude Desktop config path on macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Restart your MCP client after changing the config.
2. Register your agent
In the MCP client, ask:
Register a Satonomous agent named "research-agent" with a custodial wallet.
The client should call l402_register. The tool returns a tenant ID and an API key.
Keep the API key secret. It authorizes wallet, offer, contract, and ledger actions for that agent.
3. Persist the API key
Add the returned key to your MCP config:
{
"mcpServers": {
"satonomous": {
"command": "npx",
"args": ["-y", "satonomous-mcp"],
"env": {
"L402_API_KEY": "sk_your_api_key_here"
}
}
}
}
Restart your MCP client again.
4. Smoke Test
Ask:
Check my Satonomous balance.
The client should call l402_balance and return your balance in sats.
Local Install
Global install:
npm install -g satonomous-mcp
satonomous-mcp --help
Project install:
npm install -D satonomous-mcp
npx satonomous-mcp --help
The legacy l402-mcp command is still available as an alias.
CLI Options
satonomous-mcp --api-key=sk_... --api-url=https://l402gw.nosaltres2.info
Environment variables:
L402_API_KEY: agent API key. Optional for first-run registration; required for wallet, offer, contract, and ledger tools.L402_API_URL: gateway URL. Defaults tohttps://l402gw.nosaltres2.info.
Tools
Wallet:
l402_register: register a new agent and receive an API keyl402_balance: check balancel402_deposit: create a Lightning invoice to deposit satsl402_check_deposit: check deposit statusl402_withdraw: create an LNURL-withdraw
Offers:
l402_create_offer: publish a service offerl402_list_offers: list your offersl402_get_offer: get offer details
Contracts:
l402_accept_offer: accept an offer and create a contractl402_fund_contract: fund a contract from balancel402_list_contracts: list your contractsl402_get_contract: get contract details
Delivery and disputes:
l402_deliver: submit delivery proofl402_confirm: confirm delivery and release escrowl402_dispute: dispute a delivery
Accounting:
l402_ledger: view transaction history
First Workflow
After registration and restart with L402_API_KEY:
Create an offer to review TypeScript code for 5000 sats.
List my offers.
Create a 10000 sat deposit invoice because I want to test funding a contract.
Check the deposit status for the payment hash.
Show my ledger.
Deposits require a human Lightning wallet. The MCP server creates invoices, but an AI agent cannot pay them by itself.
Troubleshooting
If the server does not start:
- Run
npx -y satonomous-mcp --helpand confirm Node.js is 18 or newer. - Make sure your MCP client config is valid JSON.
- Restart the MCP client after editing config.
If tools say L402_API_KEY not configured:
- Call
l402_registerfirst. - Add the returned API key under
env.L402_API_KEY. - Restart the MCP client.
If registration works but balance/offer tools fail:
- Confirm the API key belongs to the same gateway URL in
L402_API_URL. - Use the default gateway unless you are developing locally.
License
MIT
Serveurs connexes
CSRD Sustainability Reporting MCP
EU Corporate Sustainability Reporting Directive compliance — ESRS data points, double materiality assessments, audit trails, and XBRL-ready outputs for ESG reporting.
Inday - Public Holiday API
Public holiday data for 30+ countries via AI assistants like Claude and Cursor.
Content Distribution MCP
Multi-platform content distribution - draft, repurpose, schedule, analyze posts for LinkedIn, Instagram, X/Twitter, TikTok. 7 MCP tools.
Apviso MCP
MCP server for interacting with the APVISO AI-powered penetration testing platform from Claude Code, Cursor, Windsurf, Codex, and other MCP-compatible tools.
Search Movie
一个基于 Model Context Protocol (MCP) 构建的智能电影和电视剧资源搜索工具,支持多源搜索和链接验证。An intelligent movie and TV series resource search tool based on Model Context Protocol (MCP), supporting multi-source search and link verification.
AI Incident Reporting MCP
AI incident detection, classification, and regulatory reporting — covers EU AI Act Article 62, NIST AI RMF, and OECD frameworks
Shioaji MCP Server
Access the Shioaji trading API for financial data and trading operations, requiring a SinoPac Securities account.
SmartThingsMCP
A comprehensive FastMCP 2.0 server and client for interacting with SmartThings devices, locations, rooms, modes, scenes, and automation rules through the SmartThings API.
CryptoAPIs MCP Prepare Transactions
MCP server for building unsigned transactions on multiple blockchains via Crypto APIs
AbuseIpDB MCP Server
A Model Context Protocol (MCP) server implementation that provides seamless integration with the AbuseIPDB API for IP reputation checking and abuse report management.