Skip to content
MCP server

Lex

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.2
Listing updated
5 days ago

About Lex

Lex is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add lex -- npx -y @smartergpt/lex-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "lex": {
      "command": "npx",
      "args": [
        "-y",
        "@smartergpt/lex-mcp"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "lex": {
      "command": "npx",
      "args": [
        "-y",
        "@smartergpt/lex-mcp"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "lex": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@smartergpt/lex-mcp"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "lex": {
      "command": "npx",
      "args": [
        "-y",
        "@smartergpt/lex-mcp"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "lex": {
      "command": "npx",
      "args": [
        "-y",
        "@smartergpt/lex-mcp"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • LEX_WORKSPACE_ROOTRoot directory for the workspace. Defaults to current working directory.
  • LEX_MEMORY_DBPath to SQLite database file. Defaults to .smartergpt/lex/lex.db in workspace root.
  • LEX_DEBUGSet to any value to enable debug logging to stderr.

Pricing

Open source

Lex FAQ

Is Lex free?

Yes. Lex is open source, so you can use and self-host it for free.

How do I add Lex to Claude Code?

Run this command in your terminal: claude mcp add lex -- npx -y @smartergpt/lex-mcp

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers