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.0Configuration
11 settings, 2 required secrets. Snippets use placeholders; keep real values out of shared config.
DATABASE_URLEnv var· required· secretPostgreSQL 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_KEYEnv var· required· secretitsdangerous signer for cookies/sessions. Generate with `openssl rand -hex 32`; the app refuses to start on a placeholder.VAULT_PATHEnv var· requiredPath of the Obsidian vault inside the container (mount your vault read-write there).Default:/obsidianMCP_HOSTNAMEEnv var· requiredPublic 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_KEYEnv var· optional· secretOpenAI (or OpenAI-compatible) API key for text-embedding-3-* (required when EMBEDDING_PROVIDER=openai; the server refuses to start without it).TEI_API_KEYEnv var· optional· secretBearer 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 moreShow fewer
EMBEDDING_PROVIDEREnv var· optionalEmbedding 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:ollamaOLLAMA_URLEnv var· optionalOllama endpoint serving bge-m3 (used when EMBEDDING_PROVIDER=ollama). Must be https or loopback unless EMBEDDING_ALLOW_PLAINTEXT is set.Default:http://ollama:11434TEI_URLEnv var· optionalTEI endpoint (used when EMBEDDING_PROVIDER=tei). Must be https or loopback unless EMBEDDING_ALLOW_PLAINTEXT is set.Default:http://tei:80TEI_EMBEDDING_MODELEnv var· optionalMust 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-m3TEI_EMBED_BATCH_SIZEEnv var· optionalInputs per TEI /embed request (1-256). A value above the server's max_client_batch_size refuses startup.Default:16
Links
Listed in the official MCP Registry since Nov 17, 2026. Mirrored daily; last checked Nov 26, 2026.