Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-devinmlowe-engram": {
"command": "npx",
"args": [
"-y",
"@devinmlowe/engram"
],
"env": {
"ENGRAM_DB_PATH": "<VALUE>",
"ENGRAM_MCP_PORT": "<VALUE>",
"ENGRAM_MCP_TOKEN": "<YOUR_VALUE>",
"ENGRAM_MCP_STANDALONE": "<VALUE>",
"OLLAMA_HOST": "http://localhost:11434",
"ENGRAM_DATA_DIR": "<VALUE>",
"ENGRAM_LOGS_DIR": "<VALUE>",
"ENGRAM_MCP_HOST": "127.0.0.1",
"ANTHROPIC_API_KEY": "<VALUE>",
"ENGRAM_ARCHIVE_DIR": "<VALUE>",
"ENGRAM_LOCAL_MODEL": "qwen2.5:7b",
"OPENROUTER_API_KEY": "<VALUE>",
"ENGRAM_HTTP_WORKERS": "2",
"ENGRAM_OPENAI_MODEL": "<VALUE>",
"ENGRAM_LLM_PROVIDERS": "ollama,openai,openrouter,anthropic",
"ENGRAM_EMBEDDING_DIMS": "256",
"ENGRAM_LLM_TIMEOUT_MS": "120000",
"ENGRAM_RERANK_ENABLED": "true",
"ENGRAM_SKIP_PREFLIGHT": "<VALUE>",
"ENGRAM_MODEL_CACHE_DIR": "<VALUE>",
"ENGRAM_NO_UPDATE_CHECK": "<VALUE>",
"ENGRAM_OPENAI_BASE_URL": "https://api.openai.com/v1",
"ENGRAM_OPENROUTER_MODEL": "google/gemini-2.5-flash-lite",
"ENGRAM_CHUNKING_STRATEGY": "fixed",
"ENGRAM_WORKER_TIMEOUT_MS": "8000",
"ENGRAM_OPENAI_API_KEY_ENV": "OPENAI_API_KEY",
"ENGRAM_OPENAI_TEMPERATURE": "<VALUE>",
"ENGRAM_CLAUDE_PROJECTS_DIR": "<VALUE>",
"ENGRAM_FORGET_RETENTION_DAYS": "30",
"ENGRAM_LOCAL_MODEL_FALLBACKS": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-devinmlowe-engram": {
"command": "npx",
"args": [
"-y",
"@devinmlowe/engram"
],
"env": {
"ENGRAM_DB_PATH": "<VALUE>",
"ENGRAM_MCP_PORT": "<VALUE>",
"ENGRAM_MCP_TOKEN": "<YOUR_VALUE>",
"ENGRAM_MCP_STANDALONE": "<VALUE>",
"OLLAMA_HOST": "http://localhost:11434",
"ENGRAM_DATA_DIR": "<VALUE>",
"ENGRAM_LOGS_DIR": "<VALUE>",
"ENGRAM_MCP_HOST": "127.0.0.1",
"ANTHROPIC_API_KEY": "<VALUE>",
"ENGRAM_ARCHIVE_DIR": "<VALUE>",
"ENGRAM_LOCAL_MODEL": "qwen2.5:7b",
"OPENROUTER_API_KEY": "<VALUE>",
"ENGRAM_HTTP_WORKERS": "2",
"ENGRAM_OPENAI_MODEL": "<VALUE>",
"ENGRAM_LLM_PROVIDERS": "ollama,openai,openrouter,anthropic",
"ENGRAM_EMBEDDING_DIMS": "256",
"ENGRAM_LLM_TIMEOUT_MS": "120000",
"ENGRAM_RERANK_ENABLED": "true",
"ENGRAM_SKIP_PREFLIGHT": "<VALUE>",
"ENGRAM_MODEL_CACHE_DIR": "<VALUE>",
"ENGRAM_NO_UPDATE_CHECK": "<VALUE>",
"ENGRAM_OPENAI_BASE_URL": "https://api.openai.com/v1",
"ENGRAM_OPENROUTER_MODEL": "google/gemini-2.5-flash-lite",
"ENGRAM_CHUNKING_STRATEGY": "fixed",
"ENGRAM_WORKER_TIMEOUT_MS": "8000",
"ENGRAM_OPENAI_API_KEY_ENV": "OPENAI_API_KEY",
"ENGRAM_OPENAI_TEMPERATURE": "<VALUE>",
"ENGRAM_CLAUDE_PROJECTS_DIR": "<VALUE>",
"ENGRAM_FORGET_RETENTION_DAYS": "30",
"ENGRAM_LOCAL_MODEL_FALLBACKS": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-devinmlowe-engram": {
"command": "npx",
"args": [
"-y",
"@devinmlowe/engram"
],
"env": {
"ENGRAM_DB_PATH": "<VALUE>",
"ENGRAM_MCP_PORT": "<VALUE>",
"ENGRAM_MCP_TOKEN": "<YOUR_VALUE>",
"ENGRAM_MCP_STANDALONE": "<VALUE>",
"OLLAMA_HOST": "http://localhost:11434",
"ENGRAM_DATA_DIR": "<VALUE>",
"ENGRAM_LOGS_DIR": "<VALUE>",
"ENGRAM_MCP_HOST": "127.0.0.1",
"ANTHROPIC_API_KEY": "<VALUE>",
"ENGRAM_ARCHIVE_DIR": "<VALUE>",
"ENGRAM_LOCAL_MODEL": "qwen2.5:7b",
"OPENROUTER_API_KEY": "<VALUE>",
"ENGRAM_HTTP_WORKERS": "2",
"ENGRAM_OPENAI_MODEL": "<VALUE>",
"ENGRAM_LLM_PROVIDERS": "ollama,openai,openrouter,anthropic",
"ENGRAM_EMBEDDING_DIMS": "256",
"ENGRAM_LLM_TIMEOUT_MS": "120000",
"ENGRAM_RERANK_ENABLED": "true",
"ENGRAM_SKIP_PREFLIGHT": "<VALUE>",
"ENGRAM_MODEL_CACHE_DIR": "<VALUE>",
"ENGRAM_NO_UPDATE_CHECK": "<VALUE>",
"ENGRAM_OPENAI_BASE_URL": "https://api.openai.com/v1",
"ENGRAM_OPENROUTER_MODEL": "google/gemini-2.5-flash-lite",
"ENGRAM_CHUNKING_STRATEGY": "fixed",
"ENGRAM_WORKER_TIMEOUT_MS": "8000",
"ENGRAM_OPENAI_API_KEY_ENV": "OPENAI_API_KEY",
"ENGRAM_OPENAI_TEMPERATURE": "<VALUE>",
"ENGRAM_CLAUDE_PROJECTS_DIR": "<VALUE>",
"ENGRAM_FORGET_RETENTION_DAYS": "30",
"ENGRAM_LOCAL_MODEL_FALLBACKS": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-devinmlowe-engram": {
"command": "npx",
"args": [
"-y",
"@devinmlowe/engram"
],
"env": {
"ENGRAM_DB_PATH": "<VALUE>",
"ENGRAM_MCP_PORT": "<VALUE>",
"ENGRAM_MCP_TOKEN": "<YOUR_VALUE>",
"ENGRAM_MCP_STANDALONE": "<VALUE>",
"OLLAMA_HOST": "http://localhost:11434",
"ENGRAM_DATA_DIR": "<VALUE>",
"ENGRAM_LOGS_DIR": "<VALUE>",
"ENGRAM_MCP_HOST": "127.0.0.1",
"ANTHROPIC_API_KEY": "<VALUE>",
"ENGRAM_ARCHIVE_DIR": "<VALUE>",
"ENGRAM_LOCAL_MODEL": "qwen2.5:7b",
"OPENROUTER_API_KEY": "<VALUE>",
"ENGRAM_HTTP_WORKERS": "2",
"ENGRAM_OPENAI_MODEL": "<VALUE>",
"ENGRAM_LLM_PROVIDERS": "ollama,openai,openrouter,anthropic",
"ENGRAM_EMBEDDING_DIMS": "256",
"ENGRAM_LLM_TIMEOUT_MS": "120000",
"ENGRAM_RERANK_ENABLED": "true",
"ENGRAM_SKIP_PREFLIGHT": "<VALUE>",
"ENGRAM_MODEL_CACHE_DIR": "<VALUE>",
"ENGRAM_NO_UPDATE_CHECK": "<VALUE>",
"ENGRAM_OPENAI_BASE_URL": "https://api.openai.com/v1",
"ENGRAM_OPENROUTER_MODEL": "google/gemini-2.5-flash-lite",
"ENGRAM_CHUNKING_STRATEGY": "fixed",
"ENGRAM_WORKER_TIMEOUT_MS": "8000",
"ENGRAM_OPENAI_API_KEY_ENV": "OPENAI_API_KEY",
"ENGRAM_OPENAI_TEMPERATURE": "<VALUE>",
"ENGRAM_CLAUDE_PROJECTS_DIR": "<VALUE>",
"ENGRAM_FORGET_RETENTION_DAYS": "30",
"ENGRAM_LOCAL_MODEL_FALLBACKS": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-devinmlowe-engram": {
"command": "npx",
"args": [
"-y",
"@devinmlowe/engram"
],
"env": {
"ENGRAM_DB_PATH": "<VALUE>",
"ENGRAM_MCP_PORT": "<VALUE>",
"ENGRAM_MCP_TOKEN": "<YOUR_VALUE>",
"ENGRAM_MCP_STANDALONE": "<VALUE>",
"OLLAMA_HOST": "http://localhost:11434",
"ENGRAM_DATA_DIR": "<VALUE>",
"ENGRAM_LOGS_DIR": "<VALUE>",
"ENGRAM_MCP_HOST": "127.0.0.1",
"ANTHROPIC_API_KEY": "<VALUE>",
"ENGRAM_ARCHIVE_DIR": "<VALUE>",
"ENGRAM_LOCAL_MODEL": "qwen2.5:7b",
"OPENROUTER_API_KEY": "<VALUE>",
"ENGRAM_HTTP_WORKERS": "2",
"ENGRAM_OPENAI_MODEL": "<VALUE>",
"ENGRAM_LLM_PROVIDERS": "ollama,openai,openrouter,anthropic",
"ENGRAM_EMBEDDING_DIMS": "256",
"ENGRAM_LLM_TIMEOUT_MS": "120000",
"ENGRAM_RERANK_ENABLED": "true",
"ENGRAM_SKIP_PREFLIGHT": "<VALUE>",
"ENGRAM_MODEL_CACHE_DIR": "<VALUE>",
"ENGRAM_NO_UPDATE_CHECK": "<VALUE>",
"ENGRAM_OPENAI_BASE_URL": "https://api.openai.com/v1",
"ENGRAM_OPENROUTER_MODEL": "google/gemini-2.5-flash-lite",
"ENGRAM_CHUNKING_STRATEGY": "fixed",
"ENGRAM_WORKER_TIMEOUT_MS": "8000",
"ENGRAM_OPENAI_API_KEY_ENV": "OPENAI_API_KEY",
"ENGRAM_OPENAI_TEMPERATURE": "<VALUE>",
"ENGRAM_CLAUDE_PROJECTS_DIR": "<VALUE>",
"ENGRAM_FORGET_RETENTION_DAYS": "30",
"ENGRAM_LOCAL_MODEL_FALLBACKS": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-devinmlowe-engram": {
"command": "npx",
"args": [
"-y",
"@devinmlowe/engram"
],
"env": {
"ENGRAM_DB_PATH": "<VALUE>",
"ENGRAM_MCP_PORT": "<VALUE>",
"ENGRAM_MCP_TOKEN": "<YOUR_VALUE>",
"ENGRAM_MCP_STANDALONE": "<VALUE>",
"OLLAMA_HOST": "http://localhost:11434",
"ENGRAM_DATA_DIR": "<VALUE>",
"ENGRAM_LOGS_DIR": "<VALUE>",
"ENGRAM_MCP_HOST": "127.0.0.1",
"ANTHROPIC_API_KEY": "<VALUE>",
"ENGRAM_ARCHIVE_DIR": "<VALUE>",
"ENGRAM_LOCAL_MODEL": "qwen2.5:7b",
"OPENROUTER_API_KEY": "<VALUE>",
"ENGRAM_HTTP_WORKERS": "2",
"ENGRAM_OPENAI_MODEL": "<VALUE>",
"ENGRAM_LLM_PROVIDERS": "ollama,openai,openrouter,anthropic",
"ENGRAM_EMBEDDING_DIMS": "256",
"ENGRAM_LLM_TIMEOUT_MS": "120000",
"ENGRAM_RERANK_ENABLED": "true",
"ENGRAM_SKIP_PREFLIGHT": "<VALUE>",
"ENGRAM_MODEL_CACHE_DIR": "<VALUE>",
"ENGRAM_NO_UPDATE_CHECK": "<VALUE>",
"ENGRAM_OPENAI_BASE_URL": "https://api.openai.com/v1",
"ENGRAM_OPENROUTER_MODEL": "google/gemini-2.5-flash-lite",
"ENGRAM_CHUNKING_STRATEGY": "fixed",
"ENGRAM_WORKER_TIMEOUT_MS": "8000",
"ENGRAM_OPENAI_API_KEY_ENV": "OPENAI_API_KEY",
"ENGRAM_OPENAI_TEMPERATURE": "<VALUE>",
"ENGRAM_CLAUDE_PROJECTS_DIR": "<VALUE>",
"ENGRAM_FORGET_RETENTION_DAYS": "30",
"ENGRAM_LOCAL_MODEL_FALLBACKS": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| ENGRAM_DB_PATH | No | SQLite database location |
| ENGRAM_MCP_PORT | No | Port of the optional engram HTTP daemon to bridge to (default 9907) |
| ENGRAM_MCP_TOKEN secret | No | When set, /mcp requires Authorization: Bearer <token> (401 otherwise); /health stays open for supervisors. Required before the daemon will bind anything but loopback |
| ENGRAM_MCP_STANDALONE | No | 1 makes a stdio start run inline even when the daemon is healthy |
| OLLAMA_HOST | No | Ollama endpoint; used first if reachable Default: http://localhost:11434 |
| ENGRAM_DATA_DIR | No | Root for database, archive, and logs |
| ENGRAM_LOGS_DIR | No | Log directory |
| ENGRAM_MCP_HOST | No | Bind address. Anything but loopback is refused unless ENGRAM_MCP_TOKEN is set Default: 127.0.0.1 |
| ANTHROPIC_API_KEY | No | Enables the Anthropic provider (final tier of the LLM cascade) |
| ENGRAM_ARCHIVE_DIR | No | Conversation archive directory |
| ENGRAM_LOCAL_MODEL | No | Ollama model name (must be pulled on the Ollama host) Default: qwen2.5:7b |
| OPENROUTER_API_KEY | No | Enables the OpenRouter provider |
| ENGRAM_HTTP_WORKERS | No | Worker count in HTTP mode (0 = run tool calls inline on the main thread) Default: 2 |
| ENGRAM_OPENAI_MODEL | No | Model served by that route; setting it activates the `openai` tier |
| ENGRAM_LLM_PROVIDERS | No | Tier order, comma-separated. A tier left out is never tried; unknown names are ignored with a warning Default: ollama,openai,openrouter,anthropic |
| ENGRAM_EMBEDDING_DIMS | No | Matryoshka embedding dimensions (must match the existing DB) Default: 256 |
| ENGRAM_LLM_TIMEOUT_MS | No | Per-request timeout for every tier. Raise it for a slow local model Default: 120000 |
| ENGRAM_RERANK_ENABLED | No | Set to false or 0 to disable the cross-encoder reranker Default: true |
| ENGRAM_SKIP_PREFLIGHT | No | Set to 1 to silence the npm install platform preflight |
| ENGRAM_MODEL_CACHE_DIR | No | Where model weights are downloaded/cached; never inside node_modules |
| ENGRAM_NO_UPDATE_CHECK | No | Set to 1 to disable the automatic daily version lookup and notice |
| ENGRAM_OPENAI_BASE_URL | No | Generic OpenAI-compatible route: OpenAI, a LiteLLM gateway, a self-hosted server. A bare origin gets `/v1` appended Default: https://api.openai.com/v1 |
| ENGRAM_OPENROUTER_MODEL | No | OpenRouter model name Default: google/gemini-2.5-flash-lite |
| ENGRAM_CHUNKING_STRATEGY | No | fixed or adaptive (content-aware boundaries) Default: fixed |
| ENGRAM_WORKER_TIMEOUT_MS | No | Per-call timeout; remember, remember_batch, index_file_structure and reflect --refresh use higher floors. Default: 8000 |
| ENGRAM_OPENAI_API_KEY_ENV | No | Name of the environment variable holding the route's credential. Engram reads it at call time and never stores, prints or commits the value Default: OPENAI_API_KEY |
| ENGRAM_OPENAI_TEMPERATURE | No | Sent only when set; the generic route omits `temperature` by default because many gateways and reasoning models reject it |
| ENGRAM_CLAUDE_PROJECTS_DIR | No | Where engram sync looks for Claude Code conversations |
| ENGRAM_FORGET_RETENTION_DAYS | No | Days a forgotten memory is kept before hard-delete Default: 30 |
| ENGRAM_LOCAL_MODEL_FALLBACKS | No | Comma-separated Ollama models tried in order when ENGRAM_LOCAL_MODEL is not pulled |