# unixlamadev-spec/lightningprox-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/unixlamadev-spec/lightningprox-mcp  
**GitHub Stars:** 2  
**npm Downloads (last month):** 484  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/unixlamadev-spec-lightningprox-mcp

## Description
MCP server for LightningProx — pay-per-request AI access via Bitcoin Lightning. Supports vision/multimodal.

## Tools
Capabilities this server exposes over MCP:

- **ask_ai** — Send a prompt or a conversation to an AI model through LightningProx (24 models: Claude, GPT, Gemini, DeepSeek, Mistral and more), paid in sats from your spend token. Returns the reply text, any tool_use blocks, the model used and your remaining balance. Without a spend token it returns a Lightning invoice (L402) for this exact request.
- **list_models** — List the models LightningProx currently serves: ID, provider, whether it supports tool use, and the per-token price when available.
- **check_balance** — Check the balance (sats), expiry and status of the configured spend token (LIGHTNINGPROX_SPEND_TOKEN).
- **create_topup** — Create a Lightning invoice to buy a LightningProx spend token (10 to 100,000 sats). After paying it, call get_token with the returned charge_id. Tokens last 30 days.
- **get_token** — After paying a create_topup invoice, exchange its charge_id for the lnpx_ spend token. Safe to call again: it returns the same token.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "lightningprox-mcp": {
    "command": "npx",
    "args": ["-y","lightningprox-mcp"]
  }
}
```

## Documentation

## What unixlamadev-spec/lightningprox-mcp MCP server does

The unixlamadev-spec/lightningprox-mcp MCP server gives an MCP client access to LightningProx AI requests. Its main request tools are `ask_ai` for text prompts and `ask_ai_vision` for prompts that include an image URL. The selected model is passed as part of the request, so an agent can choose among the models exposed by the gateway.

LightningProx uses prepaid spend tokens. Instead of configuring separate provider credentials, the client uses a token whose balance is charged in satoshis for each request. The gateway supports OpenAI-compatible chat completions and Anthropic-style messages endpoints behind the service.

## How it works

A user first funds a spend token by paying a Bitcoin Lightning invoice. The token can be obtained through `get_invoice`, or by calling `ask_ai` without a token, according to the project documentation. Once funded, the token authorizes subsequent requests until its balance is exhausted.

The server can report available models with `list_models`, including their per-call pricing. `get_pricing` estimates the satoshi cost for a selected model and token count, while `check_balance` reports the remaining balance for a spend token. The gateway lists models from Anthropic, OpenAI, Together.ai, Mistral, and Google.

Vision requests use a publicly reachable image URL supplied to `ask_ai_vision`; the documented flow does not require base64 image data. The project also identifies LightningProx as providing `/v1/chat`, `/v1/messages`, `/v1/models`, `/v1/balance`, and `/v1/invoice` endpoints.

## Setup and configuration

Install and launch the unixlamadev-spec/lightningprox-mcp MCP server with:

```bash
npx lightningprox-mcp
```

For Claude Desktop, add an MCP entry whose command is `npx` and whose argument is `lightningprox-mcp`. The documented configuration files are under the Claude application support directory on macOS, Windows, and Linux. Claude Code can add the server with:

```bash
claude mcp add lightningprox -- npx lightningprox-mcp
```

No environment variables or provider API keys are specified in the README. Authentication is handled with the spend token sent as the `X-Spend-Token` header by the gateway request.

## Tools and capabilities

- `ask_ai`: Send a prompt to a selected model using a spend token.
- `ask_ai_vision`: Send a prompt with an image URL for multimodal analysis.
- `check_balance`: Read the remaining satoshi balance on a spend token.
- `list_models`: Retrieve available models and per-call pricing.
- `get_pricing`: Estimate cost from a model and token count.
- `get_invoice`: Create a Lightning invoice for topping up a spend token.

## Limitations and notes

Billing depends on Bitcoin Lightning payments and a prepaid token balance. Requests stop being funded when the token runs out, so agents may need balance checks or a new invoice. The README names Claude Desktop and Claude Code setup paths but does not provide client-specific configuration examples for other MCP clients.

_Full upstream README: https://allmcps.com/mcp/unixlamadev-spec-lightningprox-mcp/readme_

