Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Temporal memory for AI with decay and reinforcement. Two-layer storage (JSONL + Markdown).
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MNEMEX_STORAGE_PATH, LTM_VAULT_PATH, MNEMEX_DECAY_MODEL, MNEMEX_PL_HALFLIFE_DAYS你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"mnemex": {
"command": "uvx",
"args": [
"mnemex"
],
"env": {
"MNEMEX_STORAGE_PATH": "your-value",
"LTM_VAULT_PATH": "your-value",
"MNEMEX_DECAY_MODEL": "your-value",
"MNEMEX_PL_HALFLIFE_DAYS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add mnemex --env MNEMEX_STORAGE_PATH=your-value --env LTM_VAULT_PATH=your-value --env MNEMEX_DECAY_MODEL=your-value --env MNEMEX_PL_HALFLIFE_DAYS=your-value -- uvx mnemex运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"mnemex": {
"command": "uvx",
"args": [
"mnemex"
],
"env": {
"MNEMEX_STORAGE_PATH": "your-value",
"LTM_VAULT_PATH": "your-value",
"MNEMEX_DECAY_MODEL": "your-value",
"MNEMEX_PL_HALFLIFE_DAYS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"mnemex": {
"type": "stdio",
"command": "uvx",
"args": [
"mnemex"
],
"env": {
"MNEMEX_STORAGE_PATH": "your-value",
"LTM_VAULT_PATH": "your-value",
"MNEMEX_DECAY_MODEL": "your-value",
"MNEMEX_PL_HALFLIFE_DAYS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
MNEMEX_STORAGE_PATH envLTM_VAULT_PATH envMNEMEX_DECAY_MODEL envMNEMEX_PL_HALFLIFE_DAYS env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 simplemindedbot 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.5.2)于13个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A Model Context Protocol (MCP) server providing human-like memory dynamics for AI assistants. Memories naturally fade over time unless reinforced through use, mimicking the Ebbinghaus forgetting curve.
[!NOTE]
About the Name & Version
This project was originally developed as mnemex (published to PyPI up to v0.6.0). In November 2025, it was transferred to Prefrontal Systems and renamed to CortexGraph to better reflect its role within a broader cognitive architecture for AI systems.
Version numbering starts at 0.1.0 for the cortexgraph package to signal a fresh start under the new name, while acknowledging the mature, well-tested codebase (791 tests, 98%+ coverage) inherited from mnemex. The mnemex package remains frozen at v0.6.0 on PyPI.
This versioning approach:
- Signals "new package" to PyPI users discovering cortexgraph
- Gives room to evolve the brand, API, and organizational integration before 1.0
- Maintains continuity: users can migrate from
pip install mnemex→pip install cortexgraph
- Reflects that while the code is mature, the cortexgraph identity is just beginning
[!IMPORTANT]
🔬 RESEARCH ARTIFACT - NOT FOR PRODUCTION
This software is a Proof of Concept (PoC) and reference implementation for research purposes. It exists to validate theoretical frameworks in cognitive architecture and AI safety (specifically the STOPPER Protocol and CortexGraph).
It is NOT a commercial product. It is not maintained for general production use, may contain breaking changes, and offers no guarantees of stability or support. Use it to study the concepts, but build your own production implementations.
📖 New to this project? Start with the ELI5 Guide for a simple explanation of what this does and how to use it.
CortexGraph gives AI assistants like Claude a human-like memory system.
When you chat with Claude, it forgets everything between conversations. You tell it "I prefer TypeScript" or "I'm allergic to peanuts," and three days later, you have to repeat yourself. This is frustrating and wastes time.
CortexGraph makes AI assistants remember things naturally, just like human memory:
No flashcards. No explicit review. Just natural conversation.
Most memory systems are dumb:
CortexGraph is smart:
This repository contains research, design, and a complete implementation of a short-term memory system that combines:
CortexGraph follows a modular architecture:
All data stored locally on your machine - no cloud services, no tracking, no data sharing.
~/.config/cortexgraph/jsonl/)~/.config/cortexgraph/cortexgraph.db)You own your data. You can read it, edit it, delete it, or version control it - all without any special tools.
The temporal decay scoring function:
$$ \Large \text{score}(t) = (n_{\text{use}})^\beta \cdot e^{-\lambda \cdot \Delta t} \cdot s $$
Where:
Thresholds:
Decay Models:
See detailed parameter reference, model selection, and worked examples in docs/scoring_algorithm.md.
Decision thresholds:
Unlike traditional caching (TTL, LRU), Mnemex scores memories continuously by combining recency (exponential decay), frequency (sub-linear use count), and importance (adjustable strength). See Core Algorithm for the mathematical formula. This creates memory dynamics that closely mimic human cognition.
Patterns for making AI assistants use memory naturally, now enhanced with automatic entity extraction and importance scoring:
Auto-Enrichment (NEW in v0.6.0)
When you save memories, CortexGraph automatically:
# Before v0.6.0 - manual entity specification
save_memory(content="Use JWT for auth", entities=["JWT", "auth"])
save_memory(content="Use JWT for auth")
Auto-Save
User: "Remember: I prefer TypeScript over JavaScript"
→ Detected save phrase: "Remember" → Automatically saved with:
Auto-Recall
User: "What did I say about TypeScript?"
→ Detected recall phrase: "what did I say about" → Automatically searches for TypeScript memories → Retrieves preferences and conventions
Auto-Reinforce
User: "Yes, still using TypeScript"
→ Memory strength increased, decay slowed
Decision Support Tools (v0.6.0+)
Two new tools help Claude decide when to save/recall:
analyze_message - Detects memory-worthy content, suggests entities and strengthanalyze_for_recall - Detects recall intent, suggests search queriesNo explicit memory commands needed - just natural conversation.
Inspired by how concepts naturally reinforce across different contexts (the "Maslow effect" - remembering Maslow's hierarchy better when it appears in history, economics, and sociology classes).
No flashcards. No explicit review sessions. Just natural conversation.
How it works:
Usage pattern:
User: "Can you help with authentication in my API?"
→ System searches, retrieves JWT preference memory → System uses memory to answer question → System calls observe_memory_usage with context tags [api, auth, backend] → Cross-domain usage detected (original tags: [security, jwt, preferences]) → Memory automatically reinforced, strength boosted → Next search naturally surfaces memories needing review
Configuration:
CORTEXGRAPH_REVIEW_BLEND_RATIO=0.3 # 30% rev只显示了开头部分;其余内容请在仓库中阅读