# In Memoria

> In Memoria is an MCP server. Persistent codebase intelligence that gives AI assistants memory across sessions. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **MCP Registry name:** me.pi22by7/in-memoria
- **Listing updated:** 2026-11-13

## About

Persistent codebase intelligence that gives AI assistants memory across sessions

## Install

### Claude Code (Terminal)

```sh
claude mcp add in-memoria --env OPENAI_API_KEY='<OPENAI_API_KEY>' -- npx -y in-memoria
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "in-memoria": {
      "command": "npx",
      "args": [
        "-y",
        "in-memoria"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "in-memoria": {
      "command": "npx",
      "args": [
        "-y",
        "in-memoria"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "in-memoria": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "in-memoria"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "in-memoria": {
      "command": "npx",
      "args": [
        "-y",
        "in-memoria"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "in-memoria": {
      "command": "npx",
      "args": [
        "-y",
        "in-memoria"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>"
      }
    }
  }
}
```

## FAQ

### How do I add In Memoria to Claude Code?

Run this command in your terminal: claude mcp add in-memoria --env OPENAI_API_KEY='<OPENAI_API_KEY>' -- npx -y in-memoria

---
Source: https://ai-powered.com/mcp/in-memoria-2
