Yggdrasil
Local-first shared memory for AI coding agents, installed as a background service
Yggdrasil is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, macOS
- Runs
- Locally
- Version
- 0.18.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add yggdrasil --env YGG_ENGINE_TOKEN='<YGG_ENGINE_TOKEN>' -- uvx yggdrasil-memoryAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"yggdrasil": {
"command": "uvx",
"args": [
"yggdrasil-memory"
],
"env": {
"YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add yggdrasil --env YGG_ENGINE_TOKEN='<YGG_ENGINE_TOKEN>' -- uvx yggdrasil-memoryOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.yggdrasil]
command = "uvx"
args = ["yggdrasil-memory"]
env = { YGG_ENGINE_TOKEN = "<YGG_ENGINE_TOKEN>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"yggdrasil": {
"command": "uvx",
"args": [
"yggdrasil-memory"
],
"env": {
"YGG_ENGINE_TOKEN": "<YGG_ENGINE_TOKEN>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
YGG_ENGINE_URLBase URL of the Yggdrasil engine HTTP API.YGG_ENGINE_TOKENBearer token for authenticating to the Yggdrasil engine (from ~/.yggdrasil/token after `ygg install`).
About Yggdrasil
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.
Tools this server provides (3)
Taken from the project documentation; the running server may differ.
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_searchName suggests: reads
- Searches stored memories
- ygg_recall
- Recalls relevant memories
- ygg_remember
- Saves a memory
What it does
- 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
Pricing
Open source
Free, local-first; open-source package
Yggdrasil 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.



