V

Vault Cortex

by aliasunder · io.github.aliasunder/vault-cortex

Standalone MCP server for Obsidian vaults - hybrid search (FTS5 + vector + cross-encoder reranking), images and PDFs in agent-readable form, Kanban-aware tasks (Tasks-plugin + Dataview formats), structured memory with topic recall, fine-grained read/write tools for optimal token efficiency, and link graph support. Run locally, self-host, or one-click deploy for remote access. OAuth 2.1.

oci Unknown transport GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-aliasunder-vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "EMBEDDING_ENABLED=<YOUR_VALUE>",
        "-e",
        "RERANK_MODE=<YOUR_VALUE>",
        "-e",
        "WINDOWS_MODE=<YOUR_VALUE>",
        "-e",
        "MEMORY_ENABLED=<YOUR_VALUE>",
        "-e",
        "FILE_TOOLS_ENABLED=<YOUR_VALUE>",
        "-e",
        "READONLY_MODE=<YOUR_VALUE>",
        "-e",
        "DISABLED_TOOLS=<YOUR_VALUE>",
        "-e",
        "MEMORY_DIR=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FOLDER=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FORMAT=<YOUR_VALUE>",
        "-e",
        "TRUST_PROXY_HOPS=<YOUR_VALUE>",
        "-e",
        "TRUST_FORWARDED_HOPS=<YOUR_VALUE>",
        "-e",
        "TZ=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "LOG_MAX_DAILY_MB=<YOUR_VALUE>",
        "-e",
        "PROTECTED_PATHS=<YOUR_VALUE>",
        "-e",
        "ORPHAN_EXCLUDE_FOLDERS=<YOUR_VALUE>",
        "-e",
        "SERVICE_DOCUMENTATION_URL=<YOUR_VALUE>",
        "-e",
        "MAX_FILE_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_IMAGE_OUTPUT_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_PDF_RENDER_PAGES=<YOUR_VALUE>",
        "-e",
        "VAULT_PATH=<YOUR_VALUE>",
        "-e",
        "INDEX_DB_PATH=<YOUR_VALUE>",
        "ghcr.io/aliasunder/vault-cortex:1.0.1"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-aliasunder-vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "EMBEDDING_ENABLED=<YOUR_VALUE>",
        "-e",
        "RERANK_MODE=<YOUR_VALUE>",
        "-e",
        "WINDOWS_MODE=<YOUR_VALUE>",
        "-e",
        "MEMORY_ENABLED=<YOUR_VALUE>",
        "-e",
        "FILE_TOOLS_ENABLED=<YOUR_VALUE>",
        "-e",
        "READONLY_MODE=<YOUR_VALUE>",
        "-e",
        "DISABLED_TOOLS=<YOUR_VALUE>",
        "-e",
        "MEMORY_DIR=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FOLDER=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FORMAT=<YOUR_VALUE>",
        "-e",
        "TRUST_PROXY_HOPS=<YOUR_VALUE>",
        "-e",
        "TRUST_FORWARDED_HOPS=<YOUR_VALUE>",
        "-e",
        "TZ=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "LOG_MAX_DAILY_MB=<YOUR_VALUE>",
        "-e",
        "PROTECTED_PATHS=<YOUR_VALUE>",
        "-e",
        "ORPHAN_EXCLUDE_FOLDERS=<YOUR_VALUE>",
        "-e",
        "SERVICE_DOCUMENTATION_URL=<YOUR_VALUE>",
        "-e",
        "MAX_FILE_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_IMAGE_OUTPUT_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_PDF_RENDER_PAGES=<YOUR_VALUE>",
        "-e",
        "VAULT_PATH=<YOUR_VALUE>",
        "-e",
        "INDEX_DB_PATH=<YOUR_VALUE>",
        "ghcr.io/aliasunder/vault-cortex:1.0.1"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-aliasunder-vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "EMBEDDING_ENABLED=<YOUR_VALUE>",
        "-e",
        "RERANK_MODE=<YOUR_VALUE>",
        "-e",
        "WINDOWS_MODE=<YOUR_VALUE>",
        "-e",
        "MEMORY_ENABLED=<YOUR_VALUE>",
        "-e",
        "FILE_TOOLS_ENABLED=<YOUR_VALUE>",
        "-e",
        "READONLY_MODE=<YOUR_VALUE>",
        "-e",
        "DISABLED_TOOLS=<YOUR_VALUE>",
        "-e",
        "MEMORY_DIR=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FOLDER=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FORMAT=<YOUR_VALUE>",
        "-e",
        "TRUST_PROXY_HOPS=<YOUR_VALUE>",
        "-e",
        "TRUST_FORWARDED_HOPS=<YOUR_VALUE>",
        "-e",
        "TZ=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "LOG_MAX_DAILY_MB=<YOUR_VALUE>",
        "-e",
        "PROTECTED_PATHS=<YOUR_VALUE>",
        "-e",
        "ORPHAN_EXCLUDE_FOLDERS=<YOUR_VALUE>",
        "-e",
        "SERVICE_DOCUMENTATION_URL=<YOUR_VALUE>",
        "-e",
        "MAX_FILE_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_IMAGE_OUTPUT_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_PDF_RENDER_PAGES=<YOUR_VALUE>",
        "-e",
        "VAULT_PATH=<YOUR_VALUE>",
        "-e",
        "INDEX_DB_PATH=<YOUR_VALUE>",
        "ghcr.io/aliasunder/vault-cortex:1.0.1"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-aliasunder-vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "EMBEDDING_ENABLED=<YOUR_VALUE>",
        "-e",
        "RERANK_MODE=<YOUR_VALUE>",
        "-e",
        "WINDOWS_MODE=<YOUR_VALUE>",
        "-e",
        "MEMORY_ENABLED=<YOUR_VALUE>",
        "-e",
        "FILE_TOOLS_ENABLED=<YOUR_VALUE>",
        "-e",
        "READONLY_MODE=<YOUR_VALUE>",
        "-e",
        "DISABLED_TOOLS=<YOUR_VALUE>",
        "-e",
        "MEMORY_DIR=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FOLDER=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FORMAT=<YOUR_VALUE>",
        "-e",
        "TRUST_PROXY_HOPS=<YOUR_VALUE>",
        "-e",
        "TRUST_FORWARDED_HOPS=<YOUR_VALUE>",
        "-e",
        "TZ=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "LOG_MAX_DAILY_MB=<YOUR_VALUE>",
        "-e",
        "PROTECTED_PATHS=<YOUR_VALUE>",
        "-e",
        "ORPHAN_EXCLUDE_FOLDERS=<YOUR_VALUE>",
        "-e",
        "SERVICE_DOCUMENTATION_URL=<YOUR_VALUE>",
        "-e",
        "MAX_FILE_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_IMAGE_OUTPUT_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_PDF_RENDER_PAGES=<YOUR_VALUE>",
        "-e",
        "VAULT_PATH=<YOUR_VALUE>",
        "-e",
        "INDEX_DB_PATH=<YOUR_VALUE>",
        "ghcr.io/aliasunder/vault-cortex:1.0.1"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-aliasunder-vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "EMBEDDING_ENABLED=<YOUR_VALUE>",
        "-e",
        "RERANK_MODE=<YOUR_VALUE>",
        "-e",
        "WINDOWS_MODE=<YOUR_VALUE>",
        "-e",
        "MEMORY_ENABLED=<YOUR_VALUE>",
        "-e",
        "FILE_TOOLS_ENABLED=<YOUR_VALUE>",
        "-e",
        "READONLY_MODE=<YOUR_VALUE>",
        "-e",
        "DISABLED_TOOLS=<YOUR_VALUE>",
        "-e",
        "MEMORY_DIR=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FOLDER=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FORMAT=<YOUR_VALUE>",
        "-e",
        "TRUST_PROXY_HOPS=<YOUR_VALUE>",
        "-e",
        "TRUST_FORWARDED_HOPS=<YOUR_VALUE>",
        "-e",
        "TZ=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "LOG_MAX_DAILY_MB=<YOUR_VALUE>",
        "-e",
        "PROTECTED_PATHS=<YOUR_VALUE>",
        "-e",
        "ORPHAN_EXCLUDE_FOLDERS=<YOUR_VALUE>",
        "-e",
        "SERVICE_DOCUMENTATION_URL=<YOUR_VALUE>",
        "-e",
        "MAX_FILE_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_IMAGE_OUTPUT_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_PDF_RENDER_PAGES=<YOUR_VALUE>",
        "-e",
        "VAULT_PATH=<YOUR_VALUE>",
        "-e",
        "INDEX_DB_PATH=<YOUR_VALUE>",
        "ghcr.io/aliasunder/vault-cortex:1.0.1"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-aliasunder-vault-cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "MCP_AUTH_TOKEN=<YOUR_VALUE>",
        "-e",
        "PUBLIC_URL=<YOUR_VALUE>",
        "-e",
        "EMBEDDING_ENABLED=<YOUR_VALUE>",
        "-e",
        "RERANK_MODE=<YOUR_VALUE>",
        "-e",
        "WINDOWS_MODE=<YOUR_VALUE>",
        "-e",
        "MEMORY_ENABLED=<YOUR_VALUE>",
        "-e",
        "FILE_TOOLS_ENABLED=<YOUR_VALUE>",
        "-e",
        "READONLY_MODE=<YOUR_VALUE>",
        "-e",
        "DISABLED_TOOLS=<YOUR_VALUE>",
        "-e",
        "MEMORY_DIR=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FOLDER=<YOUR_VALUE>",
        "-e",
        "DAILY_NOTES_FORMAT=<YOUR_VALUE>",
        "-e",
        "TRUST_PROXY_HOPS=<YOUR_VALUE>",
        "-e",
        "TRUST_FORWARDED_HOPS=<YOUR_VALUE>",
        "-e",
        "TZ=<YOUR_VALUE>",
        "-e",
        "LOG_LEVEL=<YOUR_VALUE>",
        "-e",
        "LOG_DIR=<YOUR_VALUE>",
        "-e",
        "LOG_RETENTION_DAYS=<YOUR_VALUE>",
        "-e",
        "LOG_MAX_DAILY_MB=<YOUR_VALUE>",
        "-e",
        "PROTECTED_PATHS=<YOUR_VALUE>",
        "-e",
        "ORPHAN_EXCLUDE_FOLDERS=<YOUR_VALUE>",
        "-e",
        "SERVICE_DOCUMENTATION_URL=<YOUR_VALUE>",
        "-e",
        "MAX_FILE_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_IMAGE_OUTPUT_BYTES=<YOUR_VALUE>",
        "-e",
        "MAX_PDF_RENDER_PAGES=<YOUR_VALUE>",
        "-e",
        "VAULT_PATH=<YOUR_VALUE>",
        "-e",
        "INDEX_DB_PATH=<YOUR_VALUE>",
        "ghcr.io/aliasunder/vault-cortex:1.0.1"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
