# Lex (dev.smartergpt/lex@4.0.4)

> Source: <https://mcpindex.ai/server/dev-smartergpt-lex>
> Published: 2026-08-29 23:35:46+00:00

[← Index](/leaderboard)

# Lex

Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.

The current version, v4.0.4, was published to the official MCP registry on 2026-08-29. It is distributed as @smartergpt/lex-mcp on npm, filed under Memory & RAG by this index, and declares 8 environment variables. Removals and unreachable sources are measured across every server this index tracks, contract drift across the servers that answer in consecutive snapshots; [the index's current counts](/stats) put this record in context.

## Using Lex in Claude, Cursor, Gemini CLI, Cline, or Zed?

MCP tool contracts can change remotely with no version bump. The mcpindex gate pins each contract and **HOLDs the call** when it drifts-before your agent acts. Zero credentials. This is not the package install for this server itself (use **Install this server** for that).

Rewrites your MCP host config so each server launches behind the gate. Inspect first: curl -fsSL https://mcpindex.ai/install.sh | less

```
uv tool install mcpindex-gate && mcpindex-config-wire
```

[method](/methodology)

Semantic screen found no manipulation pattern in the description. Conformance probe not yet run.

`mcpindex.integrity.description`

passINFOevidence“Normal capability description”via static_description

- - Semantic screen only - the deterministic conformance probe has not run on this server
- - Confidence is reported but not yet calibrated (v1)
- - Screen reads the tool description, not the live behavior
- - advisory
- - registry description only no input schema
- - screen model 8b
- - The registry listing (version, packages, links) changed after this screen ran - the description we assessed did not

Semantic screen: an LLM judge reads the tool description for hidden instructions (status PARTIAL). A pass means the description is not lying, not that the tool is safe: a high-capability tool with an honest description still warrants caution. The deterministic conformance probe has not been run on this server yet, so the screen here is semantic-only. Posture: advisory. Confidences are reported but not yet calibrated (calibrated=false at v1). Full verdict history is not shown on this page.

Own this server? [Screen its description →](/screen)

## That verdict was true at screening time (snapshot 2026-08-30).

Contracts can change after screening, with no version bump. The gate pins Lex’s tool contracts on first sight and holds any silent change before your agent acts - the check that keeps being true on Tuesday.

[See your first HOLD in 2 minutes →](/guides/install-the-gate-first-hold)

Related: [how to trust an MCP server](/guides/how-to-trust-an-mcp-server) · [screen before install](/guides/screen-mcp-server-before-install) · [silent contract drift](/guides/mcp-silent-contract-drift)

People vet a server before wiring it in. One line on your project site or docs answers that with an independent record: screening verdict, registry provenance, contract drift history. It stays current as new screens and drift events land.

```
[Independent trust record for Lex](https://mcpindex.ai/server/dev-smartergpt-lex) - screening verdict, registry provenance, and contract drift monitoring.
<a href="https://mcpindex.ai/server/dev-smartergpt-lex">Independent trust record for Lex</a> - screening verdict, registry provenance, and contract drift monitoring.
```

A live verdict badge for your README or listing. It reflects the current screen, links back here, and updates when the verdict does.

```
[![mcpindex](https://mcpindex.ai/api/v1/badge/dev-smartergpt-lex)](https://mcpindex.ai/server/dev-smartergpt-lex)
<a href="https://mcpindex.ai/server/dev-smartergpt-lex"><img src="https://mcpindex.ai/api/v1/badge/dev-smartergpt-lex" alt="mcpindex verdict" height="20" /></a>
```

`LEX_WORKSPACE_ROOT`

Project root directory for Lex runtime discovery. Defaults to current working directory.

`LEX_STORE`

Frame-store backend: sqlite or postgres. Defaults to sqlite unless LEX_DATABASE_URL selects PostgreSQL.

`LEX_DB_PATH`

Path to SQLite database file. Defaults to .smartergpt/lex/memory.db under the project root.

`LEX_MEMORY_DB`

Alias for LEX_DB_PATH (backwards compatibility). Same behavior.

`LEX_DATABASE_URL`

PostgreSQL connection URL for the compatibility adapter. Treat as secret because it may contain credentials.

`LEX_POSTGRES_PASSWORD`

PostgreSQL password supplied separately when LEX_DATABASE_URL omits one.

`LEX_POSTGRES_POOL_MAX`

Maximum PostgreSQL compatibility-adapter pool size. Defaults to 10.

`LEX_DEBUG`

Set to any value to enable debug logging to stderr.

[methodology](/methodology)

[Fodda Knowledge Graphsai.fodda/mcp-server](/server/ai-fodda-mcp-server)

Expert-curated knowledge, brand, research & earnings intelligence — 47 tools, 220+ graphs.

[Achriomcom.achriom/achriom](/server/com-achriom-achriom)

Media memory for AI agents and their humans: books, movies, music, shows, anime, podcasts, games.

[Brainboxdev.thexi/brainbox](/server/dev-thexi-brainbox)

Persistent, portable memory for AI assistants — your private memory graph, from any MCP client.
