Skip to content
MCP server

Vault Cortex

Docker-run MCP server giving agents search, memory and tasks over an Obsidian vault

Vault Cortex is an MCP server for knowledge and memory. It runs as a hosted remote server, so there is nothing to install locally.

Platforms
Self-hosted, API
Runs
Remotely
What it can do
Read-only
Access
Needs a secret key or token
Version
1.1.0

Similar MCP servers

Install

Add with the CLI

Run in a 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

Add --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": {
    "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 Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.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>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "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>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • MCP_AUTH_TOKENBearer token for MCP client authentication. Must match the Authorization header sent by clients. Generate with: openssl rand -hex 32Required
  • PUBLIC_URLPublic URL clients use to reach this server. Used as the OAuth issuer URL in discovery metadata. Override when exposing the server outside localhost or on a non-default port.
  • EMBEDDING_ENABLEDEnable or disable the embedding pipeline. When false, no ONNX model is downloaded, no vector tables are created, and search uses FTS5 only.
  • RERANK_MODECross-encoder reranking mode: blended (position-aware score blending after RRF fusion) or none (skip reranking). Only takes effect when EMBEDDING_ENABLED is true.
  • WINDOWS_MODEWindows bind-mount mode: enables filesystem polling for the file watcher and rename-based moves and file creation across the Docker Desktop/WSL2 bridge. Set to true when the vault lives on a Windows drive.
  • MEMORY_ENABLEDEnable or disable the structured memory layer. When false, memory tools are hidden, bootstrap is skipped, and server metadata omits memory references.
  • FILE_TOOLS_ENABLEDEnable or disable file tools (vault_read_file, vault_write_file, vault_list_files). When false, file tools are hidden and server metadata omits file tool references.
  • READONLY_MODERun the server read-only: every vault-writing tool is hidden, the memory folder is not auto-created, and server metadata omits write references.
  • DISABLED_TOOLSHide individual tools by name, comma-separated. Subtractive only — it cannot re-enable a tool another setting hides; an unknown tool name stops the server at startup.
  • MEMORY_DIRVault folder for structured memory files (About Me-style notes). Memory tools are hidden when MEMORY_ENABLED is false, but this value still feeds the defaults for PROTECTED_PATHS and ORPHAN_EXCLUDE_FOLDERS.
  • DAILY_NOTES_FOLDERVault folder for daily notes. Overrides the folder configured in Obsidian's daily-notes plugin. When unset, read from the vault's .obsidian/daily-notes.json (an empty folder there follows Obsidian's new-note location), falling back to "Daily Notes" when that file is missing or unreadable. Set to / for the vault root.
  • DAILY_NOTES_FORMATFilename date format for daily notes (Moment.js tokens). Overrides the format configured in Obsidian's daily-notes plugin. When unset, read from the vault's .obsidian/daily-notes.json, falling back to "YYYY-MM-DD".
  • TRUST_PROXY_HOPSNumber of trusted reverse-proxy hops used to derive the client IP from X-Forwarded-For for OAuth rate limiting and request logs. With 0, injected forwarding headers are ignored.
  • TRUST_FORWARDED_HOPSHow many entries from the end of the RFC 7239 Forwarded header's for= list to count to reach the client IP for OAuth rate limiting and request logs. 0 ignores the header; 1 when the proxy in front writes it (e.g. AWS API Gateway) and is the only way to reach the server; 2 when a CDN fronts that proxy and is the only way to reach it.
  • TZIANA timezone for timestamps and daily note resolution.
  • LOG_LEVELLogging verbosity.
  • LOG_DIRDirectory for log files that survive container re-creation. The container's own log is always written but discarded when the container is recreated; date-stamped files under LOG_DIR persist on the data volume. Default: /data/logs (remote image), $STORAGE_ROOT/data/logs (single-volume mode), none (local image). none keeps only the container log.
  • LOG_RETENTION_DAYSDays to keep log files; cleanup runs at startup and each day. Only applies when LOG_DIR is a path.
  • LOG_MAX_DAILY_MBMaximum MB per daily log file (1 MB = 1,000,000 bytes). Whole numbers of at least 1, or none to disable the cap. File logging pauses at the cap until midnight in TZ (UTC by default); console logging continues.
  • PROTECTED_PATHSComma-separated vault folder names blocked from vault_delete_note and vault_move_note. Default: MEMORY_DIR plus the daily notes folder, read from DAILY_NOTES_FOLDER or .obsidian/daily-notes.json (default Daily Notes; none when that setting is the vault root or empty). When set, overrides the default entirely.
  • ORPHAN_EXCLUDE_FOLDERSComma-separated vault folder names excluded from vault_find_orphans. Default: the daily notes folder, "Templates", and MEMORY_DIR. DAILY_NOTES_FOLDER wins; otherwise .obsidian/daily-notes.json is read per query (fallback "Daily Notes"; no daily folder when that setting is the vault root or empty). When set, replaces the defaults entirely. Set to a comma (,) to exclude nothing; an empty value uses the defaults.
  • SERVICE_DOCUMENTATION_URLOverride the OAuth service documentation URL exposed via discovery metadata.
  • MAX_FILE_BYTESLargest file vault_read_file will read, in bytes. Reading a larger file returns an error instead of content.
  • MAX_IMAGE_OUTPUT_BYTESByte budget for images returned by vault_read_file, in binary bytes before base64 encoding. Images exceeding the budget are downscaled/recompressed server-side to fit; raise for clients that accept larger tool responses.
  • MAX_PDF_RENDER_PAGESMaximum PDF pages to render as images when raw: true is set on vault_read_file. The per-page byte budget is MAX_IMAGE_OUTPUT_BYTES divided evenly across the rendered pages.

About Vault Cortex

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.

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

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_fileName suggests: reads
Reads a non-markdown file from the vault such as an image or PDF.
vault_list_filesName suggests: reads
Lists files in the vault.

What it does

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

Pricing

Pricing unknown

Hosting about $20-30/mo on Railway or about $26/mo on Render, per the README

Vault Cortex 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.

How AIPoweredBot checks servers