Skip to main content

Lex

dev.smartergpt/lex

v4.4.4Updated Oct 20, 2026stdio · npm

Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add lex -- npx -y @smartergpt/[email protected]

Configuration

8 settings.

  • LEX_DATABASE_URL
    Env var· optional· secret
    PostgreSQL connection URL for the compatibility adapter. Treat as secret because it may contain credentials.
  • LEX_POSTGRES_PASSWORD
    Env var· optional· secret
    PostgreSQL password supplied separately when LEX_DATABASE_URL omits one.
  • LEX_WORKSPACE_ROOT
    Env var· optional
    Project root directory for Lex runtime discovery. Defaults to current working directory.
  • LEX_STORE
    Env var· optional
    Frame-store backend: sqlite or postgres. Defaults to sqlite unless LEX_DATABASE_URL selects PostgreSQL.
  • LEX_DB_PATH
    Env var· optional
    Path to SQLite database file. Defaults to .smartergpt/lex/memory.db under the project root.
  • LEX_MEMORY_DB
    Env var· optional
    Alias for LEX_DB_PATH (backwards compatibility). Same behavior.
Show 2 more
  • LEX_POSTGRES_POOL_MAX
    Env var· optional
    Maximum PostgreSQL compatibility-adapter pool size. Defaults to 10.
  • LEX_DEBUG
    Env var· optional
    Set to any value to enable debug logging to stderr.

Listed in the official MCP Registry since Oct 20, 2026. Mirrored daily; last checked Nov 26, 2026.