Cuba Memorys MCP Server
by leandropg19io.github.LeandroPG19/cuba-memorysv0.24.0
Persistent memory MCP server. 28 tools, BM25+MMR+OOD retrieval, tamper-evident audit, code graph.
context tax
queued
security
queued
cold start
queued
freshness
Active1d ago
Install Cuba Memorys MCP server
Install in Claude Code
claude mcp add cuba-memorys -e DATABASE_URL='<database-url>' -e ANTHROPIC_API_KEY='<anthropic-api-key>' -- npx -y cuba-memorysInstall in Cursor
{
"mcpServers": {
"cuba-memorys": {
"command": "npx",
"args": [
"-y",
"cuba-memorys"
],
"env": {
"DATABASE_URL": "<database-url>",
"ANTHROPIC_API_KEY": "<anthropic-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"cuba-memorys": {
"command": "npx",
"args": [
"-y",
"cuba-memorys"
],
"env": {
"DATABASE_URL": "<database-url>",
"ANTHROPIC_API_KEY": "<anthropic-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"cuba-memorys": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"cuba-memorys"
],
"env": {
"DATABASE_URL": "<database-url>",
"ANTHROPIC_API_KEY": "<anthropic-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"cuba-memorys": {
"command": "npx",
"args": [
"-y",
"cuba-memorys"
],
"env": {
"DATABASE_URL": "<database-url>",
"ANTHROPIC_API_KEY": "<anthropic-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| DATABASE_URL | yes | — | PostgreSQL connection URL (e.g. postgresql://user:pass@localhost:5432/brain) |
| CUBA_PROJECT_FILTER | — | — | Set to 'off' to disable v0.8 project scoping filters (admin/debug only). |
| CUBA_SYNC_DIR | — | — | Directory used by cuba_sync export/import (default ./.cuba-memorys/). |
| CUBA_JUDGE | — | — | cuba_juez backend selector: claude_cli | anthropic_api | heuristic | auto (default auto). |
| CUBA_JUEZ_CLI | — | — | Subprocess CLI used by ClaudeCodeJudge (default 'claude'). |
| CUBA_JUEZ_MODEL | — | — | Model name passed to the judge backend (default 'claude-haiku-4-5'). |
| ANTHROPIC_API_KEY | — | yes | API key for AnthropicApiJudge (only used when feature 'anthropic-api' is built in). |
| CUBA_REM_RELATION_BATCH | — | — | Isolated entities the REM cycle scans for relations per run (default 5, 0 disables). |
| CUBA_RERANKER_PATH | — | — | Directory holding the bge-reranker ONNX model; enables cross-encoder reranking (+93% nDCG on GPU). |
| CUBA_RERANK_FIXED_SHAPE | — | — | Pad reranker batches to a constant 512 tokens. Defaults on for GPU builds, off on CPU. |
Freshness
Active — last maintenance signal 1d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-07 · 2d ago · GitHub
Latest release
2026-10-08 · 1d ago · GitHub · v0.28.0
Package published
no data · npm/PyPI
Registry entry updated
2026-08-16 · 54d ago · official registry · v0.24.0
FAQ
›How do I install the Cuba Memorys MCP server in Claude Code?
Run: claude mcp add cuba-memorys -e DATABASE_URL='<database-url>' -e ANTHROPIC_API_KEY='<anthropic-api-key>' -- npx -y cuba-memorys. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Cuba Memorys require an API key?
Yes. It expects DATABASE_URL, ANTHROPIC_API_KEY, of which 1 is a secret.
›Can I use Cuba Memorys as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Cuba Memorys in the official MCP registry?
Yes, as io.github.LeandroPG19/cuba-memorys.
Alternatives to Cuba Memorys
Other memory MCP servers.