Skip to main content
Glama
Obsidian MCP Server

Obsidian MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoServer port. Default: 3000.
API_KEYNoAPI key for authentication. When set, requires a Bearer token.
EMBED_DIMNoEmbedding dimension for the fake provider; ignored with Ollama. Default: 64 for fake.
LEARN_LOGNoEnable the optional learn log. Default: false. Invalid configuration disables logging.
TRAILS_TZNoIANA zone for trails session-days and timestamps. Default: UTC.
OLLAMA_URLNoOllama server for embeddings. Default: http://localhost:11434.
VAULT_PATHNoPath to the Obsidian vault. Default: /vault.
EMBED_MODELNoOllama embedding model. Default: nomic-embed-text.
MAINTAIN_TZNoIANA timezone for report timestamps and ISO weeks. Default: UTC.
DATABASE_URLNoPostgres + pgvector connection string. Enables semantic search; unset means the feature is off.
SEARCH_RRF_KNoRRF rank constant; integer 1-1000. Default: 60.
INDEX_VERBOSENoIndexer only: log every file indexed or removed. Default: false.
SEARCH_CLICKSNoQuery-click ranking mode: off, shadow or on. Default: off.
SEARCH_FUSIONNoFusion method: rrf (weighted reciprocal rank) or dbsf (distribution-based score fusion). Default: rrf.
SEARCH_TRAILSNoTrails ranking mode: off, shadow or on. Default: off.
SEARCH_W_TEXTNoFull-text-leg weight; finite number 0-10. Both weights cannot be zero. Default: 1.
EMBED_PROVIDERNoEmbedding provider: ollama, or fake for deterministic test embeddings. Default: ollama.
MAINTAIN_APPLYNoKill switch for auto-apply; true lets the worker apply accepted and graduated findings. Default: false.
SEARCH_CLICKS_CNoSaturation constant in t/(t+c), greater than 0 and at most 100. Default: 1.
SEARCH_CLICKS_WNoClick boost weight, greater than 0 and at most 10. Default: 0.5.
SEARCH_TRAILS_WNoTrails boost weight; finite number greater than 0 and at most 10. Default: 0.5.
SEARCH_W_VECTORNoVector-leg weight; finite number 0-10. Default: 1.
EMBED_BATCH_SIZENoTexts per Ollama request. Default: 16.
INDEX_COLLECTIONNoName of this vault's collection in the shared database. Default: default.
MCP_INSTRUCTIONSNoInline MCP instructions sent to clients. Ignored when MCP_INSTRUCTIONS_FILE is set.
TRAILS_NOTE_PATHNoVault-relative .md path without .. for the generated trails note; empty disables the note. Default: empty.
COMPACT_RESPONSESNoEnable minified response keys for 40-60% smaller responses. Default: false.
MAINTAIN_HUB_DAYSNoLinked-note update gap for stale hubs; integer 1-365. Default: 14.
SEARCH_CLICKS_TAUNoMinimum query-embedding cosine for a past search to count, between 0 and 1. Default: 0.8.
TRAILS_HEAT_TYPESNoComma-separated note types eligible for heat writes; empty writes none. Default: empty.
TRAILS_WRITE_HEATNoStrict true or false master switch for trails heat writes. Default: false.
TRAILS_WINDOW_DAYSNoTrails decay window; integer 7-3650. Default: 180.
INDEX_VOLATILE_KEYSNoComma-separated frontmatter keys whose changes should not trigger re-embedding; each key may contain only letters, digits, underscore or hyphen. Default: empty; the indexer worker defaults to heat.
MAINTAIN_DUP_COSINENoNear-duplicate cosine threshold, strictly between 0 and 1. Default: 0.92.
MAINTAIN_REPORT_DIRNoExisting writable directory for maintenance reports. Required unless running with --dry.
READ_OUTLINE_TOKENSNoWhen over 0, read-note and read-multiple-notes return an outline for notes larger than this many tokens unless called with full: true. Default: 0 (off).
SEARCH_PER_NOTE_CAPNoMaximum chunks per note; integer 0-8; 0 means no cap. Default: 0.
LEARN_RETENTION_DAYSNoDays before query text, embeddings and feedback notes are cleared; integer 1-3650. Default: 30.
MAINTAIN_LINK_COSINENoMissing-link cosine threshold, strictly between 0 and 1. Default: 0.85.
TRAILS_NOTE_PER_NOTENoTrail partners per source note; integer 1-20. Default: 5.
MAINTAIN_EXCLUDE_TAGSNoComma list; tagged notes get no findings and are never edited. Default: code-graph.
MAINTAIN_SUMMARY_DROPNoSummary/body cosine drop threshold, strictly between 0 and 1. Default: 0.05.
MCP_INSTRUCTIONS_FILENoOptional path to a text/Markdown file sent to clients as MCP instructions in the initialize result. A missing file is a startup error.
SEARCH_TRAILS_ANCHORSNoNumber of distinct leading candidate notes used as anchors; integer 1-8. Default: 3.
SSE_KEEPALIVE_SECONDSNoSeconds between : ping SSE comments on GET /sse streams; 0 disables. Default: 30.
TRAILS_HALF_LIFE_DAYSNoTrails half-life; integer 1-365. Default: 30.
INDEX_INTERVAL_SECONDSNoIndexer only: seconds between vault scans. Default: 60.
MAINTAIN_DUP_TITLE_SIMNoNear-duplicate title similarity threshold, strictly between 0 and 1. Default: 0.6.
MAINTAIN_MAX_PER_CLASSNoNew findings per class per run; integer 1-100. Default: 10.
TRAILS_HEAT_MAX_WRITESNoMaximum heat writes; integer 1-5000. Default: 400.
TRAILS_HEAT_THRESHOLDSNoFive strictly ascending positive heat boundaries. Default: 1,3,6,12,24.
TRAILS_NOTE_MIN_WEIGHTNoMinimum trail weight for generated note entries; number 0-1000. Default: 1.0.
REQUIRE_TAILSCALE_LOGINNoOptional. Require the Tailscale-User-Login header to equal this login. Only trustworthy when the server is reachable solely through tailscale serve on loopback.
TRAILS_NOTE_MAX_SOURCESNoMaximum trail source notes; integer 1-500. Default: 60.
MAINTAIN_APPLY_WEEKLY_CAPNoApplied note changes per rolling 7 days; integer 1-100. Default: 20.
MAINTAIN_REPORT_VAULT_DIRNoVault-relative report directory used in recorded report paths. Default: empty.
SEARCH_CLICKS_WINDOW_DAYSNoPast searches considered; integer 1-365. Default: 30.
LEARN_REDACT_PATTERNS_FILENoRequired readable regex file when learn logging is enabled.
MAINTAIN_COREAD_MIN_EVENTSNoMinimum co-read events; integer 1-1000. Default: 2.
MAINTAIN_COREAD_MIN_WEIGHTNoMinimum co-read trail weight; number greater than 0 and at most 1000. Default: 1.5.
SEARCH_VAULT_BUDGET_TOKENSNoWhen over 0, search-vault output is trimmed to about this many tokens. Default: 0 (off).
INDEX_FRONTMATTER_LINK_KEYSNoComma-separated frontmatter keys whose wikilinks should be indexed like body links. Default: empty.
TRAILS_HEAT_MIN_AGE_MINUTESNoMinimum age in minutes for heat writes; integer 0-1440. Default: 30.
MAINTAIN_APPLY_MIN_AGE_HOURSNoNotes modified more recently are never edited; integer 1-720. Default: 24.
MAINTAIN_GUARD_PATTERNS_FILENoRegex lines; a note matching one or a built-in secret pattern is never edited. Required for apply. Defaults to LEARN_REDACT_PATTERNS_FILE.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

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