# Vault Cortex

> Vault Cortex is an MCP server for knowledge and memory. Docker-run MCP server giving agents search, memory and tasks over an Obsidian vault. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** Self-hosted, API
- **Repository:** https://github.com/aliasunder/vault-cortex
- **MCP Registry name:** io.github.aliasunder/vault-cortex
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory), [security](https://ai-powered.com/categories/security), [productivity](https://ai-powered.com/categories/productivity)
- **Listing updated:** 2026-11-23

## About

Obsidian does not need to be running: this server reads and writes the .md files on disk, with a headless sync keeping a remote copy current. It combines FTS5 keyword matching with vector similarity fused by reciprocal rank fusion, then reranks with a cross-encoder for intent-heavy queries. Embeddings and reranking can be turned off to leave keyword search only.

Memory is stored as dated, append-only entries in a vault folder, and topic recall returns the current take plus its history. Task tools understand Kanban lanes and both the Tasks plugin emoji and Dataview inline-field formats, and completing a recurring task creates the next one. Link tools list backlinks, outgoing links and orphans, and file tools read images, PDFs and canvases. Read-only mode hides every writing tool, and individual tools can be disabled.

A one-line CLI, npx vault-cortex init, sets up Docker locally. For phone or claude.ai access you deploy to Railway, Render or a VPS, secured with OAuth 2.1. The README puts hosting at roughly $20 to $30 a month on Railway and about $26 on Render.

## Features

- **Hybrid search:** Keyword matching and semantic similarity fused and reranked.
- **Structured memory:** Dated, append-only entries with topic recall and history.
- **Kanban-aware tasks:** Query and complete tasks, moving them between lanes.
- **Link graph:** Backlinks, outgoing links and orphan detection.
- **File reading:** Reads images, PDFs, canvases and data files from the vault.
- **Read-only mode:** READONLY_MODE hides every tool that writes to the vault.

## Good for

- Search a vault by meaning from claude.ai or a phone
- Keep personal context in memory notes an agent can update
- Triage overdue tasks across notes
- Find orphan notes and broken structure
- Reconcile daily notes with guided prompts

## Install

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

```sh
claude mcp add vault-cortex --env MCP_AUTH_TOKEN='<MCP_AUTH_TOKEN>' -- docker run -i --rm -e MCP_AUTH_TOKEN ghcr.io/aliasunder/vault-cortex:1.1.0
```

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": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_TOKEN>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_TOKEN>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "vault-cortex": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_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 vault-cortex --env MCP_AUTH_TOKEN='<MCP_AUTH_TOKEN>' -- docker run -i --rm -e MCP_AUTH_TOKEN ghcr.io/aliasunder/vault-cortex:1.1.0
```

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

```toml
[mcp_servers.vault-cortex]
command = "docker"
args = ["run", "-i", "--rm", "-e", "MCP_AUTH_TOKEN", "ghcr.io/aliasunder/vault-cortex:1.1.0"]
env = { MCP_AUTH_TOKEN = "<MCP_AUTH_TOKEN>" }
```

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

```json
{
  "mcpServers": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e MCP_AUTH_TOKEN='<MCP_AUTH_TOKEN>' vault-cortex docker -- run -i --rm -e MCP_AUTH_TOKEN ghcr.io/aliasunder/vault-cortex:1.1.0

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

```json
{
  "mcpServers": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_TOKEN>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_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": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_TOKEN>"
      }
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_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": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_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": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_TOKEN>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_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": {
    "vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "MCP_AUTH_TOKEN",
        "ghcr.io/aliasunder/vault-cortex:1.1.0"
      ],
      "env": {
        "MCP_AUTH_TOKEN": "<MCP_AUTH_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 2 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `vault_read_file` (name suggests: reads): Reads a non-markdown file from the vault such as an image or PDF.
- `vault_list_files` (name suggests: reads): Lists files in the vault.

## FAQ

### Do I need Obsidian running?

No. It works directly with .md files on disk, with no plugins.

### How do I set Vault Cortex up?

Run npx vault-cortex@latest init, which asks for your vault path, generates a token and starts the server in Docker.

### Can I make Vault Cortex read-only?

Yes. Set READONLY_MODE to true to hide every vault-writing tool.

### How is Vault Cortex secured remotely?

OAuth 2.1 for remote clients, plus a bearer token set in MCP_AUTH_TOKEN.

### What does hosting cost?

The README estimates about $20 to $30 a month on Railway and about $26 on Render; self-hosting needs your own VPS.

### How do I add Vault Cortex to Claude Code?

Run this command in your terminal: claude mcp add vault-cortex --env MCP_AUTH_TOKEN='<MCP_AUTH_TOKEN>' -- docker run -i --rm -e MCP_AUTH_TOKEN ghcr.io/aliasunder/vault-cortex:1.1.0

### What are the best alternatives to Vault Cortex?

The closest alternatives to Vault Cortex are REA, Codebase Memory, XERJ, Ha MCP and Claude Code Ultimate Guide.

## Where this comes from

- Description: written from the project's README.
- 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.
- [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.
- [Ha MCP](https://ai-powered.com/mcp/ha-mcp): Ha MCP is an open-source MCP server for productivity.
- [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.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.
- [Nautilus Compass Memory](https://ai-powered.com/mcp/nautilus-compass-memory): Nautilus Compass Memory is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/vault-cortex
