Lex
Rank #4,074dev.smartergpt/lex
Episodic memory, Frames, Policy Neighborhoods, and policy enforcement for AI agents.
Lex is a Model Context Protocol (MCP) server published by guffawaffle. It ranks #4,074 of 132,113 servers tracked on MCP Toplist. Lex is listed across 2 registries — Official MCP and PulseMCP, with 16 tracked versions. It was first listed on Nov 2, 2025 and most recently updated on Sep 18, 2026.
Ranks ahead of 128,039 of 132,113 servers on MCP Toplist.
Use Lex
No credentials or required configuration declared — add it to your MCP client and go.
claude mcp add lex -e "LEX_WORKSPACE_ROOT=<your LEX_WORKSPACE_ROOT>" -e "LEX_STORE=<your LEX_STORE>" -e "LEX_DB_PATH=<your LEX_DB_PATH>" -e "LEX_MEMORY_DB=<your LEX_MEMORY_DB>" -e "LEX_DATABASE_URL=<your LEX_DATABASE_URL>" -e "LEX_POSTGRES_PASSWORD=<your LEX_POSTGRES_PASSWORD>" -e "LEX_POSTGRES_POOL_MAX=<your LEX_POSTGRES_POOL_MAX>" -e "LEX_DEBUG=<your LEX_DEBUG>" -- npx -y @smartergpt/lex-mcpReplace each placeholder with your own value before saving.
[mcp_servers.lex]
command = "npx"
args = ["-y", "@smartergpt/lex-mcp"]
[mcp_servers.lex.env]
LEX_WORKSPACE_ROOT = "<your LEX_WORKSPACE_ROOT>"
LEX_STORE = "<your LEX_STORE>"
LEX_DB_PATH = "<your LEX_DB_PATH>"
LEX_MEMORY_DB = "<your LEX_MEMORY_DB>"
LEX_DATABASE_URL = "<your LEX_DATABASE_URL>"
LEX_POSTGRES_PASSWORD = "<your LEX_POSTGRES_PASSWORD>"
LEX_POSTGRES_POOL_MAX = "<your LEX_POSTGRES_POOL_MAX>"
LEX_DEBUG = "<your LEX_DEBUG>"Add to ~/.codex/config.toml. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp"
],
"env": {
"LEX_WORKSPACE_ROOT": "<your LEX_WORKSPACE_ROOT>",
"LEX_STORE": "<your LEX_STORE>",
"LEX_DB_PATH": "<your LEX_DB_PATH>",
"LEX_MEMORY_DB": "<your LEX_MEMORY_DB>",
"LEX_DATABASE_URL": "<your LEX_DATABASE_URL>",
"LEX_POSTGRES_PASSWORD": "<your LEX_POSTGRES_PASSWORD>",
"LEX_POSTGRES_POOL_MAX": "<your LEX_POSTGRES_POOL_MAX>",
"LEX_DEBUG": "<your LEX_DEBUG>"
}
}
}
}Add to claude_desktop_config.json (Settings → Developer → Edit Config). Replace each placeholder with your own value before saving.
{
"mcpServers": {
"lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp"
],
"env": {
"LEX_WORKSPACE_ROOT": "<your LEX_WORKSPACE_ROOT>",
"LEX_STORE": "<your LEX_STORE>",
"LEX_DB_PATH": "<your LEX_DB_PATH>",
"LEX_MEMORY_DB": "<your LEX_MEMORY_DB>",
"LEX_DATABASE_URL": "<your LEX_DATABASE_URL>",
"LEX_POSTGRES_PASSWORD": "<your LEX_POSTGRES_PASSWORD>",
"LEX_POSTGRES_POOL_MAX": "<your LEX_POSTGRES_POOL_MAX>",
"LEX_DEBUG": "<your LEX_DEBUG>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project). Replace each placeholder with your own value before saving.
{
"servers": {
"lex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp"
],
"env": {
"LEX_WORKSPACE_ROOT": "<your LEX_WORKSPACE_ROOT>",
"LEX_STORE": "<your LEX_STORE>",
"LEX_DB_PATH": "<your LEX_DB_PATH>",
"LEX_MEMORY_DB": "<your LEX_MEMORY_DB>",
"LEX_DATABASE_URL": "<your LEX_DATABASE_URL>",
"LEX_POSTGRES_PASSWORD": "<your LEX_POSTGRES_PASSWORD>",
"LEX_POSTGRES_POOL_MAX": "<your LEX_POSTGRES_POOL_MAX>",
"LEX_DEBUG": "<your LEX_DEBUG>"
}
}
}
}Save as .vscode/mcp.json in your workspace. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp"
],
"env": {
"LEX_WORKSPACE_ROOT": "<your LEX_WORKSPACE_ROOT>",
"LEX_STORE": "<your LEX_STORE>",
"LEX_DB_PATH": "<your LEX_DB_PATH>",
"LEX_MEMORY_DB": "<your LEX_MEMORY_DB>",
"LEX_DATABASE_URL": "<your LEX_DATABASE_URL>",
"LEX_POSTGRES_PASSWORD": "<your LEX_POSTGRES_PASSWORD>",
"LEX_POSTGRES_POOL_MAX": "<your LEX_POSTGRES_POOL_MAX>",
"LEX_DEBUG": "<your LEX_DEBUG>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"lex": {
"command": "npx",
"args": [
"-y",
"@smartergpt/lex-mcp"
],
"env": {
"LEX_WORKSPACE_ROOT": "<your LEX_WORKSPACE_ROOT>",
"LEX_STORE": "<your LEX_STORE>",
"LEX_DB_PATH": "<your LEX_DB_PATH>",
"LEX_MEMORY_DB": "<your LEX_MEMORY_DB>",
"LEX_DATABASE_URL": "<your LEX_DATABASE_URL>",
"LEX_POSTGRES_PASSWORD": "<your LEX_POSTGRES_PASSWORD>",
"LEX_POSTGRES_POOL_MAX": "<your LEX_POSTGRES_POOL_MAX>",
"LEX_DEBUG": "<your LEX_DEBUG>"
}
}
}
}Replace each placeholder with your own value before saving.
Show your rank
Maintain this server? Add the live rank badge to your README — it updates automatically as the leaderboard changes.
[](https://mcptoplist.com/server/dev.smartergpt%2Flex)<a href="https://mcptoplist.com/server/dev.smartergpt%2Flex"><img src="https://mcptoplist.com/badge/dev.smartergpt%2Flex.svg" alt="MCP Toplist: Top 5% of 132,113" /></a>Variants: append ?metric=score or ?metric=stars to the image URL.
Listed on 3 registries
guffawaffle
Other servers by guffawaffle
View all guffawaffle servers →Available versions (16)
| Version | Published |
|---|---|
| 4.4.1 | Sep 18, 2026 |
| 4.4.0 | Sep 17, 2026 |
| 4.3.0 | Sep 17, 2026 |
| 4.2.0 | Sep 5, 2026 |
| 4.1.0 | Sep 5, 2026 |
| 4.0.4 | Aug 29, 2026 |
| 4.0.3 | Aug 28, 2026 |
| 3.0.1 | Jul 21, 2026 |
| 3.0.0 | Jul 19, 2026 |
| 2.10.0 | Jul 17, 2026 |
| 2.9.1 | Jul 16, 2026 |
| 2.8.0 | Jul 11, 2026 |
| 2.1.2 | Feb 1, 2026 |
| 1.0.2 | Dec 31, 2025 |
| 1.0.1 | Dec 31, 2025 |
| 0.1.0 | Nov 25, 2024 |
Frequently asked questions
- Who maintains Lex?
- Lex is maintained by guffawaffle, which publishes 2 MCP servers (26 total versions) tracked on MCP Toplist.
- Is Lex listed on the Official MCP Registry?
- Yes — Lex is listed on the Official MCP Registry, alongside PulseMCP.
- How many versions does Lex have?
- MCP Toplist tracks 16 versions of Lex, most recently published on Sep 18, 2026.
- Where can I find the source code for Lex?
- The source code for Lex is hosted at github.com/guffawaffle/lex.
Do you run this server?
Community projects list the MCP servers behind real agents and apps. Publish yours and this page will link to it.