A

Aletheia Mem

by mohamed-ashraf-elsaed · io.github.mohamed-ashraf-elsaed/aletheia-mem

Provides AI coding tools with one local SQLite memory and rules store they can read over MCP, REST or the CLI, so facts, sessions and goals persist across sessions and shared rules are written into each tool's own instruction file. Runs entirely on your machine with no account, telemetry or network calls by default.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-mohamed-ashraf-elsaed-aletheia-mem": {
      "command": "npx",
      "args": [
        "-y",
        "aletheia-mem"
      ],
      "env": {
        "ALETHEIA_CWD": "<VALUE>",
        "ALETHEIA_HOST": "127.0.0.1",
        "ALETHEIA_PORT": "37790",
        "ALETHEIA_TOOL": "<VALUE>",
        "CLAUDE_MEM_DB": "~/.claude-mem/claude-mem.db",
        "ALETHEIA_HUB_DB": "<data dir>/hub.db",
        "ALETHEIA_API_KEY": "",
        "ALETHEIA_DATA_DIR": "~/.aletheia",
        "ALETHEIA_PROVIDER": "none",
        "ALETHEIA_PROVIDERS": "",
        "ALETHEIA_BUG_COMPAT": "off",
        "ALETHEIA_RULES_FILE": "<data dir>/MY-RULES.md",
        "ALETHEIA_OPENAI_MODEL": "",
        "ALETHEIA_OPENAI_API_KEY": "",
        "ALETHEIA_OPENAI_BASE_URL": "OpenRouter URL",
        "ALETHEIA_OUTPUT_LANGUAGE": ""
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-mohamed-ashraf-elsaed-aletheia-mem": {
      "command": "npx",
      "args": [
        "-y",
        "aletheia-mem"
      ],
      "env": {
        "ALETHEIA_CWD": "<VALUE>",
        "ALETHEIA_HOST": "127.0.0.1",
        "ALETHEIA_PORT": "37790",
        "ALETHEIA_TOOL": "<VALUE>",
        "CLAUDE_MEM_DB": "~/.claude-mem/claude-mem.db",
        "ALETHEIA_HUB_DB": "<data dir>/hub.db",
        "ALETHEIA_API_KEY": "",
        "ALETHEIA_DATA_DIR": "~/.aletheia",
        "ALETHEIA_PROVIDER": "none",
        "ALETHEIA_PROVIDERS": "",
        "ALETHEIA_BUG_COMPAT": "off",
        "ALETHEIA_RULES_FILE": "<data dir>/MY-RULES.md",
        "ALETHEIA_OPENAI_MODEL": "",
        "ALETHEIA_OPENAI_API_KEY": "",
        "ALETHEIA_OPENAI_BASE_URL": "OpenRouter URL",
        "ALETHEIA_OUTPUT_LANGUAGE": ""
      }
    }
  }
}

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
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-mohamed-ashraf-elsaed-aletheia-mem": {
      "command": "npx",
      "args": [
        "-y",
        "aletheia-mem"
      ],
      "env": {
        "ALETHEIA_CWD": "<VALUE>",
        "ALETHEIA_HOST": "127.0.0.1",
        "ALETHEIA_PORT": "37790",
        "ALETHEIA_TOOL": "<VALUE>",
        "CLAUDE_MEM_DB": "~/.claude-mem/claude-mem.db",
        "ALETHEIA_HUB_DB": "<data dir>/hub.db",
        "ALETHEIA_API_KEY": "",
        "ALETHEIA_DATA_DIR": "~/.aletheia",
        "ALETHEIA_PROVIDER": "none",
        "ALETHEIA_PROVIDERS": "",
        "ALETHEIA_BUG_COMPAT": "off",
        "ALETHEIA_RULES_FILE": "<data dir>/MY-RULES.md",
        "ALETHEIA_OPENAI_MODEL": "",
        "ALETHEIA_OPENAI_API_KEY": "",
        "ALETHEIA_OPENAI_BASE_URL": "OpenRouter URL",
        "ALETHEIA_OUTPUT_LANGUAGE": ""
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-mohamed-ashraf-elsaed-aletheia-mem": {
      "command": "npx",
      "args": [
        "-y",
        "aletheia-mem"
      ],
      "env": {
        "ALETHEIA_CWD": "<VALUE>",
        "ALETHEIA_HOST": "127.0.0.1",
        "ALETHEIA_PORT": "37790",
        "ALETHEIA_TOOL": "<VALUE>",
        "CLAUDE_MEM_DB": "~/.claude-mem/claude-mem.db",
        "ALETHEIA_HUB_DB": "<data dir>/hub.db",
        "ALETHEIA_API_KEY": "",
        "ALETHEIA_DATA_DIR": "~/.aletheia",
        "ALETHEIA_PROVIDER": "none",
        "ALETHEIA_PROVIDERS": "",
        "ALETHEIA_BUG_COMPAT": "off",
        "ALETHEIA_RULES_FILE": "<data dir>/MY-RULES.md",
        "ALETHEIA_OPENAI_MODEL": "",
        "ALETHEIA_OPENAI_API_KEY": "",
        "ALETHEIA_OPENAI_BASE_URL": "OpenRouter URL",
        "ALETHEIA_OUTPUT_LANGUAGE": ""
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-mohamed-ashraf-elsaed-aletheia-mem": {
      "command": "npx",
      "args": [
        "-y",
        "aletheia-mem"
      ],
      "env": {
        "ALETHEIA_CWD": "<VALUE>",
        "ALETHEIA_HOST": "127.0.0.1",
        "ALETHEIA_PORT": "37790",
        "ALETHEIA_TOOL": "<VALUE>",
        "CLAUDE_MEM_DB": "~/.claude-mem/claude-mem.db",
        "ALETHEIA_HUB_DB": "<data dir>/hub.db",
        "ALETHEIA_API_KEY": "",
        "ALETHEIA_DATA_DIR": "~/.aletheia",
        "ALETHEIA_PROVIDER": "none",
        "ALETHEIA_PROVIDERS": "",
        "ALETHEIA_BUG_COMPAT": "off",
        "ALETHEIA_RULES_FILE": "<data dir>/MY-RULES.md",
        "ALETHEIA_OPENAI_MODEL": "",
        "ALETHEIA_OPENAI_API_KEY": "",
        "ALETHEIA_OPENAI_BASE_URL": "OpenRouter URL",
        "ALETHEIA_OUTPUT_LANGUAGE": ""
      }
    }
  }
}

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
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-mohamed-ashraf-elsaed-aletheia-mem": {
      "command": "npx",
      "args": [
        "-y",
        "aletheia-mem"
      ],
      "env": {
        "ALETHEIA_CWD": "<VALUE>",
        "ALETHEIA_HOST": "127.0.0.1",
        "ALETHEIA_PORT": "37790",
        "ALETHEIA_TOOL": "<VALUE>",
        "CLAUDE_MEM_DB": "~/.claude-mem/claude-mem.db",
        "ALETHEIA_HUB_DB": "<data dir>/hub.db",
        "ALETHEIA_API_KEY": "",
        "ALETHEIA_DATA_DIR": "~/.aletheia",
        "ALETHEIA_PROVIDER": "none",
        "ALETHEIA_PROVIDERS": "",
        "ALETHEIA_BUG_COMPAT": "off",
        "ALETHEIA_RULES_FILE": "<data dir>/MY-RULES.md",
        "ALETHEIA_OPENAI_MODEL": "",
        "ALETHEIA_OPENAI_API_KEY": "",
        "ALETHEIA_OPENAI_BASE_URL": "OpenRouter URL",
        "ALETHEIA_OUTPUT_LANGUAGE": ""
      }
    }
  }
}

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.

