Lex MCP Server

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

Local serverstdio

What is the Lex MCP Server?

Lex is an MCP integration. Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.

Packages and local setup

The published npm package is @smartergpt/lex-mcp, version 4.4.1. Its declared MCP transport is stdio.

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

Before connecting

Check the maintainer’s instructions for account access, authentication and the supported client configuration. Once connected, inspect the tools your client receives and try a small task that matches the server’s stated purpose. The registry description does not include a verified, complete tool list.

Project and source

View the publisher’s registry entry · Project repository. This profile uses version 4.4.1 from the registry. Registration identifies the publisher namespace; it does not establish that this is a first-party integration for every service it connects.

Browse related other integrations MCP servers for tools that cover the same kind of work.

Configuration

VariableDescriptionRequired
LEX_WORKSPACE_ROOTProject root directory for Lex runtime discovery. Defaults to current working directory.Optional
LEX_STOREFrame-store backend: sqlite or postgres. Defaults to sqlite unless LEX_DATABASE_URL selects PostgreSQL.Optional
LEX_DB_PATHPath to SQLite database file. Defaults to .smartergpt/lex/memory.db under the project root.Optional
LEX_MEMORY_DBAlias for LEX_DB_PATH (backwards compatibility). Same behavior.Optional
LEX_DATABASE_URLPostgreSQL connection URL for the compatibility adapter. Treat as secret because it may contain credentials.Optional
LEX_POSTGRES_PASSWORDPostgreSQL password supplied separately when LEX_DATABASE_URL omits one.Optional
LEX_POSTGRES_POOL_MAXMaximum PostgreSQL compatibility-adapter pool size. Defaults to 10.Optional
LEX_DEBUGSet to any value to enable debug logging to stderr.Optional