# live-memory MCP server

> Provides a persistent, read-only codebase memory for Claude Code to reduce token costs and file re-reading.

- Repository: https://github.com/shofer-dev/claude-code-live-memory
- Page: https://hostedmcp.org/servers/shofer-dev/claude-code-live-memory
- Transport: remote
- Stars: 7
- License: Apache-2.0
- Latest version: 0.6.0

## Install

### Claude Code

```sh
claude mcp add claude-code-live-memory -- uvx shofer-live-memory
```

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

```json
{
  "mcpServers": {
    "claude-code-live-memory": {
      "command": "uvx",
      "args": [
        "shofer-live-memory"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "claude-code-live-memory": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "shofer-live-memory"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "claude-code-live-memory": {
      "command": "uvx",
      "args": [
        "shofer-live-memory"
      ]
    }
  }
}
```

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

```toml
[mcp_servers.claude-code-live-memory]
command = "uvx"
args = ["shofer-live-memory"]
```

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

```json
{
  "mcpServers": {
    "claude-code-live-memory": {
      "command": "uvx",
      "args": [
        "shofer-live-memory"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `LIVE_MEMORY_API_KEY` | no | no |  |
| `LIVE_MEMORY_PRELOAD_GLOBS` | no | no |  |
| `LIVE_MEMORY_PROVIDER` | no | no |  |

## Tools (2)

- `ask_live_memory_submit`
- `ask_live_memory_result`

## FAQ

### How does Live Memory learn about my codebase?

It learns passively through hooks that tee file content from your agent's reads and edits, as well as through an active 'ask_live_memory' tool.

### Is the memory tool safe to use with my files?

Yes, the tool is read-only and path-jailed, meaning it cannot edit, create, or run anything in your repository.

### Do I need an API key to use it with Claude?

If you have a Claude subscription, it works with zero configuration using your subscription OAuth token on Haiku.
