Koskamo

Memorys MCP

A persistent memory MCP server written in Rust that provides AI agents with a knowledge graph for searching, reasoning, and correction. It supports episodic memory, contradiction detection, and prospective triggers, backed by PostgreSQL and pgvector, aiming to prevent agents from forgetting codebases between sessions.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

Memorys MCP logo, by LeandroPG19Community listingLocal stdioSource reviewed; not executedPublished by LeandroPG19
Vendor documentation

Checks and signals

Each line is separate evidence, not a trust score.

  • Popularity 30 GitHub stars

What you can do with it

  • Provide long-term memory for AI coding agents
  • Search and reason over a knowledge graph
  • Detect contradictions in agent memory
  • Enable episodic memory with Hebbian learning

Source and maintenance

Community listingRegistry 0.24.0Apache-2.0
Last repository push
Latest release
v0.30.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

cuba-memorys 0.24.0

npm
cuba-memorys package definition
{
  "version": "0.24.0",
  "transport": "stdio",
  "identifier": "cuba-memorys",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "DATABASE_URL",
      "format": "string",
      "isRequired": true,
      "description": "PostgreSQL connection URL (e.g. postgresql://user:pass@localhost:5432/brain)"
    },
    {
      "name": "CUBA_PROJECT_FILTER",
      "format": "string",
      "description": "Set to 'off' to disable v0.8 project scoping filters (admin/debug only)."
    },
    {
      "name": "CUBA_SYNC_DIR",
      "format": "string",
      "description": "Directory used by cuba_sync export/import (default ./.cuba-memorys/)."
    },
    {
      "name": "CUBA_JUDGE",
      "format": "string",
      "description": "cuba_juez backend selector: claude_cli | anthropic_api | heuristic | auto (default auto)."
    },
    {
      "name": "CUBA_JUEZ_CLI",
      "format": "string",
      "description": "Subprocess CLI used by ClaudeCodeJudge (default 'claude')."
    },
    {
      "name": "CUBA_JUEZ_MODEL",
      "format": "string",
      "description": "Model name passed to the judge backend (default 'claude-haiku-4-5')."
    },
    {
      "name": "ANTHROPIC_API_KEY",
      "format": "string",
      "description": "API key for AnthropicApiJudge (only used when feature 'anthropic-api' is built in)."
    },
    {
      "name": "CUBA_REM_RELATION_BATCH",
      "format": "string",
      "description": "Isolated entities the REM cycle scans for relations per run (default 5, 0 disables)."
    },
    {
      "name": "CUBA_RERANKER_PATH",
      "format": "string",
      "description": "Directory holding the bge-reranker ONNX model; enables cross-encoder reranking (+93% nDCG on GPU)."
    },
    {
      "name": "CUBA_RERANK_FIXED_SHAPE",
      "format": "string",
      "description": "Pad reranker batches to a constant 512 tokens. Defaults on for GPU builds, off on CPU."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · repository · passed · metadata changed · updated
  • · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "memorys-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cuba-memorys@0.24.0"
      ],
      "env": {
        "DATABASE_URL": "<YOUR_DATABASE_URL>",
        "CUBA_PROJECT_FILTER": "<YOUR_CUBA_PROJECT_FILTER>",
        "CUBA_SYNC_DIR": "<YOUR_CUBA_SYNC_DIR>",
        "CUBA_JUDGE": "<YOUR_CUBA_JUDGE>",
        "CUBA_JUEZ_CLI": "<YOUR_CUBA_JUEZ_CLI>",
        "CUBA_JUEZ_MODEL": "<YOUR_CUBA_JUEZ_MODEL>",
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
        "CUBA_REM_RELATION_BATCH": "<YOUR_CUBA_REM_RELATION_BATCH>",
        "CUBA_RERANKER_PATH": "<YOUR_CUBA_RERANKER_PATH>",
        "CUBA_RERANK_FIXED_SHAPE": "<YOUR_CUBA_RERANK_FIXED_SHAPE>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "memorys-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cuba-memorys@0.24.0"
      ],
      "env": {
        "DATABASE_URL": "<YOUR_DATABASE_URL>",
        "CUBA_PROJECT_FILTER": "<YOUR_CUBA_PROJECT_FILTER>",
        "CUBA_SYNC_DIR": "<YOUR_CUBA_SYNC_DIR>",
        "CUBA_JUDGE": "<YOUR_CUBA_JUDGE>",
        "CUBA_JUEZ_CLI": "<YOUR_CUBA_JUEZ_CLI>",
        "CUBA_JUEZ_MODEL": "<YOUR_CUBA_JUEZ_MODEL>",
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
        "CUBA_REM_RELATION_BATCH": "<YOUR_CUBA_REM_RELATION_BATCH>",
        "CUBA_RERANKER_PATH": "<YOUR_CUBA_RERANKER_PATH>",
        "CUBA_RERANK_FIXED_SHAPE": "<YOUR_CUBA_RERANK_FIXED_SHAPE>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "memorys-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "cuba-memorys@0.24.0"
      ],
      "env": {
        "DATABASE_URL": "<YOUR_DATABASE_URL>",
        "CUBA_PROJECT_FILTER": "<YOUR_CUBA_PROJECT_FILTER>",
        "CUBA_SYNC_DIR": "<YOUR_CUBA_SYNC_DIR>",
        "CUBA_JUDGE": "<YOUR_CUBA_JUDGE>",
        "CUBA_JUEZ_CLI": "<YOUR_CUBA_JUEZ_CLI>",
        "CUBA_JUEZ_MODEL": "<YOUR_CUBA_JUEZ_MODEL>",
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
        "CUBA_REM_RELATION_BATCH": "<YOUR_CUBA_REM_RELATION_BATCH>",
        "CUBA_RERANKER_PATH": "<YOUR_CUBA_RERANKER_PATH>",
        "CUBA_RERANK_FIXED_SHAPE": "<YOUR_CUBA_RERANK_FIXED_SHAPE>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "memorys-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "cuba-memorys@0.24.0"
      ],
      "env": {
        "DATABASE_URL": "<YOUR_DATABASE_URL>",
        "CUBA_PROJECT_FILTER": "<YOUR_CUBA_PROJECT_FILTER>",
        "CUBA_SYNC_DIR": "<YOUR_CUBA_SYNC_DIR>",
        "CUBA_JUDGE": "<YOUR_CUBA_JUDGE>",
        "CUBA_JUEZ_CLI": "<YOUR_CUBA_JUEZ_CLI>",
        "CUBA_JUEZ_MODEL": "<YOUR_CUBA_JUEZ_MODEL>",
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
        "CUBA_REM_RELATION_BATCH": "<YOUR_CUBA_REM_RELATION_BATCH>",
        "CUBA_RERANKER_PATH": "<YOUR_CUBA_RERANKER_PATH>",
        "CUBA_RERANK_FIXED_SHAPE": "<YOUR_CUBA_RERANK_FIXED_SHAPE>"
      }
    }
  }
}

Let your agent find its tools

Find servers like Memorys MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.