M

Midas

by vornicx · io.github.vornicx/midas

Local-first, source-traceable memory for AI agents — no LLM at ingest, $0 per message, zero data egress. Gives Claude Code, Cursor, and any MCP client one shared persistent memory with semantic recall, belief revision, selective forgetting, and a provenance guard that blocks acting on stale or unconfirmed memories.

pypi 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-vornicx-midas": {
      "command": "uvx",
      "args": [
        "midas-memory-mcp"
      ],
      "env": {
        "MIDAS_MCP_DB": "~/.midas/memory.sqlite3",
        "MIDAS_MCP_EMBEDDER": "local",
        "MIDAS_MCP_MAX_RECORDS": "<VALUE>",
        "MIDAS_MCP_MIN_IMPORTANCE": "2",
        "MIDAS_MCP_ANN": "<VALUE>",
        "MIDAS_MCP_KEY": "<VALUE>",
        "MIDAS_MCP_NLI": "<VALUE>",
        "MIDAS_MCP_TTL": "<VALUE>",
        "MIDAS_MCP_TOKEN": "<VALUE>",
        "MIDAS_MCP_PINNED": "<VALUE>",
        "MIDAS_MCP_NAMESPACE": "<VALUE>",
        "MIDAS_MCP_SUPERSEDE": "<VALUE>",
        "MIDAS_MCP_AUTO_MAINTAIN": "<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-vornicx-midas": {
      "command": "uvx",
      "args": [
        "midas-memory-mcp"
      ],
      "env": {
        "MIDAS_MCP_DB": "~/.midas/memory.sqlite3",
        "MIDAS_MCP_EMBEDDER": "local",
        "MIDAS_MCP_MAX_RECORDS": "<VALUE>",
        "MIDAS_MCP_MIN_IMPORTANCE": "2",
        "MIDAS_MCP_ANN": "<VALUE>",
        "MIDAS_MCP_KEY": "<VALUE>",
        "MIDAS_MCP_NLI": "<VALUE>",
        "MIDAS_MCP_TTL": "<VALUE>",
        "MIDAS_MCP_TOKEN": "<VALUE>",
        "MIDAS_MCP_PINNED": "<VALUE>",
        "MIDAS_MCP_NAMESPACE": "<VALUE>",
        "MIDAS_MCP_SUPERSEDE": "<VALUE>",
        "MIDAS_MCP_AUTO_MAINTAIN": "<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-vornicx-midas": {
      "command": "uvx",
      "args": [
        "midas-memory-mcp"
      ],
      "env": {
        "MIDAS_MCP_DB": "~/.midas/memory.sqlite3",
        "MIDAS_MCP_EMBEDDER": "local",
        "MIDAS_MCP_MAX_RECORDS": "<VALUE>",
        "MIDAS_MCP_MIN_IMPORTANCE": "2",
        "MIDAS_MCP_ANN": "<VALUE>",
        "MIDAS_MCP_KEY": "<VALUE>",
        "MIDAS_MCP_NLI": "<VALUE>",
        "MIDAS_MCP_TTL": "<VALUE>",
        "MIDAS_MCP_TOKEN": "<VALUE>",
        "MIDAS_MCP_PINNED": "<VALUE>",
        "MIDAS_MCP_NAMESPACE": "<VALUE>",
        "MIDAS_MCP_SUPERSEDE": "<VALUE>",
        "MIDAS_MCP_AUTO_MAINTAIN": "<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-vornicx-midas": {
      "command": "uvx",
      "args": [
        "midas-memory-mcp"
      ],
      "env": {
        "MIDAS_MCP_DB": "~/.midas/memory.sqlite3",
        "MIDAS_MCP_EMBEDDER": "local",
        "MIDAS_MCP_MAX_RECORDS": "<VALUE>",
        "MIDAS_MCP_MIN_IMPORTANCE": "2",
        "MIDAS_MCP_ANN": "<VALUE>",
        "MIDAS_MCP_KEY": "<VALUE>",
        "MIDAS_MCP_NLI": "<VALUE>",
        "MIDAS_MCP_TTL": "<VALUE>",
        "MIDAS_MCP_TOKEN": "<VALUE>",
        "MIDAS_MCP_PINNED": "<VALUE>",
        "MIDAS_MCP_NAMESPACE": "<VALUE>",
        "MIDAS_MCP_SUPERSEDE": "<VALUE>",
        "MIDAS_MCP_AUTO_MAINTAIN": "<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-vornicx-midas": {
      "command": "uvx",
      "args": [
        "midas-memory-mcp"
      ],
      "env": {
        "MIDAS_MCP_DB": "~/.midas/memory.sqlite3",
        "MIDAS_MCP_EMBEDDER": "local",
        "MIDAS_MCP_MAX_RECORDS": "<VALUE>",
        "MIDAS_MCP_MIN_IMPORTANCE": "2",
        "MIDAS_MCP_ANN": "<VALUE>",
        "MIDAS_MCP_KEY": "<VALUE>",
        "MIDAS_MCP_NLI": "<VALUE>",
        "MIDAS_MCP_TTL": "<VALUE>",
        "MIDAS_MCP_TOKEN": "<VALUE>",
        "MIDAS_MCP_PINNED": "<VALUE>",
        "MIDAS_MCP_NAMESPACE": "<VALUE>",
        "MIDAS_MCP_SUPERSEDE": "<VALUE>",
        "MIDAS_MCP_AUTO_MAINTAIN": "<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-vornicx-midas": {
      "command": "uvx",
      "args": [
        "midas-memory-mcp"
      ],
      "env": {
        "MIDAS_MCP_DB": "~/.midas/memory.sqlite3",
        "MIDAS_MCP_EMBEDDER": "local",
        "MIDAS_MCP_MAX_RECORDS": "<VALUE>",
        "MIDAS_MCP_MIN_IMPORTANCE": "2",
        "MIDAS_MCP_ANN": "<VALUE>",
        "MIDAS_MCP_KEY": "<VALUE>",
        "MIDAS_MCP_NLI": "<VALUE>",
        "MIDAS_MCP_TTL": "<VALUE>",
        "MIDAS_MCP_TOKEN": "<VALUE>",
        "MIDAS_MCP_PINNED": "<VALUE>",
        "MIDAS_MCP_NAMESPACE": "<VALUE>",
        "MIDAS_MCP_SUPERSEDE": "<VALUE>",
        "MIDAS_MCP_AUTO_MAINTAIN": "<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
MIDAS_MCP_DB No Path to the SQLite database file. Use ':memory:' for ephemeral. Default: ~/.midas/memory.sqlite3
MIDAS_MCP_EMBEDDER No Embedding model backend: 'local' (default), 'hashing', 'multilingual', or any fastembed model ID. Default: local
MIDAS_MCP_MAX_RECORDS No Maximum number of records to keep in memory.
MIDAS_MCP_MIN_IMPORTANCE No Minimum importance score for memory entries to be retained. Default: 2
MIDAS_MCP_ANN No Set to '1' to enable sub-linear IVF for large stores.
MIDAS_MCP_KEY No Encryption key for SQLCipher at-rest encryption. Requires 'midas-memory[encrypted]' extra.
MIDAS_MCP_NLI No Set to '1' to enable NLI-gated revision.
MIDAS_MCP_TTL No Per-kind retention in days. E.g., 'chat=30,note=90'.
MIDAS_MCP_TOKEN No Bearer token for HTTP endpoint authentication.
MIDAS_MCP_PINNED No Pin standing directives or important memory items.
MIDAS_MCP_NAMESPACE No Memory namespace. Set to 'auto' for per-project scoping based on current working directory.
MIDAS_MCP_SUPERSEDE No Enable evolution of memory via contradiction detection. Set to '1' or similar.
MIDAS_MCP_AUTO_MAINTAIN No Idle-time upkeep interval. E.g., '5' for 5 minutes.

Similar servers