NestDaddy

Lex

dev.smartergpt/lex ยท v4.4.4

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

Connect Runs on your machine

Terminal
claude mcp add lex -e LEX_WORKSPACE_ROOT=<LEX_WORKSPACE_ROOT> -e LEX_STORE=<LEX_STORE> -e LEX_DB_PATH=<LEX_DB_PATH> -e LEX_MEMORY_DB=<LEX_MEMORY_DB> -e LEX_DATABASE_URL=<LEX_DATABASE_URL> -e LEX_POSTGRES_PASSWORD=<LEX_POSTGRES_PASSWORD> -e LEX_POSTGRES_POOL_MAX=<LEX_POSTGRES_POOL_MAX> -e LEX_DEBUG=<LEX_DEBUG> -- npx -y @smartergpt/[email protected]
claude_desktop_config.json
{
  "mcpServers": {
    "lex": {
      "command": "npx",
      "args": [
        "-y",
        "@smartergpt/[email protected]"
      ],
      "env": {
        "LEX_WORKSPACE_ROOT": "<LEX_WORKSPACE_ROOT>",
        "LEX_STORE": "<LEX_STORE>",
        "LEX_DB_PATH": "<LEX_DB_PATH>",
        "LEX_MEMORY_DB": "<LEX_MEMORY_DB>",
        "LEX_DATABASE_URL": "<LEX_DATABASE_URL>",
        "LEX_POSTGRES_PASSWORD": "<LEX_POSTGRES_PASSWORD>",
        "LEX_POSTGRES_POOL_MAX": "<LEX_POSTGRES_POOL_MAX>",
        "LEX_DEBUG": "<LEX_DEBUG>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "lex": {
      "command": "npx",
      "args": [
        "-y",
        "@smartergpt/[email protected]"
      ],
      "env": {
        "LEX_WORKSPACE_ROOT": "<LEX_WORKSPACE_ROOT>",
        "LEX_STORE": "<LEX_STORE>",
        "LEX_DB_PATH": "<LEX_DB_PATH>",
        "LEX_MEMORY_DB": "<LEX_MEMORY_DB>",
        "LEX_DATABASE_URL": "<LEX_DATABASE_URL>",
        "LEX_POSTGRES_PASSWORD": "<LEX_POSTGRES_PASSWORD>",
        "LEX_POSTGRES_POOL_MAX": "<LEX_POSTGRES_POOL_MAX>",
        "LEX_DEBUG": "<LEX_DEBUG>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "lex": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@smartergpt/[email protected]"
      ],
      "env": {
        "LEX_WORKSPACE_ROOT": "<LEX_WORKSPACE_ROOT>",
        "LEX_STORE": "<LEX_STORE>",
        "LEX_DB_PATH": "<LEX_DB_PATH>",
        "LEX_MEMORY_DB": "<LEX_MEMORY_DB>",
        "LEX_DATABASE_URL": "<LEX_DATABASE_URL>",
        "LEX_POSTGRES_PASSWORD": "<LEX_POSTGRES_PASSWORD>",
        "LEX_POSTGRES_POOL_MAX": "<LEX_POSTGRES_POOL_MAX>",
        "LEX_DEBUG": "<LEX_DEBUG>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

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

Details

Package@smartergpt/[email protected] (NPM, stdio)
First published20 Oct 2026
Last updated20 Oct 2026
Registry namedev.smartergpt/lex

More ai and media servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.