# elefante

An agent memory system where each memory is a file in a Git repository. Works across all platforms, stays in your control, and leaves an auditable trail.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 15
- Author: amenophis1er
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/amenophis1er/elefante
- Updated: 2026-04-20
- HTML: https://affpapa.org/en/nevibecode/mcp/elefante

## What it does

elefante stores agent memory in a regular Git repository instead of a vendor's closed vault. Each memory is a Markdown file with YAML frontmatter—readable, editable, human-friendly. Changes become commits you can audit. The system detects your working directory's Git remote and automatically scopes memories: global preferences apply everywhere, project details stay local. When the MCP server starts, it reads and injects your top memories into the agent's system prompt, so the agent knows your context without searching. Four memory types (user, feedback, project, reference) enforce clear classification. You'll need Node.js and a Git repository where memories live.

One MCP server connects to all platforms: Claude Code, Cursor, GitHub Copilot, Codex, Windsurf, Cline, Zed. The agent gets seven tools to read, write, search, update, and sync memory.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add elefante -- npx -y elefante-mcp
```

### Codex

**Platform CLI**
```bash
codex mcp add elefante -- npx -y elefante-mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "elefante": {
            "command": "npx",
            "args": [
                "-y",
                "elefante-mcp"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "elefante": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "elefante-mcp"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add elefante npx -y elefante-mcp
```

## When to use it
- Store agent memory in editable files you own
- Review memory changes through git log history
- Share the same memory across Claude, Cursor, Copilot, and other platforms
- Auto-inject memories into the agent's system prompt
- Separate global preferences from project-specific context

## Example prompts
- Remember this project uses PostgreSQL 16 with TypeScript strict mode enabled everywhere
- Search my memories for database testing mistakes
- Update the staging URL memory to the new address

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
