# Yggdrasil

> Yggdrasil is an open-source MCP server for knowledge and memory. Local-first shared memory for AI coding agents, installed as a background service. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, macOS, Linux
- **Repository:** https://github.com/vondervuflya/yggdrasil
- **MCP Registry name:** io.github.VonderVuflya/yggdrasil
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-11-23

## About

Yggdrasil is a small daemon of roughly 21 MB of RAM that stores decisions, lessons and project status in SQLite with full-text search, so a new Claude Code, Codex or OpenCode session starts with context instead of a blank slate. At session start it injects identity, project status and open follow-ups, about 300 tokens, and an optional per-prompt hook recalls memories relevant to each request.

The default tier needs no models. The README reports recall@1 of 0.77 for keyword search, rising to 0.94 with an optional local embedding model, and an optional small local model can propose deduplication in the background. Governance queues duplicates and conflicts for review and archives rather than deleting. Memories are also plain Markdown notes compatible with Obsidian.

It ships through uvx, npm, pipx, pip, Homebrew and a Claude Desktop extension. The README states nothing leaves your machine and there is no account or telemetry. Existing history can be seeded from transcripts, vaults and CLAUDE.md files, and memories can be imported from the MCP memory server.

## Features

- **Persistent memory:** Keeps decisions and lessons across sessions and tools.
- **Cross-project recall:** Surfaces solutions from other projects.
- **Auto-injected context:** Adds status and follow-ups at session start.
- **Optional local models:** Adds semantic search and background merging through Ollama, LM Studio or llama.cpp.
- **Non-destructive governance:** Queues duplicates for review and archives instead of deleting.
- **History seeding:** Imports from transcripts, Obsidian vaults and CLAUDE.md files.

## Good for

- Stop re-explaining a project to each new session
- Reuse a past fix in another project
- Share one memory between Claude Code and Codex
- Move a store over from another MCP memory tool

## Install

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

```sh
claude mcp add yggdrasil --env YGG_ENGINE_TOKEN='<YGG_ENGINE_TOKEN>' -- uvx yggdrasil-memory
```

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": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "yggdrasil": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

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 yggdrasil --env YGG_ENGINE_TOKEN='<YGG_ENGINE_TOKEN>' -- uvx yggdrasil-memory
```

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

```toml
[mcp_servers.yggdrasil]
command = "uvx"
args = ["yggdrasil-memory"]
env = { YGG_ENGINE_TOKEN = "<YGG_ENGINE_TOKEN>" }
```

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

```json
{
  "mcpServers": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e YGG_ENGINE_TOKEN='<YGG_ENGINE_TOKEN>' yggdrasil uvx -- yggdrasil-memory

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

```json
{
  "mcpServers": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

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": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

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": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

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

```json
{
  "mcpServers": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

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": {
    "yggdrasil": {
      "command": "uvx",
      "args": [
        "yggdrasil-memory"
      ],
      "env": {
        "YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 3 tools reads data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `ygg_search` (name suggests: reads): Searches stored memories
- `ygg_recall`: Recalls relevant memories
- `ygg_remember`: Saves a memory

## FAQ

### Does Yggdrasil send data anywhere?

The README says no: memory stays on your machine with no cloud, account or telemetry.

### Do I need a local model?

No. The default tier runs on SQLite and FTS5 with zero dependencies; models are optional.

### Which agents work?

Claude Code, Codex and OpenCode are registered automatically, along with any MCP host.

### Does Yggdrasil delete memories?

No. Governance archives rather than deletes.

### Is Yggdrasil free?

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

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

Run this command in your terminal: claude mcp add yggdrasil --env YGG_ENGINE_TOKEN='<YGG_ENGINE_TOKEN>' -- uvx yggdrasil-memory

### What are the best alternatives to Yggdrasil?

The closest alternatives to Yggdrasil are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

## Where this comes from

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

## 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.
- [Myco: Agent-First Cognitive Substrate](https://ai-powered.com/mcp/myco-agent-first-cognitive-substrate): Myco: Agent-First Cognitive Substrate is an open-source MCP server for knowledge and memory.
- [Source Library](https://ai-powered.com/mcp/source-library): Source Library is an open-source MCP server for knowledge and memory.
- [keepplain-plugin](https://ai-powered.com/mcp/keepplain-plugin): keepplain-plugin is a freemium MCP server for knowledge and memory.
- [Second Brain](https://ai-powered.com/mcp/second-brain-2): Second Brain is a freemium MCP server for knowledge and memory.

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