ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Mnemex

โดย simplemindedbotรุ่น 0.5.2i★ –iรันบนเครื่อง
ชื่อใน registryio.github.simplemindedbot/mnemex

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Temporal memory for AI with decay and reinforcement. Two-layer storage (JSONL + Markdown).

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: ค้นข้อมูลและความจำของ AI

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: MNEMEX_STORAGE_PATH, LTM_VAULT_PATH, MNEMEX_DECAY_MODEL, MNEMEX_PL_HALFLIFE_DAYS

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "mnemex": {
      "command": "uvx",
      "args": [
        "mnemex"
      ],
      "env": {
        "MNEMEX_STORAGE_PATH": "ใส่ค่าของคุณ",
        "LTM_VAULT_PATH": "ใส่ค่าของคุณ",
        "MNEMEX_DECAY_MODEL": "ใส่ค่าของคุณ",
        "MNEMEX_PL_HALFLIFE_DAYS": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add mnemex --env MNEMEX_STORAGE_PATH='ใส่ค่าของคุณ' --env LTM_VAULT_PATH='ใส่ค่าของคุณ' --env MNEMEX_DECAY_MODEL='ใส่ค่าของคุณ' --env MNEMEX_PL_HALFLIFE_DAYS='ใส่ค่าของคุณ' -- uvx mnemex

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "mnemex": {
      "command": "uvx",
      "args": [
        "mnemex"
      ],
      "env": {
        "MNEMEX_STORAGE_PATH": "ใส่ค่าของคุณ",
        "LTM_VAULT_PATH": "ใส่ค่าของคุณ",
        "MNEMEX_DECAY_MODEL": "ใส่ค่าของคุณ",
        "MNEMEX_PL_HALFLIFE_DAYS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "mnemex": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mnemex"
      ],
      "env": {
        "MNEMEX_STORAGE_PATH": "ใส่ค่าของคุณ",
        "LTM_VAULT_PATH": "ใส่ค่าของคุณ",
        "MNEMEX_DECAY_MODEL": "ใส่ค่าของคุณ",
        "MNEMEX_PL_HALFLIFE_DAYS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • MNEMEX_STORAGE_PATH env
    Storage path for short-term memory JSONL files
  • LTM_VAULT_PATH env
    Path to Obsidian vault for long-term memory
  • MNEMEX_DECAY_MODEL env
    Decay model: power_law (default), exponential, or two_component
  • MNEMEX_PL_HALFLIFE_DAYS env
    Half-life in days for power-law decay model

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub simplemindedbot ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด ค้นข้อมูลและความจำของ AIi

  • ดาวมากกว่า 0% ของอีก 7229 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 1% ของอีก 7229 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 7229 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Mnemex ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.5.2) เข้า registry 13 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Context7, Codebase Memory, Exa

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Context7

โดย upstash

ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว

บนเครื่องหรือคลาวด์★ 64,224MITอัปเดต 3 วันที่ผ่านมา
ติดตั้ง

Codebase Memory

โดย DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

รันบนเครื่อง★ 48,148MITอัปเดต 20 วันที่ผ่านมา
ติดตั้ง

Exa

โดย exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

รันบนคลาวด์★ 5,213MITอัปเดต 44 วันที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

CortexGraph: Temporal Memory for AI

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.

What is CortexGraph?

CortexGraph gives AI assistants like Claude a human-like memory system.

The Problem

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.

What CortexGraph Does

CortexGraph makes AI assistants remember things naturally, just like human memory:

  • 🧠 Remembers what matters - Your preferences, decisions, and important facts
  • ⏰ Forgets naturally - Old, unused information fades away over time (like the Ebbinghaus forgetting curve)
  • 💪 Gets stronger with use - The more you reference something, the longer it's remembered
  • 📦 Saves important things permanently - Frequently used memories get promoted to long-term storage
How It Works (Simple Version)
  1. You talk naturally - "I prefer dark mode in all my apps"
  2. Memory is saved automatically - No special commands needed
  3. Time passes - Memory gradually fades if not used
  4. You reference it again - "Make this app dark mode"
  5. Memory gets stronger - Now it lasts even longer
  6. Important memories promoted - Used 5+ times? Saved permanently to your Obsidian vault

No flashcards. No explicit review. Just natural conversation.

Why It's Different

Most memory systems are dumb:

  • ❌ "Delete after 7 days" (doesn't care if you used it 100 times)
  • ❌ "Keep last 100 items" (throws away important stuff just because it's old)

CortexGraph is smart:

  • ✅ Combines recency (when?), frequency (how often?), and importance (how critical?)
  • ✅ Memories fade naturally like human memory
  • ✅ Frequently used memories stick around longer
  • ✅ You can mark critical things to "never forget"

Technical Overview

This repository contains research, design, and a complete implementation of a short-term memory system that combines:

  • Novel temporal decay algorithm based on cognitive science
  • Reinforcement learning through usage patterns
  • Two-layer architecture (STM + LTM) for working and permanent memory
  • Smart prompting patterns for natural LLM integration
  • Git-friendly storage with human-readable JSONL
  • Knowledge graph with entities and relations
Module Organization

CortexGraph follows a modular architecture:

  • `cortexgraph.core`: Foundational algorithms (decay, similarity, clustering, consolidation, search validation)
  • `cortexgraph.agents`: Multi-agent consolidation pipeline and storage utilities
  • `cortexgraph.storage`: JSONL and SQLite storage backends with batch operations
  • `cortexgraph.tools`: MCP tool implementations

Why CortexGraph?

🔒 Privacy & Transparency

All data stored locally on your machine - no cloud services, no tracking, no data sharing.

  • Short-term memory:
  • JSONL (default): Human-readable, git-friendly files (~/.config/cortexgraph/jsonl/)
  • SQLite: Robust database storage for larger datasets (~/.config/cortexgraph/cortexgraph.db)
  • Long-term memory: Markdown files optimized for Obsidian
  • YAML frontmatter with metadata
  • Wikilinks for connections
  • Permanent storage you control
  • Export: Built-in utility to export memories to Markdown for portability.

You own your data. You can read it, edit it, delete it, or version control it - all without any special tools.

Core Algorithm

The temporal decay scoring function:

$$ \Large \text{score}(t) = (n_{\text{use}})^\beta \cdot e^{-\lambda \cdot \Delta t} \cdot s $$

Where:

  • $\large n_{\text{use}}$ - Use count (number of accesses)
  • $\large \beta$ (beta) - Sub-linear use count weighting (default: 0.6)
  • $\large \lambda = \frac{\ln(2)}{t_{1/2}}$ (lambda) - Decay constant; set via half-life (default: 3-day)
  • $\large \Delta t$ - Time since last access (seconds)
  • $\large s$ - Strength parameter $\in [0, 2]$ (importance multiplier)

Thresholds:

  • $\large \tau_{\text{forget}}$ (default 0.05) — if score < this, forget
  • $\large \tau_{\text{promote}}$ (default 0.65) — if score ≥ this, promote (or if $\large n_{\text{use}}\ge5$ in 14 days)

Decay Models:

  • Power‑Law (default): heavier tail; most human‑like retention
  • Exponential: lighter tail; forgets sooner
  • Two‑Component: fast early forgetting + heavier tail

See detailed parameter reference, model selection, and worked examples in docs/scoring_algorithm.md.

Tuning Cheat Sheet

  • Balanced (default)
  • Half-life: 3 days (λ ≈ 2.67e-6)
  • β = 0.6, τ_forget = 0.05, τ_promote = 0.65, use_count≥5 in 14d
  • Strength: 1.0 (bump to 1.3–2.0 for critical)
  • High‑velocity context (ephemeral notes, rapid switching)
  • Half-life: 12–24 hours (λ ≈ 1.60e-5 to 8.02e-6)
  • β = 0.8–0.9, τ_forget = 0.10–0.15, τ_promote = 0.70–0.75
  • Long retention (research/archival)
  • Half-life: 7–14 days (λ ≈ 1.15e-6 to 5.73e-7)
  • β = 0.3–0.5, τ_forget = 0.02–0.05, τ_promote = 0.50–0.60
  • Preference/decision heavy assistants
  • Half-life: 3–7 days; β = 0.6–0.8
  • Strength defaults: 1.3–1.5 for preferences; 1.8–2.0 for decisions
  • Aggressive space control
  • Raise τ_forget to 0.08–0.12 and/or shorten half-life; schedule weekly GC
  • Environment template
  • CORTEXGRAPH_DECAY_LAMBDA=2.673e-6, CORTEXGRAPH_DECAY_BETA=0.6
  • CORTEXGRAPH_FORGET_THRESHOLD=0.05, CORTEXGRAPH_PROMOTE_THRESHOLD=0.65
  • CORTEXGRAPH_PROMOTE_USE_COUNT=5, CORTEXGRAPH_PROMOTE_TIME_WINDOW=14

Decision thresholds:

  • Forget: $\text{score} < 0.05$ → delete memory
  • Promote: $\text{score} \geq 0.65$ OR $n_{\text{use}} \geq 5$ within 14 days → move to LTM

Key Innovations

1. Temporal Decay with Reinforcement

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.

2. Smart Prompting System + Natural Language Activation (v0.6.0+)

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:

  • Extracts entities (people, technologies, organizations) using spaCy NER
  • Calculates importance/strength based on content markers
  • Detects save/recall intent from natural language phrases
# Before v0.6.0 - manual entity specification

save_memory(content="Use JWT for auth", entities=["JWT", "auth"])

v0.6.0+ - automatic extraction

save_memory(content="Use JWT for auth")

Entities auto-extracted: ["jwt", "auth"]

Strength auto-calculated based on content

Auto-Save

User: "Remember: I prefer TypeScript over JavaScript"

→ Detected save phrase: "Remember" → Automatically saved with:

  • Entities: [typescript, javascript]
  • Strength: 1.5 (importance marker detected)
  • Tags: [preferences, programming]

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 strength
  • analyze_for_recall - Detects recall intent, suggests search queries

No explicit memory commands needed - just natural conversation.

3. Natural Spaced Repetition

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:

  1. Review Priority Calculation - Memories in the "danger zone" (0.15-0.35 decay score) get highest priority
  2. Cross-Domain Detection - Detects when memories are used in different contexts (tag Jaccard similarity <30%)
  3. Automatic Reinforcement - Memories strengthen naturally when used, especially across domains
  4. Blended Search - Review candidates appear in 30% of search results (configurable)

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

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx