Skip to content

Environment Variables

These variables are read by the Graphnosis sidecar (graphnosis-sidecar). Set them in the env block of your MCP client config, or in your shell environment when running the sidecar directly.

Core

VariableRequiredDefaultDescription
GRAPHNOSIS_CORTEX_PATHYesAbsolute path to the Cortex folder. The sidecar will not start without this.
GRAPHNOSIS_PASSPHRASENoUnlock the Cortex non-interactively. Use only in trusted environments. If not set, the app prompts the user via the menu bar UI.
GRAPHNOSIS_GRAPHSNoall graphsComma-separated list of graph names to expose via MCP. Unlisted graphs are invisible to AI clients. Example: work,research.

Embedding

VariableRequiredDefaultDescription
GRAPHNOSIS_EMBED_CONCURRENCYNo2Number of concurrent embedding worker processes. Increase on machines with more cores to speed up ingest.
GRAPHNOSIS_EMBED_MODEL_DIRNo<cortex>/modelsOverride the directory where the ONNX embedding model is stored. Useful if you want to share the model cache across multiple Cortexes.

MCP server

VariableRequiredDefaultDescription
GRAPHNOSIS_MCP_TRANSPORTNostdioTransport to use. Accepted values: stdio, unix. Use unix to listen on a Unix socket instead of stdio.
GRAPHNOSIS_MCP_SOCKETNo~/.graphnosis/mcp.sockPath for the Unix socket. Only used when GRAPHNOSIS_MCP_TRANSPORT=unix.

Corrections (Ollama)

VariableRequiredDefaultDescription
GRAPHNOSIS_OLLAMA_URLNohttp://localhost:11434Base URL for the Ollama API. Override if Ollama is running on a different port or host.
GRAPHNOSIS_OLLAMA_MODELNollama3.2:3b-instruct-q4_K_MOllama model to use for the correction diff flow. Must be pulled before use.

Logging

VariableRequiredDefaultDescription
GRAPHNOSIS_LOG_LEVELNoinfoLog verbosity. Accepted values: error, warn, info, debug, trace.
GRAPHNOSIS_LOG_FILENostderrAbsolute path to write log output. If not set, logs go to stderr (visible in the Tauri dev terminal).

Example: Claude Desktop config with env vars

{
"mcpServers": {
"graphnosis": {
"command": "/Applications/Graphnosis.app/Contents/MacOS/graphnosis-sidecar",
"args": ["--mcp-stdio"],
"env": {
"GRAPHNOSIS_CORTEX_PATH": "/Users/you/Documents/MyCortex",
"GRAPHNOSIS_GRAPHS": "work,research",
"GRAPHNOSIS_LOG_LEVEL": "warn"
}
}
}
}

Security note on GRAPHNOSIS_PASSPHRASE

Passing your passphrase as an environment variable means it may be visible in process listings (ps aux) and in the MCP client config file on disk. Only use this in environments where you control the machine and trust the software reading the config. For interactive use, leave this variable unset and use the app’s unlock prompt instead.