Lightning Memory MCP server
io.github.singularityjason/lightning-memory·v0.4.1·9 starsDecentralized agent memory for the Lightning economy. Nostr identity, L402 payments.
9 stars21 downloads/wk
Reviews
Write oneNobody has reviewed Lightning Memory yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Lightning Memory tools (9)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
ln_anomaly_checkCheck if a proposed payment amount is normal for a vendor.
ln_budget_statusCheck L402 gateway earnings and payment stats.
ln_spending_summaryGet a spending summary for budget awareness.
ln_vendor_reputationCheck a vendor's reputation based on transaction history.
memory_exportExport memories as Nostr NIP-78 events.
memory_listList memories, optionally filtered by type and time range.
memory_querySearch memories by relevance. Returns the most relevant matches.
memory_storeStore a memory for later retrieval.
memory_syncSync memories with Nostr relays.
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan17 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 187 days ago4/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Lightning Memory compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 75/100
- higher than 45% of 4,460 AI and agents servers
- Tools
- 9
- the typical AI and agents server has 6
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 9
- more than 83% of 2,711 AI and agents servers
- Downloads a week
- 21
- more than 7% of 1,538 AI and agents servers with a package
What its tools let an agent do: 9 read
Install Lightning Memory in Claude Code, Cursor or VS Code
claude mcp add lightning-memory -- uvx lightning-memory
What the publisher says
From the Lightning Memory repository's README, as published. We do not edit it. Read it on GitHub
Lightning Memory
Persistent memory for AI agents in the Lightning economy.
The Problem
AI agents spend sats over Lightning via L402 — but they can't remember what they bought. Every session starts from zero. Every vendor is a stranger. Every price is accepted at face value. An agent that paid 500 sats yesterday doesn't know if today's 5,000 sat invoice is a price spike or normal.
The Solution
L1: Bitcoin — settles
L2: Lightning — pays
L3: Lightning Memory — remembersLightning Memory gives agents persistent memory, vendor intelligence, and payment safety gates. Agents learn from their spending history, track vendor reputations, detect price anomalies, enforce budgets, and share trust signals with other agents.
Interactive Demo — watch an agent learn, get rugged, and route around bad actors.
Building the Agent Economy — trust, budgets, compliance, and the memory marketplace.
Who Is This For
- Agents making L402 payments that need vendor reputation and spending discipline
- Developers building autonomous agents on Bitcoin/Lightning
- Anyone running an MCP-compatible AI agent (Claude, GPT, or any MCP client)
Quick Start
pip install lightning-memory
lightning-memory # starts MCP serverConfigure in Claude Code
{
"mcpServers": {
"lightning-memory": {
"command": "lightning-memory"
}
}
}Configure in Claude Desktop
{
"mcpServers": {
"lightning-memory": {
"command": "python",
"args": ["-m", "lightning_memory.server"]
}
}
}How It Compares
Tools (22)
Memory
memory_store(
content="Paid 500 sats to bitrefill.com for a $5 Amazon gift card via L402.",
type="transaction",
metadata='{"vendor": "bitrefill.com", "amount_sats": 500}'
)
memory_query(query="bitrefill payment history", limit=5)
# → recency-weighted results with dedup and contradiction alertsLightning Intelligence
ln_vendor_reputation(vendor="bitrefill.com")Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Lightning Memory: common questions
- Is Lightning Memory MCP server safe?
- Mostly: it is graded B (75/100). Read the Lightning Memory safety report
- How do I install Lightning Memory?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Lightning Memory need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Lightning Memory maintained?
- The last commit was 224 days ago (2026-03-25). The latest release is v0.4.1.
- What can I use instead of Lightning Memory?
- Servers from other publishers that do the same job: Basic Memory MCP server, IWE (iwe.md) MCP server and Memanto MCP server.
- How does Lightning Memory compare with other AI and agents MCP servers?
- safety score 75/100 (higher than 45% of 4,460 AI and agents servers); tools 9 (the typical AI and agents server has 6); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Lightning Memory
Same job from other publishers: the closest match first, then the best rated.
- Basic MemoryLocal-first knowledge management with bi-directional LLM sync via Markdown files.not reviewedWidely usedB
- IWE (iwe.md)Markdown knowledge base as agent memory. Runs against the notes directory it is started in.not reviewedEstablishedA
- MemantoMCP server for Memanto - persistent semantic memory for any MCP-compatible agentnot reviewedEstablishedA
- Mnemoverse MemoryHosted agent memory that learns from outcomes, with shared rooms. No key: mcp.mnemoverse.com/mcpnot reviewedEstablishedA
- Agent RecallCorrection-first agent memory. Precision KPI tracks if agents heed warnings. 5 layers, local-only.not reviewedEstablishedA