Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
STRIKE_API_KEYYesAPI key for Strike wallet integration, used to enable Lightning payments and other wallet features.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
access_l402_resource

Fetch a URL with automatic L402 payment handling. If the server returns a 402 Payment Required response, the invoice will be automatically paid and the request retried.

pay_l402_challenge

Manually pay an L402 or MPP invoice and receive the authorization token. Use this if you need to handle the L402/MPP flow yourself. Omit macaroon for MPP (Machine Payments Protocol) mode.

check_wallet_balance

Check the connected Lightning wallet balance via NWC.

get_payment_history

List recent L402 payments made during this session.

configure_budget

Set spending limits for the session.

pay_invoice

Pay a Lightning invoice directly and get the preimage as proof of payment. Use this to pay any BOLT11 Lightning invoice without L402 protocol overhead.

create_invoice

Create a Lightning invoice to receive a payment. Returns a BOLT11 invoice string to share with the payer.

check_invoice_status

Check if a Lightning invoice has been paid. Use the invoice ID from create_invoice.

get_all_balances

Get all currency balances from your wallet (USD, BTC, etc.). Most useful with Strike wallet which supports multiple currencies.

get_btc_price

Get the current Bitcoin price in USD. Only available with Strike wallet.

exchange_currency

Exchange currency within your wallet (USD to BTC or BTC to USD). Currently only available with Strike wallet.

send_onchain

Send an on-chain Bitcoin payment to a Bitcoin address. Currently only available with Strike wallet.

get_budget_status

View current budget status and spending limits (read-only). Edit ~/.lightning-enable/config.json to change limits.

create_l402_challenge

Create an L402 payment challenge to charge another agent or user for accessing a resource. Returns a Lightning invoice and macaroon. The payer must pay the invoice and present the L402 token (macaroon:preimage) back to you for verification. Requires LIGHTNING_ENABLE_API_KEY with an Agentic Commerce subscription.

verify_l402_payment

Verify an L402 token (macaroon + preimage) to confirm payment was made. Use this after receiving an L402 token from a payer to validate they paid before granting access to the resource. Requires LIGHTNING_ENABLE_API_KEY with an Agentic Commerce subscription.

confirm_payment

Confirm a pending payment using the nonce code from a previous payment request. Call this after a payment tool returns requiresConfirmation=true with a nonce.

discover_api

Discover L402-enabled APIs. Use 'query' to search the registry for available APIs by keyword, or use 'url' to fetch a specific API's manifest with full endpoint details and pricing. Use 'category' to browse by category. With budget_aware=true, shows how many calls you can afford.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/refined-element/lightning-enable-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server