Build episodic memory and architectural policy systems for AI agents using Frames, Atlas, and Policy primitives. For developers integrating persistent context and decision-making frameworks into agentic workflows.
dev.smartergpt/lex
Local install
STDIO
No auth required
How models use it and what it is built for.
Build episodic memory and architectural policy systems for AI agents using Frames, Atlas, and Policy primitives. For developers integrating persistent context and decision-making frameworks into agentic workflows.
Local install — runs as a subprocess.
Configuration this server reads at startup.
Root directory for the workspace. Defaults to current working directory.
Path to SQLite database file. Defaults to .smartergpt/lex/lex.db in workspace root.
Set to any value to enable debug logging to stderr.
Where to find authoritative docs and source for Lex.
Paste any of these into Agent Studio after connecting Lex.
Common questions about connecting and running Lex.
What is Lex and what problem does it solve?
Lex provides episodic memory and architectural policy for AI agents, letting you store and retrieve contextual frames and enforce decision-making policies. It's designed for developers building agents that need persistent, structured memory across conversations.
How do I set up Lex with a custom workspace directory?
Set the LEX_WORKSPACE_ROOT environment variable to your desired directory path before running the MCP server. By default, it uses the current working directory and stores the SQLite database at .smartergpt/lex/lex.db.
Where does Lex store agent memory and can I inspect it?
Lex stores episodic memory in a SQLite database (configurable via LEX_MEMORY_DB, defaults to .smartergpt/lex/lex.db). You can inspect the database directly using any SQLite client or enable LEX_DEBUG for detailed logging.
How do I enable debug logging to troubleshoot Lex?
Set the LEX_DEBUG environment variable to any value before starting the MCP server. Debug output will be written to stderr and will show policy evaluation and memory operations.
What are Frames, Atlas, and Policy in Lex?
The README does not detail these primitives. Refer to the @smartergpt/lex-mcp package documentation or repository for architectural specifics on how Frames, Atlas, and Policy components work together.
MCP Playground runs 10,000+ hosted MCP servers — GitHub, Linear, Notion, Stripe, Sentry and more — across Claude, GPT, Gemini, DeepSeek and 30+ AI models. Compare model answers side-by-side, save agent presets, share runs. Zero install.
Open Agent StudioDrengr
Eyes and hands for AI agents on Android and iOS devices.
Agent Module
Deterministic compliance and vertical knowledge bases for autonomous agents. Free 24hr trial.
Agentsim
Real SIM-backed mobile numbers for AI agents to receive SMS and OTP codes.
AI Cortex Storage
Persistent cloud memory for AI agents. Store and search key-value memories across sessions.