Lex MCP Server

Episodic memory and architectural policy for AI agents. Frames, Atlas, and Policy.

Local serverstdioTypeScript

What is the Lex MCP Server?

Episodic memory and architectural policy for AI agents. Frames, Atlas, and Policy.

What it actually does

Your agent can read the code. Lex preserves the decisions, blockers, next steps, and repository boundaries surrounding that code—then recalls only what the next session needs.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Lex MCP Server

{
  "mcpServers": {
    "lex": {
      "command": "npx",
      "args": ["-y", "@smartergpt/lex"],
      "env": {
        "LEX_DB_PATH": "your-value",
        "LEX_POLICY_PATH": "your-value",
        "LEX_DB_KEY": "your-value",
        "LEX_DATABASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
LEX_DB_PATHFilesystem location the server is allowed to use.Optional
LEX_POLICY_PATHFilesystem location the server is allowed to use.Optional
LEX_DB_KEYCredential the server authenticates with.Yes
LEX_DATABASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • “Use Lex to Project.”
  • “Use Lex to Lex.”

Frequently asked questions

Episodic memory and architectural policy for AI agents. Frames, Atlas, and Policy. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.