Lightningprox
БесплатноПоддерживаетсяDescription: Pay-per-request access to Claude and GPT models via Bitcoin Lightning using prepaid spend tokens. No accounts, no API keys — just sats.
Описание
Description: Pay-per-request access to Claude and GPT models via Bitcoin Lightning using prepaid spend tokens. No accounts, no API keys — just sats.
README
MCP server for LightningProx. It gives Claude Desktop, Cursor, Claude Code and other MCP clients pay-per-request AI paid in Bitcoin Lightning. No account and no provider API keys: you load a prepaid spend token, and each request is deducted from its balance in sats.
- 24 models across 5 providers: Anthropic (Claude 5.5 and 4.x), OpenAI (GPT-6, GPT-4.1, GPT-4o), Google (Gemini 4 Argon, 3.8 Flash, 2.5), Together.ai (DeepSeek V4, gpt-oss-120b, GLM 5.3, MiniMax M3.1) and Mistral. The live list comes from the
list_modelstool. - Tool / function calling passthrough, for every model except
gpt-6-astra. - Failed or empty calls are never charged. Requests are priced from the actual prompt size. Top-ups last 30 days.
- Pure Node.js (18 or newer), with no native binaries. It runs on Linux, macOS and Windows.
Setup
You need Node.js 18 or newer. npx downloads and runs the server.
Claude Desktop
Edit claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"lightningprox": {
"command": "npx",
"args": ["-y", "lightningprox-mcp"],
"env": {
"LIGHTNINGPROX_SPEND_TOKEN": "lnpx_your_token_here"
}
}
}
}
Restart Claude Desktop afterwards.
Cursor
Add the same block to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project):
{
"mcpServers": {
"lightningprox": {
"command": "npx",
"args": ["-y", "lightningprox-mcp"],
"env": { "LIGHTNINGPROX_SPEND_TOKEN": "lnpx_your_token_here" }
}
}
}
Claude Code
claude mcp add lightningprox -e LIGHTNINGPROX_SPEND_TOKEN=lnpx_your_token_here -- npx -y lightningprox-mcp
The token is optional. Without one, ask_ai returns a Lightning invoice for each request, and create_topup / get_token let you buy a token from inside the chat.
Environment variables
| Variable | Required | Default | Purpose |
|---|---|---|---|
LIGHTNINGPROX_SPEND_TOKEN |
no | none | Your lnpx_... spend token, sent as X-Spend-Token. The server never prints it. |
LIGHTNINGPROX_URL |
no | https://lightningprox.com |
API base URL |
Tools
| Tool | What it does |
|---|---|
ask_ai |
Sends prompt (or an Anthropic-format messages array) to model, with optional system, max_tokens (default 1024), tools and tool_choice. Calls POST /v1/messages and returns the reply text, any tool_use blocks, the model used, X-Model-Remapped when a retired ID was mapped, and your remaining balance. Without a token, it returns the request's invoice (amount, BOLT11 and macaroon). Pay it, then call again with the same arguments plus l402: "<macaroon>:<preimage>". |
list_models |
Lists the served models: ID, provider and tool support (GET /v1/models), plus per-token prices from /api/capabilities. |
check_balance |
Shows the configured token's balance, expiry and status (GET /v1/balance). |
create_topup |
Creates a Lightning invoice for 10 to 100,000 sats (POST /v1/topup) and returns the BOLT11 invoice and its charge_id. |
get_token |
After you pay, exchanges the charge_id for your lnpx_ spend token (POST /v1/tokens). It is safe to repeat and returns the same token. Tokens last 30 days. |
Example: ask Claude "Use ask_ai with model claude-haiku-5-5 to summarize this paragraph", or "list the LightningProx models that support tools".
Buying a spend token without leaving the chat
create_topupwithamount_sats: 1000returns an invoice and acharge_id.- Pay the invoice with any Lightning wallet.
get_tokenwith thatcharge_idreturnslnpx_.... Put it in your config asLIGHTNINGPROX_SPEND_TOKENand restart the client.
You can also buy one in the browser at lightningprox.com/topup.
Errors
Errors come back as plain messages that say what to do next:
- Unknown or retired model: the message points you to
list_modelsor to the replacement model. - Prompt too long (
context_length_exceeded) or model without tool support (tools_not_supported). - Balance too low: the message tells you how to top up.
- Rate limits: the message includes the retry time.
- Provider outages (
provider_unavailable): these are never charged.
Nothing is charged when a request is rejected.
Development
npm install
npm test # unit tests with a mocked HTTP layer
npm run smoke # live checks against lightningprox.com, free endpoints only
node bin/lightningprox-mcp.js # run the server on stdio
Links
- Gateway: lightningprox.com
- API docs: lightningprox.com/docs
- AIProx agent registry: aiprox.dev
Built by LPX Digital Group LLC. MIT licensed.
Установить Lightningprox в Claude Desktop, Claude Code, Cursor
unyly install lightningprox-mcpСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add lightningprox-mcp -- npx -y lightningprox-mcpПошаговые гайды: как установить Lightningprox
FAQ
Lightningprox MCP бесплатный?
Да, Lightningprox MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Lightningprox?
Нет, Lightningprox работает без API-ключей и переменных окружения.
Lightningprox — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Lightningprox в Claude Desktop, Claude Code или Cursor?
Открой Lightningprox на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Изменения
Версии и запрашиваемые доступы со временем.
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
- Новая версия опубликована
Похожие MCP
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
автор: GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
автор: paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
автор: S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
Compare Lightningprox with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