NameRequiredDescription
ALETHEIA_CWD No MCP server: default project directory.
ALETHEIA_HOST No Bind address. A non-loopback bind turns on Hub login. Default: 127.0.0.1
ALETHEIA_PORT No Listen port. Default: 37790
ALETHEIA_TOOL No MCP server: names the calling tool.
CLAUDE_MEM_DB No claude-mem's database (read-only; importer and optional legacy viewer). Default: ~/.claude-mem/claude-mem.db
ALETHEIA_HUB_DB No The shared memory store. Default: <data dir>/hub.db
ALETHEIA_API_KEY No Bearer key required on /v1/* when set.
ALETHEIA_DATA_DIR No Everything this project writes, including hub.db. Default: ~/.aletheia
ALETHEIA_PROVIDER No none, claude-cli or an OpenAI-compatible provider. Default: none
ALETHEIA_PROVIDERS No Ordered fallback chain, for example ollama,openai.
ALETHEIA_BUG_COMPAT No 1 reproduces the original's empty observation half (F1). Default: off
ALETHEIA_RULES_FILE No The legacy Work view's rules file. Default: <data dir>/MY-RULES.md
ALETHEIA_OPENAI_MODEL No Model for the openai provider and human copy.
ALETHEIA_OPENAI_API_KEY No API key for the openai provider and human copy.
ALETHEIA_OPENAI_BASE_URL No Base URL for the openai provider and human copy. Default: OpenRouter URL
ALETHEIA_OUTPUT_LANGUAGE No Language for extracted facts and summaries.

Similar servers