Skip to main content
Glama
optimikelabs

Optimike Obsidian MCP

by optimikelabs

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_AUTH_MODENoAuthentication mode: none, jwt, oauth (default none for local).
MCP_HTTP_HOSTNoHTTP server host (default 127.0.0.1).
MCP_HTTP_PORTNoHTTP server port (default 3010).
SMART_ENV_DIRNoPath to the .smart-env directory for semantic search.
MCP_WRITE_MODENoWrite safety: readonly, guarded, full (default full).
OBSIDIAN_VAULTNoPath to the Obsidian vault. Falls back to parent of .smart-env directory or project root.
OPENAI_API_KEYNoAPI key for OpenAI embeddings.
QUERY_EMBEDDERNoEmbedding provider: auto, ollama, openai, xenova (default auto).
OLLAMA_BASE_URLNoBase URL for Ollama (default http://127.0.0.1:11434).
OBSIDIAN_API_KEYNoAPI key for Obsidian Local REST API plugin (required for live mode).
OBSIDIAN_BASE_URLNoBase URL for Obsidian Local REST API (default http://127.0.0.1:27123).
MCP_ALLOWED_ORIGINSNoAllowed CORS origins (default narrow for localhost).
QUERY_EMBEDDER_MODELNoModel name for embedding (e.g., text-embedding-3-small).
OBSIDIAN_CACHE_SOURCENoCache refresh source: auto, filesystem, rest (default auto).
OBSIDIAN_RUNTIME_MODENoRuntime mode: live, hybrid, headless-readonly, headless-guarded, headless-filesystem (default live).
ENABLE_QUERY_EMBEDDINGNoEnable query embedding for semantic search (default 'true').
SEMANTIC_SEARCH_PREWARMNoDisable startup prewarm of semantic search (default 'true').
OBSIDIAN_STARTUP_BLOCKINGNoBlock startup until health check passes (default 'true').
MCP_PROXY_START_TIMEOUT_MSNoTimeout for proxy startup in ms (default 20000).
OBSIDIAN_CACHE_CONCURRENCYNoConcurrency for filesystem cache refresh.
MCP_GUARDED_MAX_WRITE_CHARSNoMax characters allowed in guarded mode writes.
OPENAI_EMBEDDING_DIMENSIONSNoDimensions for OpenAI embeddings (e.g., 1024).
OBSIDIAN_STARTUP_MAX_RETRIESNoMax retries for startup health check.
OBSIDIAN_SHARED_CACHE_DB_PATHNoPath to shared SQLite cache (default <vault>/.obsidian/optimike-mcp/shared-cache.sqlite).
OBSIDIAN_STARTUP_RETRY_DELAY_MSNoDelay between startup retries in ms.
OBSIDIAN_VAULT_EXCLUDE_PATTERNSNoComma- or newline-separated gitignore-style exclusion patterns.
MCP_GUARDED_MAX_BATCH_OPERATIONSNoMax batch operations allowed in guarded mode.
OBSIDIAN_CONTENT_HOT_CACHE_LIMITNoBounded in-memory hot set limit (default 64? example shows '64').

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/optimikelabs/optimike-obsidian-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server