MCP_AUTH_TOKEN secret Yes Bearer token for MCP client authentication. Generate with: openssl rand -hex 32
PUBLIC_URL No Public URL clients use to reach the server. Used as the OAuth issuer URL in discovery metadata. Default: http://localhost:8000
EMBEDDING_ENABLED No Enable or disable the embedding pipeline. When false, no ONNX model is downloaded, no vector tables are created, and search uses FTS5 only. Default: true
RERANK_MODE No Cross-encoder reranking mode: blended (position-aware score blending after RRF fusion) or none (skip reranking). Only takes effect when EMBEDDING_ENABLED is true. Default: blended
WINDOWS_MODE No Windows bind-mount mode: enables filesystem polling for the file watcher and rename-based moves across the Docker Desktop/WSL2 bridge. Set to true when the vault lives on a Windows drive. Default: false
MEMORY_ENABLED No Enable or disable the structured memory layer. When false, memory tools are hidden, bootstrap is skipped, and server metadata omits memory references. Default: true
FILE_TOOLS_ENABLED No Enable or disable file tools (vault_read_file, vault_list_files). When false, file tools are hidden and server metadata omits file tool references. Default: true
READONLY_MODE No Run the server read-only: every vault-writing tool is hidden, the memory folder is not auto-created, and server metadata omits write references. Default: false
DISABLED_TOOLS No Hide 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_DIR No Vault 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. Default: About Me
DAILY_NOTES_FOLDER No Vault 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. Default: Daily Notes
DAILY_NOTES_FORMAT No Filename 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". Default: YYYY-MM-DD
TRUST_PROXY_HOPS No Number 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. Default: 0
TRUST_FORWARDED_HOPS No How 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. Default: 0
TZ No IANA timezone for timestamps and daily note resolution. Default: UTC
LOG_LEVEL No Logging verbosity: debug, info, warn, or error. Default: info
LOG_DIR No Directory 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_DAYS No Days to keep log files; cleanup runs at startup and each day. Only applies when LOG_DIR is a path. Default: 90
LOG_MAX_DAILY_MB No Maximum 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. Default: 25
PROTECTED_PATHS No Comma-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_FOLDERS No Comma-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_URL No Override the OAuth service documentation URL exposed via discovery metadata. Default: https://github.com/aliasunder/vault-cortex
MAX_FILE_BYTES No Largest file vault_read_file will read, in bytes. Reading a larger file returns an error instead of content. Default: 52428800
MAX_IMAGE_OUTPUT_BYTES No Byte 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. Default: 49152
MAX_PDF_RENDER_PAGES No Maximum 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. Default: 5
VAULT_PATH Yes Absolute path to your Obsidian vault, mounted into the container.
INDEX_DB_PATH No SQLite FTS5 index DB path inside the container. Default: /data/index.db

Similar servers