Lex
dev.smartergpt/lex
Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.
- Repository
- github.com/SmarterGPT/lex
- Version
- 4.4.4
- Author
- smartergpt.dev (namespace verified by the registry)
- Source
- Official MCP registry (updated Oct 20, 2026)
How to install it
Variables to fill in: LEX_WORKSPACE_ROOT, LEX_STORE, LEX_DB_PATH, LEX_MEMORY_DB, LEX_DATABASE_URL, LEX_POSTGRES_PASSWORD, LEX_POSTGRES_POOL_MAX, LEX_DEBUG.
On your machine
Claude Code
The server runs on your machine (npm package). In a terminal:
claude mcp add lex -e LEX_WORKSPACE_ROOT=YOUR_LEX_WORKSPACE_ROOT -e LEX_STORE=YOUR_LEX_STORE -e LEX_DB_PATH=YOUR_LEX_DB_PATH -e LEX_MEMORY_DB=YOUR_LEX_MEMORY_DB -e LEX_DATABASE_URL=YOUR_LEX_DATABASE_URL -e LEX_POSTGRES_PASSWORD=YOUR_LEX_POSTGRES_PASSWORD -e LEX_POSTGRES_POOL_MAX=YOUR_LEX_POSTGRES_POOL_MAX -e LEX_DEBUG=YOUR_LEX_DEBUG -- npx -y @smartergpt/[email protected]Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/[email protected]"
],
"env": {
"LEX_WORKSPACE_ROOT": "YOUR_LEX_WORKSPACE_ROOT",
"LEX_STORE": "YOUR_LEX_STORE",
"LEX_DB_PATH": "YOUR_LEX_DB_PATH",
"LEX_MEMORY_DB": "YOUR_LEX_MEMORY_DB",
"LEX_DATABASE_URL": "YOUR_LEX_DATABASE_URL",
"LEX_POSTGRES_PASSWORD": "YOUR_LEX_POSTGRES_PASSWORD",
"LEX_POSTGRES_POOL_MAX": "YOUR_LEX_POSTGRES_POOL_MAX",
"LEX_DEBUG": "YOUR_LEX_DEBUG"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/[email protected]"
],
"env": {
"LEX_WORKSPACE_ROOT": "YOUR_LEX_WORKSPACE_ROOT",
"LEX_STORE": "YOUR_LEX_STORE",
"LEX_DB_PATH": "YOUR_LEX_DB_PATH",
"LEX_MEMORY_DB": "YOUR_LEX_MEMORY_DB",
"LEX_DATABASE_URL": "YOUR_LEX_DATABASE_URL",
"LEX_POSTGRES_PASSWORD": "YOUR_LEX_POSTGRES_PASSWORD",
"LEX_POSTGRES_POOL_MAX": "YOUR_LEX_POSTGRES_POOL_MAX",
"LEX_DEBUG": "YOUR_LEX_DEBUG"
}
}
}
}VS Code .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"lex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smartergpt/[email protected]"
],
"env": {
"LEX_WORKSPACE_ROOT": "YOUR_LEX_WORKSPACE_ROOT",
"LEX_STORE": "YOUR_LEX_STORE",
"LEX_DB_PATH": "YOUR_LEX_DB_PATH",
"LEX_MEMORY_DB": "YOUR_LEX_MEMORY_DB",
"LEX_DATABASE_URL": "YOUR_LEX_DATABASE_URL",
"LEX_POSTGRES_PASSWORD": "YOUR_LEX_POSTGRES_PASSWORD",
"LEX_POSTGRES_POOL_MAX": "YOUR_LEX_POSTGRES_POOL_MAX",
"LEX_DEBUG": "YOUR_LEX_DEBUG"
}
}
}
}ChatGPT
ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.
These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
This server runs on your machine: we cannot test it remotely.
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/dev.smartergpt/lex)HTML
<a href="https://lagora.dev/en/entry/dev.smartergpt/lex"><img src="https://lagora.dev/badge/dev.smartergpt/lex.svg?lang=en" alt="dev.smartergpt/lex on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.
By the same author
AXF Local