Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.
Connect Runs on your machine
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]
{
"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>"
}
}
}
}
{
"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>"
}
}
}
}
{
"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
| Name | Description |
|---|---|
LEX_WORKSPACE_ROOTOptional | Project root directory for Lex runtime discovery. Defaults to current working directory. |
LEX_STOREOptional | Frame-store backend: sqlite or postgres. Defaults to sqlite unless LEX_DATABASE_URL selects PostgreSQL. |
LEX_DB_PATHOptional | Path to SQLite database file. Defaults to .smartergpt/lex/memory.db under the project root. |
LEX_MEMORY_DBOptional | Alias for LEX_DB_PATH (backwards compatibility). Same behavior. |
LEX_DATABASE_URLOptional, secret | PostgreSQL connection URL for the compatibility adapter. Treat as secret because it may contain credentials. |
LEX_POSTGRES_PASSWORDOptional, secret | PostgreSQL password supplied separately when LEX_DATABASE_URL omits one. |
LEX_POSTGRES_POOL_MAXOptional | Maximum PostgreSQL compatibility-adapter pool size. Defaults to 10. |
LEX_DEBUGOptional | Set to any value to enable debug logging to stderr. |
Details
| Package | @smartergpt/[email protected] (NPM, stdio) |
| First published | 20 Oct 2026 |
| Last updated | 20 Oct 2026 |
| Registry name | dev.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.
