# Engram

> Engram is an open-source MCP server. Intelligent agent memory with automatic extraction, consolidation, and bi-temporal recall. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/tstockham96/engram
- **MCP Registry name:** io.github.tstockham96/engram
- **Listing updated:** 2026-11-13

## About

Intelligent agent memory with automatic extraction, consolidation, and bi-temporal recall.

## Install

### Claude Code (Terminal)

```sh
claude mcp add engram --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- npx -y engram-sdk
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "engram": {
      "command": "npx",
      "args": [
        "-y",
        "engram-sdk"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "engram": {
      "command": "npx",
      "args": [
        "-y",
        "engram-sdk"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "engram": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "engram-sdk"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "engram": {
      "command": "npx",
      "args": [
        "-y",
        "engram-sdk"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "engram": {
      "command": "npx",
      "args": [
        "-y",
        "engram-sdk"
      ],
      "env": {
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Engram free?

Yes. Engram is open source, so you can use and self-host it for free.

### How do I add Engram to Claude Code?

Run this command in your terminal: claude mcp add engram --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- npx -y engram-sdk

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/engram-8
