Persistent memory for Claude Code, Codex, Gemini CLI and other MCP hosts, with hybrid retrieval, decay and consolidation on SQLite or PostgreSQL.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add cortex -- uvx hypermnesia-mcp~/.codex/config.toml
[mcp_servers.cortex]
command = "uvx"
args = ["hypermnesia-mcp"]
# codex mcp add cortex -- uvx hypermnesia-mcp~/.cursor/mcp.json
{
"mcpServers": {
"cortex": {
"command": "uvx",
"args": [
"hypermnesia-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"cortex": {
"type": "stdio",
"command": "uvx",
"args": [
"hypermnesia-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"cortex": {
"command": "uvx",
"args": [
"hypermnesia-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"cortex": {
"command": "uvx",
"args": [
"hypermnesia-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"cortex": {
"command": "uvx",
"args": [
"hypermnesia-mcp"
]
}
}
}