Cloud-based persistent memory for Claude Code with semantic search, automatic extraction and project scoping.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add cogmemai --env COGMEMAI_API_KEY='<COGMEMAI_API_KEY>' -- npx -y cogmemai-mcp~/.codex/config.toml
[mcp_servers.cogmemai]
command = "npx"
args = ["-y", "cogmemai-mcp"]
env = { COGMEMAI_API_KEY = "<COGMEMAI_API_KEY>" }
# codex mcp add cogmemai --env COGMEMAI_API_KEY='<COGMEMAI_API_KEY>' -- npx -y cogmemai-mcp~/.cursor/mcp.json
{
"mcpServers": {
"cogmemai": {
"command": "npx",
"args": [
"-y",
"cogmemai-mcp"
],
"env": {
"COGMEMAI_API_KEY": "<COGMEMAI_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"cogmemai": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"cogmemai-mcp"
],
"env": {
"COGMEMAI_API_KEY": "<COGMEMAI_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"cogmemai": {
"command": "npx",
"args": [
"-y",
"cogmemai-mcp"
],
"env": {
"COGMEMAI_API_KEY": "<COGMEMAI_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"cogmemai": {
"command": "npx",
"args": [
"-y",
"cogmemai-mcp"
],
"env": {
"COGMEMAI_API_KEY": "<COGMEMAI_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"cogmemai": {
"command": "npx",
"args": [
"-y",
"cogmemai-mcp"
],
"env": {
"COGMEMAI_API_KEY": "<COGMEMAI_API_KEY>"
}
}
}
}Environment variables
COGMEMAI_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.