Cursor IDE Integration
Give your Cursor AI assistant a Bitcoin wallet via Lightning Network.
Prerequisites
Before you begin, make sure you have:
- Cursor IDE installed (cursor.sh)
- Node.js 18+ installed
- A Lightning wallet to fund your account (Phoenix, Alby, Zeus, etc.)
Installation
Cursor stores MCP configuration in:
Add to your mcp.json:
Close and reopen Cursor to load the MCP server.
First-Time Setup
After restarting Cursor, ask the AI assistant:
Cursor will use the register_operator tool to create your account. Save the API key and recovery code!
Funding Your Account
Ask Cursor:
Pay the returned Lightning invoice with your wallet. Once paid, your balance is available.
Creating Agents
Create agents with spending limits:
Then fund the agent:
Making Payments
Switch to agent mode and make payments:
Access L402 APIs:
Troubleshooting
MCP server not loading
Make sure Node.js 18+ is installed and the npm global bin is in your PATH.
"No API key configured" error
Use register_operator first, then set_operator_key to activate the credentials.