Obsidian MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TEI_URL | No | TEI endpoint used when EMBEDDING_PROVIDER is tei. | http://tei:80 |
| BASE_URL | No | Explicit public origin. HTTPS except on loopback. | |
| PANEL_CSP | No | Content-Security-Policy mode for panel, login and consent pages: enforce, report-only, or off. | enforce |
| CHUNK_SIZE | No | Approximate tokens per embedding chunk. | 512 |
| OLLAMA_URL | No | Ollama endpoint. Must be https, loopback http, or covered by EMBEDDING_ALLOW_PLAINTEXT. | http://ollama:11434 |
| RERANK_URL | No | Full URL of an optional Jina-compatible /v1/rerank endpoint. | |
| SECRET_KEY | Yes | itsdangerous signer key. Required; the app refuses to start with a placeholder value. | |
| TASKS_RULE | No | Which checkboxes count as tasks: all, fields, or filter. | all |
| VAULT_PATH | No | In-container path to the Obsidian vault. | /obsidian |
| FTS_CONFIGS | No | Keyword-search text-search config(s), as JSON or CSV. | english |
| OIDC_ISSUER | No | OIDC issuer URL. Required when OIDC_ENABLED is true. | |
| TEI_API_KEY | No | Bearer token for a TEI server started with --api-key. | |
| DATABASE_URL | Yes | PostgreSQL connection URL, e.g. postgresql+asyncpg://user:pass@host/db. No TLS parameters; a changeme/CHANGE_ME password is refused. Required to start. | |
| HYBRID_RRF_K | No | hybrid_search reciprocal-rank-fusion constant. 1–1000. | 60 |
| MCP_HOSTNAME | No | Public hostname. Derives BASE_URL, ALLOWED_ORIGINS and ALLOWED_HOSTS. Required with BASE_URL for transfer tools. | |
| OIDC_CA_FILE | No | PEM CA file trusted for OIDC provider requests. | |
| OIDC_ENABLED | No | Enable browser SSO through an OpenID Connect provider. | false |
| RANK_WEIGHTS | No | keyword_search ts_rank_cd weight array {D,C,B,A}. | {0.02, 0.2, 0.4, 1.0} |
| RERANK_MODEL | No | Model sent as model in the rerank request, at most 200 characters. | |
| ALLOWED_HOSTS | No | Accepted Host headers as a JSON list. localhost is always added. | |
| CHUNK_OVERLAP | No | Token overlap between chunks. | 0 |
| OIDC_CLIENT_ID | No | OIDC client ID. Required when OIDC_ENABLED is true. | |
| OPENAI_API_KEY | No | Required when EMBEDDING_PROVIDER is openai. | |
| ALLOWED_ORIGINS | No | CORS origins as a JSON list. | |
| EMBEDDING_MODEL | No | Ollama embedding model name. Changing it after deploy requires make reset-embeddings. | bge-m3 |
| MULTI_USER_MODE | No | Enable in-app login and per-user vault scoping. | false |
| OPENAI_BASE_URL | No | Override for Azure, proxies, or any OpenAI-compatible embeddings server. | https://api.openai.com/v1 |
| SESSION_MAX_AGE | No | Panel session lifetime in seconds in multi-user mode. | 604800 |
| TASKS_RULE_TAGS | No | Comma-separated task tags for the fields rule, such as waiting,someday. At most 32 tags. | |
| MCP_SANDBOX_MODE | No | Registry-evaluation only. Skips DB, indexer, embedding provider, and /mcp auth. | false |
| DATABASE_SSL_MODE | No | Database TLS mode: disable, prefer, require, verify-ca, or verify-full. | prefer |
| EMBEDDING_CA_FILE | No | PEM trust anchor for an https embedding endpoint behind an internal CA. | |
| IMPORT_ALLOW_HTTP | No | Allow import_from_url to fetch plain http. | false |
| OIDC_DISPLAY_NAME | No | Display name for the SSO login button. | SSO |
| OIDC_EXTRA_SCOPES | No | Extra space-separated OAuth scopes to request after openid email profile. | |
| OLLAMA_KEEP_ALIVE | No | How long Ollama keeps the model resident. -1 pins it. | -1 |
| RERANK_TIMEOUT_MS | No | Deadline for one rerank call. 100–30000. | 1500 |
| EMBEDDING_PROVIDER | No | Embedding provider: ollama, openai, or tei. | ollama |
| OAUTH_CIMD_ENABLED | No | Accept OAuth Client ID Metadata Documents and advertise client_id_metadata_document_supported. | true |
| OIDC_CLIENT_SECRET | No | OIDC client secret. Required when OIDC_ENABLED is true. | |
| LOCAL_LOGIN_ENABLED | No | Enable the panel password form in multi-user mode. | true |
| MAX_FILE_READ_BYTES | No | read_file cap in bytes. | 10485760 |
| OIDC_REQUIRED_GROUP | No | Optional exact, case-sensitive group that must be present in the ID token groups array. | |
| SESSION_COOKIE_NAME | No | Panel session cookie name. | omcp_session |
| TASKS_GLOBAL_FILTER | No | Filter text for the filter task rule, such as #task. Quote it in .env. | |
| TASKS_SET_DONE_DATE | No | complete_task adds a done date. | true |
| TEI_EMBEDDING_MODEL | No | Must equal the model_id the TEI server reports at GET /info. | BAAI/bge-m3 |
| DATABASE_SSL_CA_FILE | No | CA bundle (PEM) for DATABASE_SSL_MODE verify-ca or verify-full. | |
| EMBEDDING_DIMENSIONS | No | pgvector column width. | 1024 |
| KEYWORD_SNIPPET_ROWS | No | Rows per keyword_search page that get a snippet. 0–100. | 20 |
| MAX_FILE_WRITE_BYTES | No | write_file cap in bytes. | 26214400 |
| MCP_CONCURRENCY_AUTH | No | Authentication database-session ceiling. | 2 |
| MCP_CONCURRENCY_MODE | No | Concurrency admission mode: off, shadow, or enforce. | shadow |
| MCP_RATE_LIMIT_BURST | No | Capacity of the general rate-limit bucket. | 120 |
| RERANK_MAX_DOCUMENTS | No | The most documents one rerank call sends. 50–200. | 100 |
| TEI_EMBED_BATCH_SIZE | No | Inputs per native TEI /embed request. 1–256. | 16 |
| DATABASE_SSL_KEY_FILE | No | Client private key for DATABASE_SSL_CERT_FILE. | |
| KEYWORD_EXCERPT_CHARS | No | Leading characters of each note's indexed text stored for keyword_search snippets. 1000–100000. | 20000 |
| MCP_CONCURRENCY_TOOLS | No | Global tool ceiling in enforce mode. | 4 |
| OIDC_SUBJECT_USER_IDS | No | Retired. Any non-empty value refuses startup; links are made in the panel. | |
| DATABASE_SSL_CERT_FILE | No | Client certificate (PEM) for strict database TLS modes. | |
| INDEX_INTERVAL_SECONDS | No | Periodic reindex cadence in seconds. | 300 |
| MCP_AUTH_FAILURE_LIMIT | No | Failed /mcp authentications one client address may make per window before a 429. | 60 |
| OIDC_TOKEN_AUTH_METHOD | No | OIDC token endpoint auth method: client_secret_basic or client_secret_post. | client_secret_basic |
| OPENAI_EMBEDDING_MODEL | No | OpenAI embedding model. Changing it after deploy requires make reset-embeddings. | text-embedding-3-small |
| RERANK_ALLOW_PLAINTEXT | No | Permit http to a non-loopback reranker host. | false |
| TASKS_DEFAULT_TIMEZONE | No | IANA timezone for resolving today and relative dates in task tools. | UTC |
| TASKS_SET_CREATED_DATE | No | add_task and recurring next occurrences get a created date. | false |
| MAX_READ_RESPONSE_CHARS | No | Cap on what read_note and read_file return to the caller. | 40000 |
| MCP_BODY_BUDGET_WAITERS | No | How many over-budget request bodies may wait at once. | 8 |
| MCP_CONCURRENCY_WRITERS | No | Usage-log writer ceiling. | 1 |
| DATABASE_ALLOW_SUPERUSER | No | Allow the database role to be a PostgreSQL superuser. Normally the server refuses to start. | false |
| MCP_BODY_MEMORY_FRACTION | No | Fraction of the container memory limit used to derive the body-memory budget. 0.1–0.5. | 0.5 |
| MCP_CONCURRENCY_REQUESTS | No | Full MCP request ceiling, including open streams. | 32 |
| TASKS_SET_CANCELLED_DATE | No | update_task(status=cancelled) adds a cancelled date. | true |
| EMBEDDING_ALLOW_PLAINTEXT | No | Permit http to a non-loopback embedding host. | false |
| MCP_RATE_LIMIT_PER_MINUTE | No | Sustained tool calls per minute per principal. | 600 |
| SESSION_PURGE_RETAIN_DAYS | No | How long a dead panel session row is retained. | 7 |
| CHANGE_FEED_RETENTION_DAYS | No | How long get_changes history is kept, in days. 1–3650. | 90 |
| EMBEDDING_EXCLUDE_PATTERNS | No | Globs skipped by the embedder. | ["*.excalidraw.md","Excalidraw/*"] |
| KEY_CREATION_ACCOUNT_LIMIT | No | API keys one account may create per window. | 10 |
| KEY_CREATION_ADDRESS_LIMIT | No | API keys one client address may create per window. | 20 |
| KEY_MAX_ACTIVE_PER_ACCOUNT | No | Active API keys a non-admin account may hold. | 25 |
| MCP_BODY_MEMORY_MULTIPLIER | No | Divisor used with MCP_BODY_MEMORY_FRACTION to derive raw body bytes in flight. 8–32. | 8 |
| MCP_WRITE_RATE_LIMIT_BURST | No | Capacity of the write rate-limit bucket. | 30 |
| OAUTH_KNOWN_REDIRECT_HOSTS | No | Redirect hosts the consent screen badges as known connector destinations, as JSON or CSV. | claude.ai,chatgpt.com |
| TRANSFER_TOKEN_TTL_SECONDS | No | Default life of a transfer link in seconds. | 600 |
| CHANGE_FEED_LOCK_TIMEOUT_MS | No | How long an event write waits for the user's feed lock. 100–30000. | 2000 |
| DEFAULT_DAILY_REQUEST_LIMIT | No | Daily quota a newly created API key receives when the caller names none. | 5000 |
| EMBEDDING_QUERY_INSTRUCTION | No | Instruction prepended to every search query sent to the embedding provider, never to a note. | |
| KEY_CREATION_WINDOW_SECONDS | No | Fixed window for key-creation limits. | 3600 |
| MCP_AUTH_FAILURE_TABLE_SIZE | No | Counter slots in the fixed-size per-address auth-failure table. | 4096 |
| TASKS_NEXT_RECURRENCE_BELOW | No | Place a recurring task's next occurrence below the completed line. | false |
| TRANSFER_MAX_UPLOAD_SECONDS | No | How long one claimed upload may stream. | 600 |
| WRITE_PRECONDITION_REQUIRED | No | Require expected_hash on supported destructive calls. | false |
| INDEX_EXCLUDE_CONFLICT_FILES | No | Exclude sync-conflict copies from the index. | false |
| MCP_BODY_BUDGET_WAIT_SECONDS | No | How long a body that does not fit waits before its 429. | 15 |
| MCP_BODY_MEMORY_BUDGET_BYTES | No | The /mcp body-memory budget in bytes. Unset derives it from the container memory limit. | |
| MCP_CONCURRENCY_WAIT_SECONDS | No | Tool admission wait in enforce mode. 0–5 seconds. | 0 |
| MCP_REJECT_UNKNOWN_ARGUMENTS | No | Refuse tool calls carrying arguments the tool does not declare and publish additionalProperties: false. | true |
| OAUTH_CIMD_CACHE_MAX_SECONDS | No | Ceiling on how long a fetched client metadata document is cached. | 86400 |
| SESSION_TOUCH_INTERVAL_SECONDS | No | How stale a session's last_seen_at may get before a validated GET/HEAD rewrites it. | 60 |
| CHANGE_FEED_MAX_EVENTS_PER_PASS | No | Events one index pass itemises per user. 100–50000. | 2000 |
| INDEXER_DEGRADED_AFTER_FAILURES | No | Consecutive failures at which /health reports degraded. | 3 |
| MCP_AUTH_FAILURE_WINDOW_SECONDS | No | Window for MCP_AUTH_FAILURE_LIMIT. | 300 |
| MCP_WRITE_RATE_LIMIT_PER_MINUTE | No | Sustained vault-mutating calls per minute per principal. | 120 |
| TRANSFER_MAX_CONCURRENT_UPLOADS | No | Simultaneous upload streams. | 4 |
| CHANGE_FEED_MAX_EVENTS_PER_SCOPE | No | Maximum change-feed events kept per user. Minimum 1000. | 100000 |
| MCP_REFUSAL_LOG_INTERVAL_SECONDS | No | How long one rate/slot-refusal coalescing window stays open. | 10 |
| SEARCH_LOW_CONFIDENCE_SIMILARITY | No | Similarity threshold for confidence: low on semantic_search and hybrid_search. 0 disables. | 0 |
| MCP_LIMITER_MAX_TRACKED_PRINCIPALS | No | Principals holding their own limiter entry before sharing an overflow entry. | 10000 |
| OAUTH_GRANT_ABSOLUTE_LIFETIME_DAYS | No | Absolute lifetime of an OAuth grant in whole days. 1–365. | 90 |
| VAULT_ALLOW_NAMED_STAGING_FALLBACK | No | Accept named staging on filesystems without O_TMPFILE. | false |
| VAULT_ROOT_OBSERVE_TIMEOUT_SECONDS | No | How long the vault-root overlap check waits on one root before quarantining it. | 10 |
| INDEXER_QUARANTINE_RETRIES_PER_TICK | No | How many times one index pass may roll back and re-run a scope after quarantining a note. | 5 |
| OAUTH_CIMD_FETCHES_PER_ADDRESS_PER_MINUTE | No | Client metadata document fetches one client address may start per minute. | 10 |
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
ActivityMaintained
ResponsivenessNo recent community issues