Lex

dev.smartergpt/lex

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "lex": {
      "command": "npx",
      "args": [
        "-y",
        "@smartergpt/lex-mcp@4.4.4"
      ],
      "env": {
        "LEX_DATABASE_URL": "<your LEX_DATABASE_URL>",
        "LEX_POSTGRES_PASSWORD": "<your LEX_POSTGRES_PASSWORD>"
      }
    }
  }
}
Environment variables
  • LEX_DATABASE_URLsecretPostgreSQL connection URL for the compatibility adapter. Treat as secret because it may contain credentials.
  • LEX_POSTGRES_PASSWORDsecretPostgreSQL password supplied separately when LEX_DATABASE_URL omits one.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
AI & ML
Version
4.4.4
Registry
active
Published
10/20/2026
Browse all AI & ML →

Add the badge to your site

Show visitors that Lex is listed here — it’s also the link we check for a free listing.

Lex — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/dev-smartergpt-lex?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="Lex — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![Lex — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/dev-smartergpt-lex?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.