Lex
dev.smartergpt/lex
About Lex
Lex is an MCP server published by smartergpt.dev. Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.
It runs on your own machine: your AI client starts it from the npm package @smartergpt/lex-mcp at version 4.4.4.
It asks for 2 secrets: LEX_DATABASE_URL and LEX_POSTGRES_PASSWORD. Give it a key with the least access that still works.
Version 4.4.4 was published on 20 October 2026, and the source code is public, so you can read it before installing.
Written from the registry entry. 9 automated checks on the registry entry and the package code: 7 pass, 0 warn, 0 fail, 2 info. How we check.
What it asks for
| Variable | Required | Secret | Description |
|---|---|---|---|
LEX_WORKSPACE_ROOT | No | No | Project root directory for Lex runtime discovery. Defaults to current working directory. |
LEX_STORE | No | No | Frame-store backend: sqlite or postgres. Defaults to sqlite unless LEX_DATABASE_URL selects PostgreSQL. |
LEX_DB_PATH | No | No | Path to SQLite database file. Defaults to .smartergpt/lex/memory.db under the project root. |
LEX_MEMORY_DB | No | No | Alias for LEX_DB_PATH (backwards compatibility). Same behavior. |
LEX_DATABASE_URL | No | Yes | PostgreSQL connection URL for the compatibility adapter. Treat as secret because it may contain credentials. |
LEX_POSTGRES_PASSWORD | No | Yes | PostgreSQL password supplied separately when LEX_DATABASE_URL omits one. |
LEX_POSTGRES_POOL_MAX | No | No | Maximum PostgreSQL compatibility-adapter pool size. Defaults to 10. |
LEX_DEBUG | No | No | Set to any value to enable debug logging to stderr. |
Checks
| Check | Result | Detail |
|---|---|---|
| Source repository linked | Pass | https://github.com/SmarterGPT/lex |
| Version pinned | Pass | Every package has an explicit version |
| Secrets requested | Info | Asks for 2 secrets: LEX_DATABASE_URL, LEX_POSTGRES_PASSWORD |
| Known package registry | Pass | All packages come from npm, PyPI, OCI, NuGet or MCPB |
| Namespace ownership | Info | Name verified via domain smartergpt.dev |
| Registry text aimed at the AI | Pass | Description and settings contain no hidden characters or instructions to the AI |
| Install scripts | Pass | @smartergpt/lex-mcp@4.4.4 runs nothing at install |
| Code red flags | Pass | Read 5 files in @smartergpt/lex-mcp@4.4.4: no obfuscation, encoded execution, credential reads or data-collection endpoints found |
| Text aimed at the AI | Pass | No hidden characters or instructions to the AI in 5 files, including comments and the README |
Popularity & health: 58 / 100
Worked out from public numbers and our own checks, not from user reviews or ratings. It says how used and how looked-after a server is, not whether it is safe.
0 forks, 331 merged pull requests. Sources: GitHub, npm, PyPI (pypistats.org) and Hacker News (Algolia), fetched 2026-10-31.
What people say
No Hacker News threads link to its source code.
Look further: search Reddit, search Hacker News, read its GitHub issues. These are not reviews we checked.
Facts
| Registry name | dev.smartergpt/lex |
|---|---|
| Publisher | Domain smartergpt.dev |
| How the name is verified | Name verified via domain smartergpt.dev. The registry ties the name prefix to that account or domain; it does not check the code. |
| Type | Local: runs on your machine from a package |
| Packages | npm @smartergpt/lex-mcp 4.4.4 (stdio) |
| Version | 4.4.4 |
| Published | |
| Last updated | |
| Source repository | https://github.com/SmarterGPT/lex |
| Website | None linked |
| Category | Productivity & notes (assigned by keyword rule, not by hand) |
Related servers in Productivity & notes
- Lex7/7Episodic memory and architectural policy for AI agents. Frames,…
- agence7/7AI governance MCP server — policy enforcement, skills, memory,…
- Total Agent Memory6/7Persistent local memory for coding agents: temporal knowledge…
- Pensyve4/4Universal memory runtime for AI agents — episodic, semantic, and…
- mengram3/3Long-term memory for AI agents: semantic facts, episodic events,…
- tempera4/4Persistent episodic memory for AI coding: capture, retrieve, brief,…