Lex for Grok
dev.smartergpt/lex
Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.
client:Grok
transport:stdio
runtime:npm
Install Lex in Grok
.mcp.json (in your project root)
{
"mcpServers": {
"lex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp"
],
"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>"
}
}
}
}
Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs