# lightning-memory MCP server

> Provides persistent memory, vendor reputation tracking, and payment safety gates for AI agents operating in the Bitcoin Lightning economy.

- Repository: https://github.com/singularityjason/lightning-memory
- Page: https://hostedmcp.org/servers/singularityjason/lightning-memory
- Transport: stdio
- Stars: 9
- License: MIT
- Latest version: 0.4.1

## Install

### Claude Code

```sh
claude mcp add lightning-memory -- uvx lightning-memory
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "lightning-memory": {
      "command": "uvx",
      "args": [
        "lightning-memory"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "lightning-memory": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "lightning-memory"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"lightning-memory","type":"stdio","command":"uvx","args":["lightning-memory"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "lightning-memory": {
      "command": "uvx",
      "args": [
        "lightning-memory"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add lightning-memory -- uvx lightning-memory
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.lightning-memory]
command = "uvx"
args = ["lightning-memory"]
```

### Gemini CLI

```sh
gemini mcp add -s user lightning-memory uvx -- lightning-memory
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "lightning-memory": {
      "command": "uvx",
      "args": [
        "lightning-memory"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `PHOENIXD_PASSWORD` | no | no |  |

## Tools (6)

- `memory_store`
- `memory_query`
- `memory_list`
- `memory_edit`
- `memory_sync`
- `memory_export`

## FAQ

### What does Lightning Memory do for AI agents?

It provides persistent memory, vendor intelligence, and payment safety gates, allowing agents to learn from spending history and detect price anomalies.

### Can I use this with Claude?

Yes, it is MCP-compatible and can be configured in Claude Code or Claude Desktop.
