Cortexgraph
C

Cortexgraph

CortexGraph is an MCP server that provides a human-like memory system for AI assistants. It realizes the natural decay and reinforcement use of memories by simulating the Ebbinghaus forgetting curve, including short-term memory storage, long-term memory archiving, and knowledge graph functions.
2.5 points
7.4K

What is CortexGraph?

CortexGraph is a human-like memory system designed for AI assistants (such as Claude). It solves the problem of AI forgetting information during conversations, allowing AI to naturally remember your preferences, decisions, and important facts while letting less frequently used information fade away over time.

How to use CortexGraph?

Using CortexGraph is very simple: 1) Install the CortexGraph MCP server; 2) Configure it in Claude Desktop; 3) Have conversations with Claude as usual. The system will automatically detect the content to be remembered and recall relevant information at appropriate times. You don't need to use special commands, and everything is done in natural conversations.

Use Cases

CortexGraph is particularly suitable for the following scenarios: Personal AI assistants (remembering user preferences), development environments (remembering technical decisions), research assistants (retaining important findings in the long term), and customer service robots (remembering customer history). It makes AI conversations more personalized and coherent.

Main Features

Human-like Memory Decay
Based on the Ebbinghaus forgetting curve, memories naturally decay over time unless reinforced through use. Less frequently used information will gradually fade away, while frequently used information will be retained for a longer time.
Automatic Memory Reinforcement
When an AI references a memory during a conversation, that memory is automatically reinforced, and the decay rate slows down. This simulates the 'use reinforcement' mechanism of human memory.
Two-layer Storage Architecture
Short-term memory (STM) stores recent information, and long-term memory (LTM) permanently stores important information. Frequently used memories are automatically promoted from STM to LTM.
Natural Language Activation
No special commands are required. The system will automatically detect the content to be saved or recalled from natural conversations. Say 'Remember: I like the dark mode' or 'What did I say before?' to trigger the corresponding functions.
Multi-agent Integration
Five dedicated agents automatically maintain memories: analyzing decay risks, clustering similar memories, merging duplicate content, promoting important memories, and discovering cross-domain associations.
Local Privacy Protection
All data is stored on the local device, supporting JSONL and SQLite formats. Long-term memories can be exported as Markdown files, which are compatible with note-taking applications such as Obsidian.
Visualized Knowledge Graph
It provides an interactive network graph visualization to show the relationships between memories, supporting zooming, dragging, and viewing detailed information.
Advantages
🤖 Makes AI conversations more coherent and personalized
🧠 A memory model based on cognitive science, more in line with human intuition
🔒 Completely local storage to protect privacy and security
⚡ Automatically runs without manual memory management
📊 Adjustable memory parameters to adapt to different use scenarios
🔄 Well integrated with existing tools (Obsidian, Git)
Limitations
⚠️ A research prototype, not recommended for production environments
📚 Requires certain technical knowledge for initial configuration
🖥️ Mainly developed for macOS, Windows/Linux support needs testing
🧪 The memory algorithm is still being optimized, and there may be instability
🔧 Requires a client that supports MCP, such as Claude Desktop

How to Use

Install CortexGraph
Install using the UV tool (recommended) or via pip. UV installation provides better isolation.
Create a Configuration File
Create a.env file in the configuration directory and set the storage path, decay parameters, etc. You can copy the example file and modify it.
Configure Claude Desktop
Edit the configuration file of Claude Desktop and add the CortexGraph MCP server. You need to use the absolute path to ensure that the GUI application can find the command.
Restart and Start Using
Restart Claude Desktop and start having normal conversations. The system will automatically detect the content to be remembered and recall it at appropriate times.
Maintenance and Monitoring
Use the CLI tool to view the memory status and perform maintenance operations. Regularly check the memory health.

Usage Examples

Personal Preference Memory
The AI assistant remembers the user's personal preferences, such as the interface theme, programming language preference, dietary restrictions, etc.
Technical Decision Tracking
During the development process, the AI remembers the technology stack selection, architectural decisions, and code conventions.
Research Note Organization
During the research process, the AI helps organize and connect relevant concepts, findings, and references.
Customer Service History
The customer service AI remembers the customer's previous problems, solutions, and personal information.

Frequently Asked Questions

What's the difference between CortexGraph and ordinary chat records?
Do I need to learn special commands to use the memory function?
Where is my data stored? Is it safe?
How to adjust the memory retention time?
Why does Claude Desktop display the 'Command not found' error?
Can I export my memory data?
Is this tool suitable for production environments?
How to contribute code or report issues?

Related Resources

GitHub Repository
Source code, issue tracking, and the latest version
MCP Tool Reference Documentation
Detailed descriptions and examples of all MCP tools
Scoring Algorithm Details
The mathematical principles and parameter descriptions of the memory scoring algorithm
Intelligent Prompt Mode
A system prompt template for AI to naturally use memories
Multi-agent System
The agent architecture description of the memory consolidation pipeline
Model Context Protocol
The official documentation and specifications of the MCP protocol
Ebbinghaus Forgetting Curve
The cognitive science foundation of the CortexGraph algorithm
Contribution Guide
How to participate in development and testing, especially cross-platform testing

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "cortexgraph": {
      "command": "/Users/yourusername/.local/bin/cortexgraph"
    }
  }
}

{
  "mcpServers": {
    "cortexgraph": {
      "command": "uv",
      "args": ["--directory", "/path/to/cortexgraph", "run", "cortexgraph"],
      "env": {"PYTHONPATH": "/path/to/cortexgraph/src"}
    }
  }
}

{
  "mcpServers": {
    "cortexgraph": {
      "command": "/Users/username/.local/bin/cortexgraph"
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
7.0K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
6.5K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
5.4K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
7.8K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
9.9K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
9.5K
5 points
H
Haiku.rag
Haiku RAG is an intelligent retrieval - augmented generation system built on LanceDB, Pydantic AI, and Docling. It supports hybrid search, re - ranking, Q&A agents, multi - agent research processes, and provides local - first document processing and MCP server integration.
Python
10.5K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
9.8K
4 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.8K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
35.2K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
26.2K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
73.2K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
32.2K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
65.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
49.4K
4.8 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
22.4K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase