Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
TEI_URLNoTEI endpoint used when EMBEDDING_PROVIDER is tei.http://tei:80
BASE_URLNoExplicit public origin. HTTPS except on loopback.
PANEL_CSPNoContent-Security-Policy mode for panel, login and consent pages: enforce, report-only, or off.enforce
CHUNK_SIZENoApproximate tokens per embedding chunk.512
OLLAMA_URLNoOllama endpoint. Must be https, loopback http, or covered by EMBEDDING_ALLOW_PLAINTEXT.http://ollama:11434
RERANK_URLNoFull URL of an optional Jina-compatible /v1/rerank endpoint.
SECRET_KEYYesitsdangerous signer key. Required; the app refuses to start with a placeholder value.
TASKS_RULENoWhich checkboxes count as tasks: all, fields, or filter.all
VAULT_PATHNoIn-container path to the Obsidian vault./obsidian
FTS_CONFIGSNoKeyword-search text-search config(s), as JSON or CSV.english
OIDC_ISSUERNoOIDC issuer URL. Required when OIDC_ENABLED is true.
TEI_API_KEYNoBearer token for a TEI server started with --api-key.
DATABASE_URLYesPostgreSQL 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_KNohybrid_search reciprocal-rank-fusion constant. 1–1000.60
MCP_HOSTNAMENoPublic hostname. Derives BASE_URL, ALLOWED_ORIGINS and ALLOWED_HOSTS. Required with BASE_URL for transfer tools.
OIDC_CA_FILENoPEM CA file trusted for OIDC provider requests.
OIDC_ENABLEDNoEnable browser SSO through an OpenID Connect provider.false
RANK_WEIGHTSNokeyword_search ts_rank_cd weight array {D,C,B,A}.{0.02, 0.2, 0.4, 1.0}
RERANK_MODELNoModel sent as model in the rerank request, at most 200 characters.
ALLOWED_HOSTSNoAccepted Host headers as a JSON list. localhost is always added.
CHUNK_OVERLAPNoToken overlap between chunks.0
OIDC_CLIENT_IDNoOIDC client ID. Required when OIDC_ENABLED is true.
OPENAI_API_KEYNoRequired when EMBEDDING_PROVIDER is openai.
ALLOWED_ORIGINSNoCORS origins as a JSON list.
EMBEDDING_MODELNoOllama embedding model name. Changing it after deploy requires make reset-embeddings.bge-m3
MULTI_USER_MODENoEnable in-app login and per-user vault scoping.false
OPENAI_BASE_URLNoOverride for Azure, proxies, or any OpenAI-compatible embeddings server.https://api.openai.com/v1
SESSION_MAX_AGENoPanel session lifetime in seconds in multi-user mode.604800
TASKS_RULE_TAGSNoComma-separated task tags for the fields rule, such as waiting,someday. At most 32 tags.
MCP_SANDBOX_MODENoRegistry-evaluation only. Skips DB, indexer, embedding provider, and /mcp auth.false
DATABASE_SSL_MODENoDatabase TLS mode: disable, prefer, require, verify-ca, or verify-full.prefer
EMBEDDING_CA_FILENoPEM trust anchor for an https embedding endpoint behind an internal CA.
IMPORT_ALLOW_HTTPNoAllow import_from_url to fetch plain http.false
OIDC_DISPLAY_NAMENoDisplay name for the SSO login button.SSO
OIDC_EXTRA_SCOPESNoExtra space-separated OAuth scopes to request after openid email profile.
OLLAMA_KEEP_ALIVENoHow long Ollama keeps the model resident. -1 pins it.-1
RERANK_TIMEOUT_MSNoDeadline for one rerank call. 100–30000.1500
EMBEDDING_PROVIDERNoEmbedding provider: ollama, openai, or tei.ollama
OAUTH_CIMD_ENABLEDNoAccept OAuth Client ID Metadata Documents and advertise client_id_metadata_document_supported.true
OIDC_CLIENT_SECRETNoOIDC client secret. Required when OIDC_ENABLED is true.
LOCAL_LOGIN_ENABLEDNoEnable the panel password form in multi-user mode.true
MAX_FILE_READ_BYTESNoread_file cap in bytes.10485760
OIDC_REQUIRED_GROUPNoOptional exact, case-sensitive group that must be present in the ID token groups array.
SESSION_COOKIE_NAMENoPanel session cookie name.omcp_session
TASKS_GLOBAL_FILTERNoFilter text for the filter task rule, such as #task. Quote it in .env.
TASKS_SET_DONE_DATENocomplete_task adds a done date.true
TEI_EMBEDDING_MODELNoMust equal the model_id the TEI server reports at GET /info.BAAI/bge-m3
DATABASE_SSL_CA_FILENoCA bundle (PEM) for DATABASE_SSL_MODE verify-ca or verify-full.
EMBEDDING_DIMENSIONSNopgvector column width.1024
KEYWORD_SNIPPET_ROWSNoRows per keyword_search page that get a snippet. 0–100.20
MAX_FILE_WRITE_BYTESNowrite_file cap in bytes.26214400
MCP_CONCURRENCY_AUTHNoAuthentication database-session ceiling.2
MCP_CONCURRENCY_MODENoConcurrency admission mode: off, shadow, or enforce.shadow
MCP_RATE_LIMIT_BURSTNoCapacity of the general rate-limit bucket.120
RERANK_MAX_DOCUMENTSNoThe most documents one rerank call sends. 50–200.100
TEI_EMBED_BATCH_SIZENoInputs per native TEI /embed request. 1–256.16
DATABASE_SSL_KEY_FILENoClient private key for DATABASE_SSL_CERT_FILE.
KEYWORD_EXCERPT_CHARSNoLeading characters of each note's indexed text stored for keyword_search snippets. 1000–100000.20000
MCP_CONCURRENCY_TOOLSNoGlobal tool ceiling in enforce mode.4
OIDC_SUBJECT_USER_IDSNoRetired. Any non-empty value refuses startup; links are made in the panel.
DATABASE_SSL_CERT_FILENoClient certificate (PEM) for strict database TLS modes.
INDEX_INTERVAL_SECONDSNoPeriodic reindex cadence in seconds.300
MCP_AUTH_FAILURE_LIMITNoFailed /mcp authentications one client address may make per window before a 429.60
OIDC_TOKEN_AUTH_METHODNoOIDC token endpoint auth method: client_secret_basic or client_secret_post.client_secret_basic
OPENAI_EMBEDDING_MODELNoOpenAI embedding model. Changing it after deploy requires make reset-embeddings.text-embedding-3-small
RERANK_ALLOW_PLAINTEXTNoPermit http to a non-loopback reranker host.false
TASKS_DEFAULT_TIMEZONENoIANA timezone for resolving today and relative dates in task tools.UTC
TASKS_SET_CREATED_DATENoadd_task and recurring next occurrences get a created date.false
MAX_READ_RESPONSE_CHARSNoCap on what read_note and read_file return to the caller.40000
MCP_BODY_BUDGET_WAITERSNoHow many over-budget request bodies may wait at once.8
MCP_CONCURRENCY_WRITERSNoUsage-log writer ceiling.1
DATABASE_ALLOW_SUPERUSERNoAllow the database role to be a PostgreSQL superuser. Normally the server refuses to start.false
MCP_BODY_MEMORY_FRACTIONNoFraction of the container memory limit used to derive the body-memory budget. 0.1–0.5.0.5
MCP_CONCURRENCY_REQUESTSNoFull MCP request ceiling, including open streams.32
TASKS_SET_CANCELLED_DATENoupdate_task(status=cancelled) adds a cancelled date.true
EMBEDDING_ALLOW_PLAINTEXTNoPermit http to a non-loopback embedding host.false
MCP_RATE_LIMIT_PER_MINUTENoSustained tool calls per minute per principal.600
SESSION_PURGE_RETAIN_DAYSNoHow long a dead panel session row is retained.7
CHANGE_FEED_RETENTION_DAYSNoHow long get_changes history is kept, in days. 1–3650.90
EMBEDDING_EXCLUDE_PATTERNSNoGlobs skipped by the embedder.["*.excalidraw.md","Excalidraw/*"]
KEY_CREATION_ACCOUNT_LIMITNoAPI keys one account may create per window.10
KEY_CREATION_ADDRESS_LIMITNoAPI keys one client address may create per window.20
KEY_MAX_ACTIVE_PER_ACCOUNTNoActive API keys a non-admin account may hold.25
MCP_BODY_MEMORY_MULTIPLIERNoDivisor used with MCP_BODY_MEMORY_FRACTION to derive raw body bytes in flight. 8–32.8
MCP_WRITE_RATE_LIMIT_BURSTNoCapacity of the write rate-limit bucket.30
OAUTH_KNOWN_REDIRECT_HOSTSNoRedirect hosts the consent screen badges as known connector destinations, as JSON or CSV.claude.ai,chatgpt.com
TRANSFER_TOKEN_TTL_SECONDSNoDefault life of a transfer link in seconds.600
CHANGE_FEED_LOCK_TIMEOUT_MSNoHow long an event write waits for the user's feed lock. 100–30000.2000
DEFAULT_DAILY_REQUEST_LIMITNoDaily quota a newly created API key receives when the caller names none.5000
EMBEDDING_QUERY_INSTRUCTIONNoInstruction prepended to every search query sent to the embedding provider, never to a note.
KEY_CREATION_WINDOW_SECONDSNoFixed window for key-creation limits.3600
MCP_AUTH_FAILURE_TABLE_SIZENoCounter slots in the fixed-size per-address auth-failure table.4096
TASKS_NEXT_RECURRENCE_BELOWNoPlace a recurring task's next occurrence below the completed line.false
TRANSFER_MAX_UPLOAD_SECONDSNoHow long one claimed upload may stream.600
WRITE_PRECONDITION_REQUIREDNoRequire expected_hash on supported destructive calls.false
INDEX_EXCLUDE_CONFLICT_FILESNoExclude sync-conflict copies from the index.false
MCP_BODY_BUDGET_WAIT_SECONDSNoHow long a body that does not fit waits before its 429.15
MCP_BODY_MEMORY_BUDGET_BYTESNoThe /mcp body-memory budget in bytes. Unset derives it from the container memory limit.
MCP_CONCURRENCY_WAIT_SECONDSNoTool admission wait in enforce mode. 0–5 seconds.0
MCP_REJECT_UNKNOWN_ARGUMENTSNoRefuse tool calls carrying arguments the tool does not declare and publish additionalProperties: false.true
OAUTH_CIMD_CACHE_MAX_SECONDSNoCeiling on how long a fetched client metadata document is cached.86400
SESSION_TOUCH_INTERVAL_SECONDSNoHow stale a session's last_seen_at may get before a validated GET/HEAD rewrites it.60
CHANGE_FEED_MAX_EVENTS_PER_PASSNoEvents one index pass itemises per user. 100–50000.2000
INDEXER_DEGRADED_AFTER_FAILURESNoConsecutive failures at which /health reports degraded.3
MCP_AUTH_FAILURE_WINDOW_SECONDSNoWindow for MCP_AUTH_FAILURE_LIMIT.300
MCP_WRITE_RATE_LIMIT_PER_MINUTENoSustained vault-mutating calls per minute per principal.120
TRANSFER_MAX_CONCURRENT_UPLOADSNoSimultaneous upload streams.4
CHANGE_FEED_MAX_EVENTS_PER_SCOPENoMaximum change-feed events kept per user. Minimum 1000.100000
MCP_REFUSAL_LOG_INTERVAL_SECONDSNoHow long one rate/slot-refusal coalescing window stays open.10
SEARCH_LOW_CONFIDENCE_SIMILARITYNoSimilarity threshold for confidence: low on semantic_search and hybrid_search. 0 disables.0
MCP_LIMITER_MAX_TRACKED_PRINCIPALSNoPrincipals holding their own limiter entry before sharing an overflow entry.10000
OAUTH_GRANT_ABSOLUTE_LIFETIME_DAYSNoAbsolute lifetime of an OAuth grant in whole days. 1–365.90
VAULT_ALLOW_NAMED_STAGING_FALLBACKNoAccept named staging on filesystems without O_TMPFILE.false
VAULT_ROOT_OBSERVE_TIMEOUT_SECONDSNoHow long the vault-root overlap check waits on one root before quarantining it.10
INDEXER_QUARANTINE_RETRIES_PER_TICKNoHow many times one index pass may roll back and re-run a scope after quarantining a note.5
OAUTH_CIMD_FETCHES_PER_ADDRESS_PER_MINUTENoClient 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

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