Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Cognitive memory for AI coding assistants — persistent memory across sessions
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"memorykit": {
"command": "npx",
"args": [
"-y",
"memorykit-mcp-server"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add memorykit -- npx -y memorykit-mcp-serverวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"memorykit": {
"command": "npx",
"args": [
"-y",
"memorykit-mcp-server"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"memorykit": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"memorykit-mcp-server"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub rapozoantonio ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.4.2) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
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.
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Enterprise-grade, neuroscience-inspired memory infrastructure for LLM applications
_Because your AI shouldn't have the memory of a goldfish_ 🐠
Quick Start · Documentation · Architecture · API Docs
Modern LLMs like GPT-4 and Claude have a critical flaw: they're stateless. Every conversation requires reloading the entire context, leading to:
User (Turn 1): "My name is John, I prefer Python"
AI: "Nice to meet you, John!"
[New session - memory wiped 🧹]
User (Turn 50): "What's my favorite language?" AI: "I don't have that information" ❌
The Cost Problem:
For a typical enterprise chatbot with 100-turn conversations:
| Approach | Tokens/Query | Cost/Query | Monthly (10K users) |
|---|---|---|---|
| Naive (full context) | 50,000 | $1.50 | $750,000 💸 |
| MemoryKit | 800 | $0.024 | $12,000 ✨ |
| You Save | 98.4% | 98.4% | $738,000/month 🎯 |
MemoryKit solves this. Inspired by how the human brain actually works.
Humans don't recall every conversation verbatim. Instead, we use a hierarchical memory system:
| Brain Region | Function | Duration | What It Stores |
|---|---|---|---|
| Prefrontal Cortex | Working Memory | Seconds-Minutes | Active conversation (7±2 items) |
| Hippocampus | Encoding & Indexing | Hours-Days | Recent experiences, decides what to keep |
| Neocortex | Semantic Memory | Months-Years | Facts, concepts, knowledge |
| Amygdala | Emotional Tagging | - | Importance scoring ("remember THIS!") |
| Basal Ganglia | Procedural Memory | Years | Skills, habits, routines |
┌──────────────────────────────────────────────────────────────┐
│ PREFRONTAL CONTROLLER │ │ (Executive Function & Planning) │ │ "Which memory layers do I need for this query?" │ └────────────────────┬─────────────────────────────────────────┘ │ ┌────────────┴────────────┐ │ │ ┌────▼─────┐ ┌─────▼──────┐ │ AMYGDALA │ │ HIPPOCAMPUS│ │ Emotion │ │ Indexing │ │ Tagging │ │ │ └────┬─────┘ └─────┬──────┘ │ │ └────────────┬────────────┘ │ ┌───────────────┴────────────────────────────┐ │ │ ┌────▼─────────┐ ┌──────────────┐ ┌───────────────┐ ┌────────────────┐ │ Layer 3 (L3) │ │ Layer 2 (L2) │ │ Layer 1 (L1) │ │ Layer P (LP) │ │──────────────│ │──────────────│ │───────────────│ │────────────────│ │ WORKING │ │ SEMANTIC │ │ EPISODIC │ │ PROCEDURAL │ │ MEMORY │ │ MEMORY │ │ MEMORY │ │ MEMORY │ │ │ │ │ │ │ │ │ │ Redis Cache │ │ Table │ │ Blob + │ │ Pattern │ │ 10 recent │ │ Storage │ │ AI Search │ │ Matching │ │ messages │ │ Facts & │ │ Full convo │ │ Learned │ │ │ │ Entities │ │ history │ │ routines │ │ │ │ │ │ │ │ │ │ < 5ms │ │ ~30ms │ │ ~120ms │ │ ~50ms │ └──────────────┘ └──────────────┘ └───────────────┘ └────────────────┘
The Prefrontal Controller decides which layers to query based on intent:
"Continue..." → L3 only (500 tokens, <5ms)
"What's my name?" → L2 + L3 (800 tokens, ~30ms) "Quote me from last week" → L1 + L2 + L3 (2000 tokens, ~150ms) "Write code as I prefer" → LP + L3 (600 tokens, ~50ms)
Result: You only load what you need, when you need it. Just like a human brain.
| Feature | MemoryKit | Mem0 | Letta | LangChain |
|---|---|---|---|---|
| Language | .NET 9 | Python | Python | Python |
| Architecture | Brain-inspired | Vector DB | Hierarchical | Flat |
| Procedural Memory | ✅ Yes | ❌ No | ⚠️ Basic | ❌ No |
| Cost Reduction | 98-99% | 85-90% | 80-85% | 60-70% |
| Query Planning | ✅ Intelligent | ❌ Static | ⚠️ Basic | ❌ Static |
| Emotional Weighting | ✅ Amygdala | ❌ No | ❌ No | ❌ No |
| Enterprise Ready | ✅ Day 1 | ⚠️ Partial | ❌ No | ⚠️ Partial |
| Azure Native | ✅ Yes | ❌ Generic | ❌ Generic | ❌ Generic |
🧠 First neuroscience-backed memory system for LLMs ⚡ Procedural memory - learns user workflows and preferences 🎯 Importance scoring - Amygdala-inspired emotional tagging 🏗️ Clean Architecture - Enterprise-grade from day one 💰 Highest cost savings - 98-99% reduction vs. naive approaches 🔒 Production-hardened - Security, monitoring, rate limiting built-in
# Clone and build
git clone https://github.com/rapozoantonio/memorykit.git cd memorykit dotnet restore && dotnet build
dotnet run --project src/MemoryKit.API
start https://localhost:5001/swagger
// Create conversation
POST /api/v1/conversations { "userId": "user_123", "title": "My Coding Session" }
// Add messages POST /api/v1/conversations/{id}/messages { "role": "user", "content": "I prefer Python with type hints" }
// Later... Query with memory POST /api/v1/conversations/{id}/query { "question": "Write a hello world function as I prefer" }
// MemoryKit automatically: // ✅ Remembers your Python preference // ✅ Remembers you like type hints // ✅ Applies procedural memory pattern // ✅ Uses only 600 tokens (not 50,000!)
👉 See [QUICKSTART.md](docs/QUICKSTART.md) for detailed setup.
┌─────────────────────────────────────────┐
│ API Layer (REST + Controllers) │ └─────────────────┬───────────────────────┘ │ depends on ↓ ┌─────────────────▼───────────────────────┐ │ Application (CQRS + Use Cases) │ └─────────────────┬───────────────────────┘ │ depends on ↓ ┌─────────────────▼───────────────────────┐ │ Domain (Entities + Business Logic) │ ← No Dependencies! └─────────────────▲───────────────────────┘ │ implements ↑ ┌─────────────────┴───────────────────────┐ │ Infrastructure (Azure + Semantic Kernel)│ └─────────────────────────────────────────┘
Just like humans consolidate memories during sleep, MemoryKit runs background consolidation:
New Message → Working Memory (L3) → Importance Scoring (Amygdala)
↓ ┌──────────────────┴───────────────────┐ │ │ High Importance? Low Importance? │ │ ↓ ↓ Extract Facts → Semantic (L2) Discard after TTL Archive Full → Episodic (L1) Detect Patterns → Procedural (LP)
| Operation | Target | Actual (p95) |
|---|---|---|
| Working Memory Read | < 5ms | 3ms ✅ |
| Semantic Search | < 30ms | 25ms ✅ |
| Episodic Search | < 120ms | 95ms ✅ |
| Full Context Assembly | < 150ms | 135ms ✅ |
| End-to-End with LLM | < 2s | 1.8s ✅ |
✅ Multi-layer storage (Working, Semantic, Episodic, Procedural) ✅ Intelligent query planning (Prefrontal Controller) ✅ Importance scoring (Amygdala Engine) ✅ Automatic fact extraction ✅ Pattern learning and matching ✅ Memory consolidation (background jobs)
✅ API key authentication ✅ Rate limiting (fixed, sliding, concurrent) ✅ Health checks (live, ready, deep) ✅ Application Insights monitoring ✅ Docker + Docker Compose ✅ Azure Bicep IaC templates ✅ CI/CD with GitHub Actions
✅ GDPR-compliant deletion ✅ Multi-tenancy isolation ✅ Comprehensive audit logging ✅ Performance benchmarks (BenchmarkDotNet) ✅ Security hardening (OWASP compliance)
Backend
Azure Services
Architecture
Testing & Quality
We'd love your help making MemoryKit even better!
# Fork and clone
git clone https://github.com/YOUR_USERNAME/memorykit.git cd memorykit
git checkout -b feature/amazing-feature
dotnet test
git commit -m "feat: add amazing feature"
git push origin feature/amazing-feature
ตัดมาแค่ช่วงต้น อ่านต่อใน repo