# Memorix

> Memorix is an MCP server for knowledge and memory. Local-first shared project memory for coding agents across Claude Code, Codex and Cursor. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted, macOS, Linux, Windows
- **Website:** https://mem.rglens.com
- **Repository:** https://github.com/avids2/memorix
- **MCP Registry name:** io.github.AVIDS2/memorix
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

Memorix keeps memory under the Git project instead of inside one chat or tool. Memories are source-labelled, covering decisions, fixes, gotchas and session summaries, and a Reasoning Memory records why choices were made, with alternatives. Git Memory turns commits into searchable facts, and CodeGraph ties files, symbols and impact checks to source.

SQLite is the canonical store. Small projects use an in-process index, larger ones a persistent full-text index with an optional local semantic one, and no LLM key is needed. The task context command, for example memorix context with a task description, builds a bounded workset of facts, verification and next steps for the next session rather than replaying old conversations. A local dashboard shows memory sources, retention and health, and a bundled terminal agent called memcode shares the same memory.

Access is through MCP, CLI, hooks and SDK. Install it with npm install -g memorix and connect with memorix setup, for example --agent claude --global. The README lists many supported agents, including Claude Code, Codex, Cursor, Windsurf, Copilot, Gemini CLI and Kiro.

## Features

- **Shared project memory:** One memory pool per Git project across agents.
- **Git and reasoning memory:** Commits become facts; decisions keep their alternatives.
- **Task workset:** A bounded context brief for the next task.
- **CodeGraph:** Source-backed files, symbols and impact context.
- **Local dashboard:** Inspect sources, retention and health.
- **memcode terminal agent:** A bundled agent that uses the same memory.

## Good for

- Continue work in a new agent session
- Switch between Claude Code and Cursor without re-explaining
- Recall why an architecture choice was made
- Search facts derived from git commits
- Coordinate parallel agent tasks

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add memorix -- npx -y memorix
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "memorix": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add memorix -- npx -y memorix
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.memorix]
command = "npx"
args = ["-y", "memorix"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user memorix npx -- -y memorix

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "memorix": {
      "command": "npx",
      "args": [
        "-y",
        "memorix"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `memorix_project_context`: Returns a bounded task workset with start files, memory and verification.

## FAQ

### Does Memorix need an LLM key?

No. Local full-text retrieval works without one and providers are optional.

### Is Memorix only for Claude Code?

No. It works with the agents and MCP clients in its integration matrix.

### Does Memorix replay old conversations?

No. Context is bounded and shaped around the current task.

### How do I install Memorix?

npm install -g memorix, then memorix setup --agent claude --global.

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

Run this command in your terminal: claude mcp add memorix -- npx -y memorix

### What are the best alternatives to Memorix?

The closest alternatives to Memorix are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/memorix
