Obsidian MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | Server port. Default: 3000. | |
| API_KEY | No | API key for authentication. When set, requires a Bearer token. | |
| EMBED_DIM | No | Embedding dimension for the fake provider; ignored with Ollama. Default: 64 for fake. | |
| LEARN_LOG | No | Enable the optional learn log. Default: false. Invalid configuration disables logging. | |
| TRAILS_TZ | No | IANA zone for trails session-days and timestamps. Default: UTC. | |
| OLLAMA_URL | No | Ollama server for embeddings. Default: http://localhost:11434. | |
| VAULT_PATH | No | Path to the Obsidian vault. Default: /vault. | |
| EMBED_MODEL | No | Ollama embedding model. Default: nomic-embed-text. | |
| MAINTAIN_TZ | No | IANA timezone for report timestamps and ISO weeks. Default: UTC. | |
| DATABASE_URL | No | Postgres + pgvector connection string. Enables semantic search; unset means the feature is off. | |
| SEARCH_RRF_K | No | RRF rank constant; integer 1-1000. Default: 60. | |
| INDEX_VERBOSE | No | Indexer only: log every file indexed or removed. Default: false. | |
| SEARCH_CLICKS | No | Query-click ranking mode: off, shadow or on. Default: off. | |
| SEARCH_FUSION | No | Fusion method: rrf (weighted reciprocal rank) or dbsf (distribution-based score fusion). Default: rrf. | |
| SEARCH_TRAILS | No | Trails ranking mode: off, shadow or on. Default: off. | |
| SEARCH_W_TEXT | No | Full-text-leg weight; finite number 0-10. Both weights cannot be zero. Default: 1. | |
| EMBED_PROVIDER | No | Embedding provider: ollama, or fake for deterministic test embeddings. Default: ollama. | |
| MAINTAIN_APPLY | No | Kill switch for auto-apply; true lets the worker apply accepted and graduated findings. Default: false. | |
| SEARCH_CLICKS_C | No | Saturation constant in t/(t+c), greater than 0 and at most 100. Default: 1. | |
| SEARCH_CLICKS_W | No | Click boost weight, greater than 0 and at most 10. Default: 0.5. | |
| SEARCH_TRAILS_W | No | Trails boost weight; finite number greater than 0 and at most 10. Default: 0.5. | |
| SEARCH_W_VECTOR | No | Vector-leg weight; finite number 0-10. Default: 1. | |
| EMBED_BATCH_SIZE | No | Texts per Ollama request. Default: 16. | |
| INDEX_COLLECTION | No | Name of this vault's collection in the shared database. Default: default. | |
| MCP_INSTRUCTIONS | No | Inline MCP instructions sent to clients. Ignored when MCP_INSTRUCTIONS_FILE is set. | |
| TRAILS_NOTE_PATH | No | Vault-relative .md path without .. for the generated trails note; empty disables the note. Default: empty. | |
| COMPACT_RESPONSES | No | Enable minified response keys for 40-60% smaller responses. Default: false. | |
| MAINTAIN_HUB_DAYS | No | Linked-note update gap for stale hubs; integer 1-365. Default: 14. | |
| SEARCH_CLICKS_TAU | No | Minimum query-embedding cosine for a past search to count, between 0 and 1. Default: 0.8. | |
| TRAILS_HEAT_TYPES | No | Comma-separated note types eligible for heat writes; empty writes none. Default: empty. | |
| TRAILS_WRITE_HEAT | No | Strict true or false master switch for trails heat writes. Default: false. | |
| TRAILS_WINDOW_DAYS | No | Trails decay window; integer 7-3650. Default: 180. | |
| INDEX_VOLATILE_KEYS | No | Comma-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_COSINE | No | Near-duplicate cosine threshold, strictly between 0 and 1. Default: 0.92. | |
| MAINTAIN_REPORT_DIR | No | Existing writable directory for maintenance reports. Required unless running with --dry. | |
| READ_OUTLINE_TOKENS | No | When 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_CAP | No | Maximum chunks per note; integer 0-8; 0 means no cap. Default: 0. | |
| LEARN_RETENTION_DAYS | No | Days before query text, embeddings and feedback notes are cleared; integer 1-3650. Default: 30. | |
| MAINTAIN_LINK_COSINE | No | Missing-link cosine threshold, strictly between 0 and 1. Default: 0.85. | |
| TRAILS_NOTE_PER_NOTE | No | Trail partners per source note; integer 1-20. Default: 5. | |
| MAINTAIN_EXCLUDE_TAGS | No | Comma list; tagged notes get no findings and are never edited. Default: code-graph. | |
| MAINTAIN_SUMMARY_DROP | No | Summary/body cosine drop threshold, strictly between 0 and 1. Default: 0.05. | |
| MCP_INSTRUCTIONS_FILE | No | Optional 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_ANCHORS | No | Number of distinct leading candidate notes used as anchors; integer 1-8. Default: 3. | |
| SSE_KEEPALIVE_SECONDS | No | Seconds between : ping SSE comments on GET /sse streams; 0 disables. Default: 30. | |
| TRAILS_HALF_LIFE_DAYS | No | Trails half-life; integer 1-365. Default: 30. | |
| INDEX_INTERVAL_SECONDS | No | Indexer only: seconds between vault scans. Default: 60. | |
| MAINTAIN_DUP_TITLE_SIM | No | Near-duplicate title similarity threshold, strictly between 0 and 1. Default: 0.6. | |
| MAINTAIN_MAX_PER_CLASS | No | New findings per class per run; integer 1-100. Default: 10. | |
| TRAILS_HEAT_MAX_WRITES | No | Maximum heat writes; integer 1-5000. Default: 400. | |
| TRAILS_HEAT_THRESHOLDS | No | Five strictly ascending positive heat boundaries. Default: 1,3,6,12,24. | |
| TRAILS_NOTE_MIN_WEIGHT | No | Minimum trail weight for generated note entries; number 0-1000. Default: 1.0. | |
| REQUIRE_TAILSCALE_LOGIN | No | Optional. 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_SOURCES | No | Maximum trail source notes; integer 1-500. Default: 60. | |
| MAINTAIN_APPLY_WEEKLY_CAP | No | Applied note changes per rolling 7 days; integer 1-100. Default: 20. | |
| MAINTAIN_REPORT_VAULT_DIR | No | Vault-relative report directory used in recorded report paths. Default: empty. | |
| SEARCH_CLICKS_WINDOW_DAYS | No | Past searches considered; integer 1-365. Default: 30. | |
| LEARN_REDACT_PATTERNS_FILE | No | Required readable regex file when learn logging is enabled. | |
| MAINTAIN_COREAD_MIN_EVENTS | No | Minimum co-read events; integer 1-1000. Default: 2. | |
| MAINTAIN_COREAD_MIN_WEIGHT | No | Minimum co-read trail weight; number greater than 0 and at most 1000. Default: 1.5. | |
| SEARCH_VAULT_BUDGET_TOKENS | No | When over 0, search-vault output is trimmed to about this many tokens. Default: 0 (off). | |
| INDEX_FRONTMATTER_LINK_KEYS | No | Comma-separated frontmatter keys whose wikilinks should be indexed like body links. Default: empty. | |
| TRAILS_HEAT_MIN_AGE_MINUTES | No | Minimum age in minutes for heat writes; integer 0-1440. Default: 30. | |
| MAINTAIN_APPLY_MIN_AGE_HOURS | No | Notes modified more recently are never edited; integer 1-720. Default: 24. | |
| MAINTAIN_GUARD_PATTERNS_FILE | No | Regex 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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityActive
ResponsivenessLimited data