Lex MCP server
{
"mcpServers": {
"smartergpt-lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp@latest"
]
}
}
}{
"mcpServers": {
"smartergpt-lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp@latest"
]
}
}
}{
"mcpServers": {
"smartergpt-lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp@latest"
]
}
}
}{
"servers": {
"smartergpt-lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp@latest"
]
}
}
}{
"mcpServers": {
"smartergpt-lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp@latest"
]
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y @smartergpt/lex-mcpversion 4.4.0
What it does
Lex is an episodic memory system for AI agents that stores work checkpoints—decisions, blockers, next steps, and repository boundaries—separately from conversation history. It helps agents continue work across sessions without losing context or requiring humans to reconstruct prior decisions.
- Store a decision point when an agent completes a coding task, then recall that decision and its rationale when work resumes in a new session.
- Record blockers and failed approaches so a fresh agent session does not attempt the same work or make contradictory decisions.
- Preserve repository-specific constraints and module boundaries so agents respect project structure and policies across multiple sessions.
Tools this server exposes
| Tool | Does |
|---|---|
| remember | Write a deliberate work checkpoint with summary, next steps, affected modules, and blockers to local SQLite or PostgreSQL. |
| recall | Retrieve stored Frames by topic or reference point to see prior decisions and context. |
| context | Generate a bounded, token-limited bootstrap from matching Frames for use in a new agent session. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.