MCP directory
OM

Obsidian MCP Server

by github.com/maxkuminov · v1.6.0 · updated Nov 17, 2026

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

Docker

Run it locally

Install the package and point your AI client at it.

Docker

docker run -i --rm ghcr.io/maxkuminov/obsidian-mcp:v1.6.0

Environment variables

  • DATABASE_URLrequiredsecret

    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.

  • VAULT_PATHrequired

    Path of the Obsidian vault inside the container (mount your vault read-write there).

  • SECRET_KEYrequiredsecret

    itsdangerous signer for cookies/sessions. Generate with `openssl rand -hex 32`; the app refuses to start on a placeholder.

  • MCP_HOSTNAMErequired

    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.

  • EMBEDDING_PROVIDER

    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`.

  • OLLAMA_URL

    Ollama endpoint serving bge-m3 (used when EMBEDDING_PROVIDER=ollama). Must be https or loopback unless EMBEDDING_ALLOW_PLAINTEXT is set.

  • OPENAI_API_KEYsecret

    OpenAI (or OpenAI-compatible) API key for text-embedding-3-* (required when EMBEDDING_PROVIDER=openai; the server refuses to start without it).

  • TEI_URL

    TEI endpoint (used when EMBEDDING_PROVIDER=tei). Must be https or loopback unless EMBEDDING_ALLOW_PLAINTEXT is set.

  • TEI_EMBEDDING_MODEL

    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`.

  • TEI_EMBED_BATCH_SIZE

    Inputs per TEI /embed request (1-256). A value above the server's max_client_batch_size refuses startup.

  • TEI_API_KEYsecret

    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.

More MCP servers