# Cognitive Ai Memory

> Cognitive Ai Memory is an open-source MCP server for knowledge and memory. Ebbinghaus-based persistent memory for Claude. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/sachitrafa/cognitive-ai-memory
- **MCP Registry name:** io.github.sachitrafa/cognitive-ai-memory
- **Categories:** knowledge and memory
- **Listing updated:** 2026-11-13

## About

Ebbinghaus-based persistent memory for Claude. Memories decay with time, strengthen on recall.

## Install

### Claude Code (Terminal)

```sh
claude mcp add cognitive-ai-memory --env DATABASE_URL='<DATABASE_URL>' -- docker run -i --rm -e DATABASE_URL ghcr.io/your-memory/cognitive-ai-memory:1.0.2
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "cognitive-ai-memory": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "ghcr.io/your-memory/cognitive-ai-memory:1.0.2"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "cognitive-ai-memory": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "ghcr.io/your-memory/cognitive-ai-memory:1.0.2"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "cognitive-ai-memory": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "ghcr.io/your-memory/cognitive-ai-memory:1.0.2"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "cognitive-ai-memory": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "ghcr.io/your-memory/cognitive-ai-memory:1.0.2"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "cognitive-ai-memory": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "DATABASE_URL",
        "ghcr.io/your-memory/cognitive-ai-memory:1.0.2"
      ],
      "env": {
        "DATABASE_URL": "<DATABASE_URL>"
      }
    }
  }
}
```

## FAQ

### Is Cognitive Ai Memory free?

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

### How do I add Cognitive Ai Memory to Claude Code?

Run this command in your terminal: claude mcp add cognitive-ai-memory --env DATABASE_URL='<DATABASE_URL>' -- docker run -i --rm -e DATABASE_URL ghcr.io/your-memory/cognitive-ai-memory:1.0.2

### What are the best alternatives to Cognitive Ai Memory?

The closest alternatives to Cognitive Ai Memory are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and note1.

## Alternatives

- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.
- [note1](https://ai-powered.com/mcp/note1): note1 is an MCP server for productivity.
- [MedXpert 图书馆连接器（通用版）](https://ai-powered.com/mcp/medxpert): MedXpert 图书馆连接器（通用版） is an open-source MCP server for knowledge and memory.
- [Context Nest](https://ai-powered.com/mcp/context-nest): Context Nest is a freemium MCP server for knowledge and memory.
- [Tulsa Ecosystem Map](https://ai-powered.com/mcp/tulsa-ecosystem-map): Tulsa Ecosystem Map is a free MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/cognitive-ai-memory
