Blink MCP Server
OfficialClick on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Blink MCP Serverwhat's my Bitcoin wallet balance?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Blink MCP Server
A Model Context Protocol (MCP) server that provides AI assistants with access to the Blink Bitcoin and Lightning Network API.
Features
Lightning Network: Create and pay invoices, send to Lightning addresses
On-Chain Bitcoin: Generate addresses, send transactions, estimate fees
Stablesats (USD): Full support for USD-denominated wallets
Intraledger Transfers: Free instant transfers between Blink users
Webhooks: Register callbacks for payment notifications
Real-time Subscriptions: Monitor invoice status and account updates
Price Data: Get real-time and historical Bitcoin prices
L402 Consumer: Discover, pay for, and cache tokens for L402-gated APIs
L402 Producer: Create Lightning paywalls and verify payment tokens
L402 Discovery: Search l402.directory and 402index.io for paid APIs
Related MCP server: RGB Lightning Network MCP Server
Prerequisites
Node.js 18+
A Blink wallet account (dashboard.blink.sv)
A Blink API key
Installation
From Source
git clone https://github.com/yourusername/blink-mcp.git
cd blink-mcp
npm install
npm run buildGetting an API Key
Log in to your Blink wallet at dashboard.blink.sv
Go to Settings > API Keys
Click Create API Key
Select the permissions you need:
Read: View balances, transactions, and account info
Receive: Create invoices and addresses to receive payments
Write: Send payments and modify account settings
Copy the generated API key
Configuration
Set the following environment variables:
# Required: Your Blink API key
export BLINK_API_KEY=blink_xxxxxxxxxxxxx
# Optional: Network to use (default: mainnet)
export BLINK_NETWORK=mainnet # or 'staging' for testnetUsage with Claude Desktop
Add to your Claude Desktop configuration (~/.config/claude/claude_desktop_config.json on Linux/Mac or %APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"blink": {
"command": "node",
"args": ["/path/to/blink-mcp/dist/index.js"],
"env": {
"BLINK_API_KEY": "your_api_key_here"
}
}
}
}Or if installed globally via npm:
{
"mcpServers": {
"blink": {
"command": "blink-mcp",
"env": {
"BLINK_API_KEY": "your_api_key_here"
}
}
}
}Usage with Other MCP Clients
The server uses stdio transport. Run it with:
BLINK_API_KEY=your_key node dist/index.jsAvailable Tools
Wallet & Account (17 tools)
Tool | Description |
| Get current user account information |
| List all wallets with balances |
| Get balance of a specific wallet |
| Get transaction history (paginated) |
| Get specific transaction details |
| View withdrawal and transfer limits |
| Set default wallet (BTC or USD) |
| Set display currency preference |
| Get current Bitcoin price |
| Get historical price data |
| Convert between fiat and Bitcoin |
| List supported currencies |
| Find wallet by Blink username |
| Check username availability |
| Set/update your username |
| View API key permissions |
| Get Lightning node info |
Lightning Network (12 tools)
Tool | Description |
| Create BTC Lightning invoice |
| Create USD-denominated invoice |
| Create open (any amount) invoice |
| Cancel unpaid invoice |
| Check invoice status by hash |
| Check status by bolt11 |
| Pay a Lightning invoice |
| Pay open invoice with amount |
| Send to Lightning address |
| Pay via LNURL |
| Estimate payment fee |
| Estimate fee for open invoice |
On-Chain Bitcoin (7 tools)
Tool | Description |
| Generate new receiving address |
| Get current address |
| Send BTC on-chain |
| Sweep entire balance |
| Send from USD wallet on-chain |
| Estimate BTC transaction fee |
| Estimate USD wallet fee |
Intraledger (Blink-to-Blink) (3 tools)
Tool | Description |
| Send BTC to wallet ID (free, instant) |
| Send USD to wallet ID |
| Send to Blink username |
Webhooks & Subscriptions (9 tools)
Tool | Description |
| List registered webhooks |
| Register webhook endpoint |
| Remove webhook |
| Subscribe to invoice updates |
| Subscribe by payment hash |
| Subscribe to all account events |
| Subscribe to price changes |
| List active subscriptions |
| Cancel a subscription |
| Cancel all subscriptions |
L402 Protocol (6 tools)
Tool | Description |
| Probe a URL for L402 payment requirements (no payment) |
| Access an L402-protected URL, paying automatically via Blink |
| Manage the L402 token cache (~/.blink/l402-tokens.json) |
| Create an L402 payment challenge (invoice + signed macaroon) |
| Verify an L402 payment token (preimage + HMAC signature + caveats) |
| Search L402 service directories (l402.directory or 402index.io) |
Example Conversations
Check Balance
User: What's my Bitcoin balance?
Assistant: [Uses get_wallets tool]
Your BTC wallet has 50,000 sats and your USD wallet has $12.50.Create Invoice
User: Create an invoice for 10,000 sats
Assistant: [Uses create_invoice tool]
Here's your Lightning invoice for 10,000 sats:
lnbc100u1p...Send Payment
User: Send 1000 sats to user@blink.sv
Assistant: [Uses pay_lightning_address tool]
Payment of 1,000 sats sent successfully to user@blink.sv!Monitor Invoice
User: Let me know when invoice lnbc... is paid
Assistant: [Uses subscribe_invoice_status tool]
I'm now monitoring the invoice. I'll notify you when it's paid.Development
# Install dependencies
npm install
# Build TypeScript
npm run build
# Run in development mode
npm run dev
# Type checking
npm run typecheck
# Linting
npm run lintArchitecture
src/
├── index.ts # MCP server entry point
├── client.ts # Blink GraphQL client
├── types.ts # TypeScript type definitions
├── graphql/
│ └── operations.ts # GraphQL queries, mutations, subscriptions
└── tools/
├── wallet.ts # Wallet and account tools
├── lightning.ts # Lightning Network tools
├── onchain.ts # On-chain Bitcoin tools
├── intraledger.ts # Blink-to-Blink transfer tools
├── webhooks.ts # Webhook and subscription tools
└── l402.ts # L402 consumer, producer, and discovery toolsAPI Reference
This MCP server wraps the Blink GraphQL API. For detailed API documentation, visit:
Blink Agent Playbook: Canonical AI agent API reference — order of operations, safety constraints, and verification checklist.
llms.txt: Machine-readable discovery metadata for AI agents.
Security Considerations
API Key Security: Never commit your API key to version control
Permission Scoping: Use the minimum required permissions for your use case
Write Operations: Be cautious with write permissions as they allow sending funds
Environment Variables: Store API keys in environment variables, not in config files
Troubleshooting
"BLINK_API_KEY environment variable is required"
Make sure you've set the BLINK_API_KEY environment variable with your API key.
"GraphQL Error: Not authorized"
Your API key may not have the required permissions. Check your key's scopes in the Blink wallet settings.
WebSocket connection issues
Real-time subscriptions require a stable connection. Check your network and firewall settings.
License
MIT
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Links
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/blinkbitcoin/blink-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server