S

Sqlite Local AI Memory

by cheveguerra · io.github.cheveguerra/sqlite-local-ai-memory

Simple, fast, long-term memory for your AI chatbots, agents, and MCP tools. Give your LLM a persistent memory using a local SQLite file. No complex database servers, no heavy cloud setup, and zero C++ compilation errors. Works everywhere.

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-cheveguerra-sqlite-local-ai-memory": {
      "command": "npx",
      "args": [
        "-y",
        "sqlite-local-ai-memory"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "SQLITE_MEM_PATH": "<VALUE>",
        "NOTARY_MODEL": "<VALUE>",
        "ARBITER_MODEL": "<VALUE>",
        "EMBEDDER_MODEL": "<VALUE>",
        "EXPANDER_MODEL": "<VALUE>",
        "OPENAI_BASE_URL": "<VALUE>",
        "GATEKEEPER_MODEL": "<VALUE>",
        "ORCHESTRATOR_MODEL": "<VALUE>"
      }
    }
  }
}

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-cheveguerra-sqlite-local-ai-memory": {
      "command": "npx",
      "args": [
        "-y",
        "sqlite-local-ai-memory"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "SQLITE_MEM_PATH": "<VALUE>",
        "NOTARY_MODEL": "<VALUE>",
        "ARBITER_MODEL": "<VALUE>",
        "EMBEDDER_MODEL": "<VALUE>",
        "EXPANDER_MODEL": "<VALUE>",
        "OPENAI_BASE_URL": "<VALUE>",
        "GATEKEEPER_MODEL": "<VALUE>",
        "ORCHESTRATOR_MODEL": "<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
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-cheveguerra-sqlite-local-ai-memory": {
      "command": "npx",
      "args": [
        "-y",
        "sqlite-local-ai-memory"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "SQLITE_MEM_PATH": "<VALUE>",
        "NOTARY_MODEL": "<VALUE>",
        "ARBITER_MODEL": "<VALUE>",
        "EMBEDDER_MODEL": "<VALUE>",
        "EXPANDER_MODEL": "<VALUE>",
        "OPENAI_BASE_URL": "<VALUE>",
        "GATEKEEPER_MODEL": "<VALUE>",
        "ORCHESTRATOR_MODEL": "<VALUE>"
      }
    }
  }
}

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-cheveguerra-sqlite-local-ai-memory": {
      "command": "npx",
      "args": [
        "-y",
        "sqlite-local-ai-memory"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "SQLITE_MEM_PATH": "<VALUE>",
        "NOTARY_MODEL": "<VALUE>",
        "ARBITER_MODEL": "<VALUE>",
        "EMBEDDER_MODEL": "<VALUE>",
        "EXPANDER_MODEL": "<VALUE>",
        "OPENAI_BASE_URL": "<VALUE>",
        "GATEKEEPER_MODEL": "<VALUE>",
        "ORCHESTRATOR_MODEL": "<VALUE>"
      }
    }
  }
}

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-cheveguerra-sqlite-local-ai-memory": {
      "command": "npx",
      "args": [
        "-y",
        "sqlite-local-ai-memory"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "SQLITE_MEM_PATH": "<VALUE>",
        "NOTARY_MODEL": "<VALUE>",
        "ARBITER_MODEL": "<VALUE>",
        "EMBEDDER_MODEL": "<VALUE>",
        "EXPANDER_MODEL": "<VALUE>",
        "OPENAI_BASE_URL": "<VALUE>",
        "GATEKEEPER_MODEL": "<VALUE>",
        "ORCHESTRATOR_MODEL": "<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
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-cheveguerra-sqlite-local-ai-memory": {
      "command": "npx",
      "args": [
        "-y",
        "sqlite-local-ai-memory"
      ],
      "env": {
        "GEMINI_API_KEY": "<YOUR_VALUE>",
        "SQLITE_MEM_PATH": "<VALUE>",
        "NOTARY_MODEL": "<VALUE>",
        "ARBITER_MODEL": "<VALUE>",
        "EMBEDDER_MODEL": "<VALUE>",
        "EXPANDER_MODEL": "<VALUE>",
        "OPENAI_BASE_URL": "<VALUE>",
        "GATEKEEPER_MODEL": "<VALUE>",
        "ORCHESTRATOR_MODEL": "<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.

NameRequiredDescription
GEMINI_API_KEY secret No Google Gemini API key used by default for the Notary, Semantic Arbiter, Query Expander, and State Orchestrator roles.
SQLITE_MEM_PATH No Path to the SQLite database file. Example: ~/.local-ai-memory/memoria.db
NOTARY_MODEL No Model for the Notary role. Default: gemini/gemini-2.5-flash-lite
ARBITER_MODEL No Model for the Semantic Arbiter role. Default: gemini/gemini-2.5-flash-lite
EMBEDDER_MODEL No Model for the Embedder role. Default: ollama/nomic-embed-text. Fallback: gemini-embedding-001
EXPANDER_MODEL No Model for the Query Expander role. Default: gemini/gemini-2.5-flash-lite. Set to 'none' to disable.
OPENAI_BASE_URL No Base URL for OpenAI-compatible API. Used when a model provider is set to openai.
GATEKEEPER_MODEL No Model for the Gatekeeper role. Default: ollama/qwen2.5-coder:1.5b
ORCHESTRATOR_MODEL No Model for the State Orchestrator role. Default: gemini/gemini-2.5-flash-lite

Similar servers