Cortexgraph Memory

v1.0.0Knowledge & Memorystable

Temporal memory system for AI assistants with human-like forgetting curves. All data stored locally in human-readable formats: JSONL for short-term memory, Markdown (Obsidian-compatible) for long-term. Memories naturally decay unless reinforced. Feat

aiai-assisstantclaudecognitive-sceincecognitive-science
Share:
35
Stars
0
Downloads
0
Weekly
0/5

What is Cortexgraph Memory?

Cortexgraph Memory is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to temporal memory system for ai assistants with human-like forgetting curves. all data stored locally in human-readable formats: jsonl for short-term memory, markdown (obsidian-compatible) for long-term...

Temporal memory system for AI assistants with human-like forgetting curves. All data stored locally in human-readable formats: JSONL for short-term memory, Markdown (Obsidian-compatible) for long-term. Memories naturally decay unless reinforced. Feat

This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Temporal memory system for AI assistants with human-like for

Use Cases

Temporal memory with forgetting curves
Human-readable memory formats
Obsidian integration
LicenseAGPL-3.0
Languagehtml
Versionv1.0.0
UpdatedMay 6, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx cortexgraph

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Cortexgraph Memory

CortexGraph is a Python-based MCP server that gives AI assistants like Claude a human-like memory system modeled on the Ebbinghaus forgetting curve. Memories stored through conversation naturally decay over time unless reinforced by repeated use, and frequently-accessed memories are promoted to permanent long-term storage as Obsidian-compatible Markdown files. Short-term memories are stored locally as human-readable JSONL files, giving users full control over their data without any cloud service dependency.

Prerequisites

  • Python 3.10+ runtime
  • uv, pipx, or pip for installation
  • An MCP-compatible client such as Claude Desktop
  • Optional: Obsidian installed for viewing and editing long-term memory Markdown files
1

Install CortexGraph from PyPI

Install using uv tool install for the best isolation. This installs the cortexgraph command and all 7 CLI utilities in an isolated environment.

uv tool install cortexgraph
# or with pipx
pipx install cortexgraph
# or with pip
pip install cortexgraph
2

Create the configuration directory and .env file

CortexGraph reads configuration from ~/.config/cortexgraph/.env. Create the directory and configure storage paths and decay parameters.

mkdir -p ~/.config/cortexgraph
curl -o ~/.config/cortexgraph/.env \
  https://raw.githubusercontent.com/prefrontal-systems/cortexgraph/main/.env.example
3

Edit the .env configuration file

Customize the storage path and decay model. The default 3-day power-law half-life is suitable for most users. Increase CORTEXGRAPH_PL_HALFLIFE_DAYS for longer retention.

# Storage location for short-term JSONL memories
CORTEXGRAPH_STORAGE_PATH=~/.config/cortexgraph/jsonl
# Decay model: power_law | exponential | two_component
CORTEXGRAPH_DECAY_MODEL=power_law
# Half-life in days (default: 3 days)
CORTEXGRAPH_PL_HALFLIFE_DAYS=3.0
4

Find the absolute path to the cortexgraph executable

Claude Desktop requires absolute paths to executables. Find the path using which and use it in the MCP config.

which cortexgraph
# Example output: /Users/yourname/.local/bin/cortexgraph
5

Configure Claude Desktop

Add CortexGraph to your Claude Desktop configuration at ~/Library/Application Support/Claude/claude_desktop_config.json using the absolute path from the previous step.

6

Restart Claude Desktop

Restart Claude Desktop to load the server. On first launch, CortexGraph creates the storage directory automatically.

Cortexgraph Memory Examples

Client configuration

Claude Desktop config block using the absolute path to the installed cortexgraph binary. Replace the path with the output of 'which cortexgraph' on your system.

{
  "mcpServers": {
    "cortexgraph": {
      "command": "/Users/yourname/.local/bin/cortexgraph"
    }
  }
}

Prompts to try

Example prompts that save, reinforce, and recall memories through natural conversation.

- "Remember that I prefer TypeScript over JavaScript for all new projects"
- "What are my coding preferences that you remember?"
- "I mentioned last week that I use dark mode — what else do you remember about my setup?"
- "Save this decision: we're using PostgreSQL instead of MySQL for the user database"
- "Show me my stored memories related to database choices"

Troubleshooting Cortexgraph Memory

Claude Desktop cannot find the cortexgraph executable

GUI apps like Claude Desktop do not inherit your shell PATH. Use the full absolute path returned by 'which cortexgraph' in the config. Common locations are /Users/yourname/.local/bin/cortexgraph (uv) or /Users/yourname/.local/pipx/envs/cortexgraph/bin/cortexgraph (pipx).

Memories are not persisting between conversations

Verify CORTEXGRAPH_STORAGE_PATH in your .env file points to a writable directory. Check that the .env file is at ~/.config/cortexgraph/.env. You can test storage by running 'cortexgraph --help' in the terminal and checking if the config directory exists.

Old memories are disappearing faster than expected

Increase CORTEXGRAPH_PL_HALFLIFE_DAYS in ~/.config/cortexgraph/.env (default is 3 days). For research or archival workflows, set it to 7-14 days. Memories are also promoted to permanent long-term storage once accessed 5+ times within 14 days.

Frequently Asked Questions about Cortexgraph Memory

What is Cortexgraph Memory?

Cortexgraph Memory is a Model Context Protocol (MCP) server that temporal memory system for ai assistants with human-like forgetting curves. all data stored locally in human-readable formats: jsonl for short-term memory, markdown (obsidian-compatible) for long-term. memories naturally decay unless reinforced. feat It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Cortexgraph Memory?

Follow the installation instructions on the Cortexgraph Memory GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Cortexgraph Memory?

Cortexgraph Memory works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Cortexgraph Memory free to use?

Yes, Cortexgraph Memory is open source and available under the AGPL-3.0 license. You can use it freely in both personal and commercial projects.

Browse More Knowledge & Memory MCP Servers

Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "cortexgraph": { "command": "npx", "args": ["-y", "cortexgraph"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Cortexgraph Memory?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides