Skip to main content

Obsidian MCP Server

io.github.maxkuminov/obsidian-mcp

v1.6.0Updated Nov 17, 2026local · Docker

Self-hosted agent memory in an Obsidian vault: hybrid search, link graph, tasks, safe writes, OAuth

Install

Needs 2 secrets. Replace 3 placeholders with your own values.

Run in your terminal. Replace 3 placeholders.

claude mcp add obsidian-mcp -e 'DATABASE_URL=<your-database-url>' -e VAULT_PATH=/obsidian -e 'SECRET_KEY=<your-secret-key>' -e 'MCP_HOSTNAME=<your-mcp-hostname>' -e EMBEDDING_PROVIDER=ollama -e OLLAMA_URL=http://ollama:11434 -e TEI_URL=http://tei:80 -e TEI_EMBEDDING_MODEL=BAAI/bge-m3 -e TEI_EMBED_BATCH_SIZE=16 -- docker run -i --rm -e DATABASE_URL -e VAULT_PATH -e SECRET_KEY -e MCP_HOSTNAME -e EMBEDDING_PROVIDER -e OLLAMA_URL -e TEI_URL -e TEI_EMBEDDING_MODEL -e TEI_EMBED_BATCH_SIZE ghcr.io/maxkuminov/obsidian-mcp:v1.6.0

Configuration

11 settings, 2 required secrets. Snippets use placeholders; keep real values out of shared config.

  • DATABASE_URL
    Env var· required· secret
    PostgreSQL 16 + pgvector (0.8.0+) connection URL for the app's NON-superuser role, e.g. postgresql+asyncpg://obsidian_mcp:<password>@postgres:5432/obsidian_mcp. A superuser role or a CHANGE_ME password is refused at startup.
  • SECRET_KEY
    Env var· required· secret
    itsdangerous signer for cookies/sessions. Generate with `openssl rand -hex 32`; the app refuses to start on a placeholder.
  • VAULT_PATH
    Env var· required
    Path of the Obsidian vault inside the container (mount your vault read-write there).Default: /obsidian
  • MCP_HOSTNAME
    Env var· required
    Public hostname your reverse proxy routes to. Also derives BASE_URL, ALLOWED_ORIGINS and ALLOWED_HOSTS as https://<MCP_HOSTNAME> unless those are set explicitly.
  • OPENAI_API_KEY
    Env var· optional· secret
    OpenAI (or OpenAI-compatible) API key for text-embedding-3-* (required when EMBEDDING_PROVIDER=openai; the server refuses to start without it).
  • TEI_API_KEY
    Env var· optional· secret
    Bearer token for a TEI server started with --api-key; sent only to TEI_URL (/embed, /info, the panel's /health). Empty means no Authorization header.
Show 5 more
  • EMBEDDING_PROVIDER
    Env var· optional
    Embedding provider: `ollama` (self-hosted, default), `openai` (bring your own key) or `tei` (Hugging Face Text Embeddings Inference, native /embed). Switching after deploy requires `make reset-embeddings`.Default: ollama
  • OLLAMA_URL
    Env var· optional
    Ollama endpoint serving bge-m3 (used when EMBEDDING_PROVIDER=ollama). Must be https or loopback unless EMBEDDING_ALLOW_PLAINTEXT is set.Default: http://ollama:11434
  • TEI_URL
    Env var· optional
    TEI endpoint (used when EMBEDDING_PROVIDER=tei). Must be https or loopback unless EMBEDDING_ALLOW_PLAINTEXT is set.Default: http://tei:80
  • TEI_EMBEDDING_MODEL
    Env var· optional
    Must equal the model_id the TEI server reports at GET /info, exactly (a local path included); a different value refuses startup. A change needs `make reset-embeddings`.Default: BAAI/bge-m3
  • TEI_EMBED_BATCH_SIZE
    Env var· optional
    Inputs per TEI /embed request (1-256). A value above the server's max_client_batch_size refuses startup.Default: 16

Listed in the official MCP Registry since Nov 17, 2026. Mirrored daily; last checked Nov 26, 2026.