invinoveritas
invinoveritas is a Lightning-paid AI reasoning and structured decision intelligence MCP server. It allows autonomous agents to get high-quality strategic analysis (/reason) and structured JSON decisions (/decision) by paying per request with Bitcoin Lightning using the L402 protocol.
README
⚡ invinoveritas
Lightning-paid reasoning and decision intelligence for autonomous agents
Pay-per-insight API using the L402 protocol (Bitcoin Lightning).
No subscriptions. No accounts. No KYC.
Built primarily for autonomous AI agents that need high-quality reasoning and structured decisions without increasing local compute costs.
Live API: https://invinoveritas.onrender.com
Why Agents Use invinoveritas
Autonomous agents call invinoveritas when they need:
- Strategic reasoning deeper than local models
- Structured, machine-readable decisions with confidence scores
- Deterministic cost per request (instead of unpredictable token usage)
- Cryptographically verifiable payments via Lightning
Agents pay only when confidence matters — with sats, atomically, without intermediaries.
Quick Start for Agents
Option 1 — MCP Server (Recommended)
Works seamlessly with Claude Desktop, Cursor, and any MCP-compatible agent.
pip install mcp requests lndgrpc pyln-client
python mcp_server.py
Then add it to your agent configuration.
Option 2 — CLI Client
python agent_client.py --endpoint reason --question "What are the biggest risks for Bitcoin in 2026?"
python agent_client.py \
--endpoint decision \
--goal "Grow capital safely" \
--context "Mostly BTC with some cash reserves" \
--question "Should I increase exposure in the next 30 days?"
Option 3 — Direct HTTP
# 1. Check price
curl https://invinoveritas.onrender.com/price/reason
# 2. Request reasoning (returns 402 + invoice)
curl -X POST https://invinoveritas.onrender.com/reason \
-H "Content-Type: application/json" \
-d '{"question": "Should I increase my BTC exposure right now?"}'
# 3. After paying the invoice, retry with credentials
curl -X POST https://invinoveritas.onrender.com/reason \
-H "Content-Type: application/json" \
-H "Authorization: L402 <payment_hash>:<preimage>" \
-d '{"question": "Should I increase my BTC exposure right now?"}'
Core Endpoints
| Endpoint | Purpose | Output Type | Typical Cost |
|---|---|---|---|
POST /reason |
Strategic reasoning | Natural language | ~500–700 sats |
POST /decision |
Structured decision intelligence | Clean JSON | ~1000–1200 sats |
Response Examples
/reason
{
"status": "success",
"type": "premium_reasoning",
"answer": "..."
}
/decision
{
"status": "success",
"type": "decision_intelligence",
"result": {
"decision": "Increase exposure slightly",
"confidence": 0.78,
"reasoning": "Market structure improving while risk remains moderate.",
"risk_level": "medium"
}
}
Payment Flow (L402)
- POST to
/reasonor/decision→ receive HTTP 402 with bolt11 invoice - Pay the invoice with any Lightning wallet or node
- Retry the same request with:
Authorization: L402 <payment_hash>:<preimage> - Receive the AI response
The MCP server and agent_client.py handle the full flow automatically.
For Autonomous Agents
The recommended way is using the included mcp_server.py.
It exposes reason and decision as native MCP tools. Agents simply call the tool — payment is handled transparently in the background.
Also included:
agent_client.py— simple CLI for scripts- Freqtrade strategy example using
/decisionas a confidence gate
Discovery Endpoints (Always Free)
| Endpoint | Purpose |
|---|---|
GET /health |
Service status and metadata |
GET /price/{endpoint} |
Current price in sats |
GET /tool |
Machine-readable tool definition |
GET /.well-known/ai-plugin.json |
Standard agent discovery |
GET /docs |
Interactive API docs |
Project Structure
invinoveritas/
├── app.py # Main API (deployed on Render)
├── ai.py # Reasoning and decision logic
├── config.py
├── node_bridge.py # Talks to Lightning bridge
├── bridge.py # LND bridge (runs on VPS)
├── mcp_server.py # MCP server for Claude, Cursor, etc.
├── agent_client.py # CLI client
├── examples/
│ └── invinoveritas_strategy.py
├── index.html
├── requirements.txt
└── README.md
Deployment
Main API — Render
Lightning Bridge — VPS running LND
Environment Variables (Render):
OPENAI_API_KEYNODE_URL(your Lightning bridge URL)
Philosophy
Most AI agents are forced into monthly subscriptions or unpredictable token costs.
invinoveritas offers a better model:
Atomic intelligence purchases using Bitcoin Lightning.
Agents pay only when the decision truly matters — with sats, cryptographically, and without intermediaries.
Built for the Bitcoin × AI future. ⚡
Quick Links
- GitHub: https://github.com/babyblueviper1/invinoveritas
- Live API: https://invinoveritas.onrender.com
- MCP Server:
mcp_server.py - Health:
/health
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。