What is the Lex MCP server?
Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.
How to install Lex
Copy-paste configuration for popular MCP clients.
LEX_WORKSPACE_ROOTProject root directory for Lex runtime discovery. Defaults to current working directory.
LEX_STOREFrame-store backend: sqlite or postgres. Defaults to sqlite unless LEX_DATABASE_URL selects PostgreSQL.
LEX_DB_PATHPath to SQLite database file. Defaults to .smartergpt/lex/memory.db under the project root.
LEX_MEMORY_DBAlias for LEX_DB_PATH (backwards compatibility). Same behavior.
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.
LEX_POSTGRES_POOL_MAXMaximum PostgreSQL compatibility-adapter pool size. Defaults to 10.
LEX_DEBUGSet to any value to enable debug logging to stderr.
Related MCP servers

AXF
Agent eXoskeleton Framework control plane for workspace-native agent capabilities over MCP.

dev.snaplab/snaplab
Screenshot, PDF and HTML-to-image rendering API so Claude and Cursor can see any web page.
Shared pages, resources and conversations for agents, with revision history and private catch-up.

Sourced
Search and read source code from 800k+ PyPI and 3M+ npm packages directly in your coding agent.

MarsDawn
Export Markdown to PDF and open it in the MarsDawn app on macOS, with the marsdawn CLI.
Publish pages your agent writes to a private, shareable URL, then read, comment on and update them.