Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
QKB_CONFIGNoPath to an alternative config.toml file (points qkb at a different config file entirely).
QKB_RERANKNoEnable reranking by default (config.toml key: rerank.enabled).
QKB_DB_PATHNoPath to the SQLite database file (config.toml key: database.path). Default: ~/.local/share/qkb/qkb.db.
QKB_MCP_HOSTNoHost to bind the HTTP MCP server to (config.toml key: mcp.host). Default: 127.0.0.1.
QKB_MCP_PORTNoPort for the HTTP MCP server (config.toml key: mcp.port). Default: 8181.
QKB_EXPANSIONNoEnable query expansion by default (config.toml key: expansion.enabled).
QKB_VAULT_NAMENoVault name used to build obsidian:// links (config.toml key: vault.name).
QKB_VAULT_PATHNoPath to your Obsidian vault (config.toml key: vault.path). Names exactly one vault; when set, replaces a configured [[vaults]] list.
QKB_OLLAMA_HOSTNoOllama HTTP API host (config.toml key: embedding.ollama_host). Default: http://localhost:11434.
QKB_EMBEDDING_DIMNoEmbedding dimension (config.toml key: embedding.dimension). Default: 768.
QKB_OPENAI_API_KEYNoOpenAI API key (environment variable only — never stored in config.toml). Required when embedding.provider is openai.
QKB_WATCH_INTERVALNoSeconds between re-index runs in watch mode (config.toml key: watch.interval). Default: 300.
QKB_ALLOWED_ORIGINSNoComma-separated browser origins allowed besides loopback; ["*"] disables the check (config.toml key: mcp.allowed_origins).
QKB_EMBEDDING_MODELNoEmbedding model name (config.toml key: embedding.model). Default: embeddinggemma-300M-Q8_0.
QKB_LOCAL_GGUF_FILENoGGUF file name within the repo (config.toml key: embedding.local_gguf_file). Default: embeddinggemma-300M-Q8_0.gguf.
QKB_LOCAL_GGUF_REPONoHugging Face repo for the local GGUF model (config.toml key: embedding.local_gguf_repo). Default: ggml-org/embeddinggemma-300M-GGUF.
QKB_MODEL_CACHE_DIRNoDirectory where downloaded models are cached (config.toml key: embedding.model_cache_dir). Default: ~/.cache/qkb/models.
QKB_OPENAI_BASE_URLNoBase URL for an OpenAI-compatible /v1/embeddings endpoint (config.toml key: embedding.openai_base_url).
QKB_RERANK_PROVIDERNoReranker provider: llama | fake (config.toml key: rerank.provider).
QKB_EMBEDDING_PROVIDERNoEmbedding provider: llama | ollama | openai | fake (config.toml key: embedding.provider). Default: llama.
QKB_EXPANSION_PROVIDERNoQuery expansion provider: llama | fake (config.toml key: expansion.provider).
QKB_EMBEDDING_DOC_TEMPLATENoExplicit "{t}"-placeholder document prompt template, overriding the per-model default asymmetric prefixing (config.toml key: embedding.doc_template).
QKB_EMBEDDING_QUERY_TEMPLATENoExplicit "{t}"-placeholder query prompt template, overriding the per-model default asymmetric prefixing (config.toml key: embedding.query_template).

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