Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Memory for AI assistants in one SQLite file: full-text search, no vectors, no embeddings.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
MEMORY_LANG, MEMORY_DBต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"frugal-memory": {
"command": "uvx",
"args": [
"frugal-memory"
],
"env": {
"MEMORY_LANG": "ใส่ค่าของคุณ",
"MEMORY_DB": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add frugal-memory --env MEMORY_LANG='ใส่ค่าของคุณ' --env MEMORY_DB='ใส่ค่าของคุณ' -- uvx frugal-memoryเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"frugal-memory": {
"command": "uvx",
"args": [
"frugal-memory"
],
"env": {
"MEMORY_LANG": "ใส่ค่าของคุณ",
"MEMORY_DB": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"frugal-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"frugal-memory"
],
"env": {
"MEMORY_LANG": "ใส่ค่าของคุณ",
"MEMORY_DB": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
MEMORY_LANG envMEMORY_DB envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub komakeule57-maker ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.1) เข้า registry 9 วันที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A persistent memory for AI assistants that is just a SQLite file — and costs about a fifth of what reading markdown notes does.
No vector store, no embeddings, no external service, no API key. Python, SQLite with FTS5, stdio — the only dependency is the official mcp SDK. Nothing leaves your machine unless you explicitly turn on the optional fact check.
Measured over 275 real questions from 89 working sessions: 2,359 tokens per answered question, against 11,319 for the usual one markdown file per fact, found with grep and read whole. That baseline is the naive case on purpose: it is what happens when the file is opened with Read, which loads it whole. The careful path, grep -C with three lines of context, turned out more expensive, not cheaper: 28 times the characters in the median with a realistic search order (added after the run; 65 times under the rule fixed before it), because a broad search over 1,756 files returns hundreds of matching lines (details). Both compare against markdown notes, not against other memory servers. The gap grows as the memory does, because every answer here is capped and grep is not. All figures come from one installation, and the docs say where one did not hold up.
An assistant's memory usually fails in one of two ways: it is a pile of markdown files that has to be read whole to be searched, or it is a vector database that answers *that* something matched but never *why*.
This one is a ranked full-text index over short entries, with two things bolted on that turn a note pile into a memory: entries are filed on two axes — where it belongs (project) and what kind of knowledge it is (pitfall, decision, measurement, …) — and when you write something down, the tool tells you which existing entries it overlaps with, so contradictions surface instead of quietly piling up.
show then fetches the entries you pick, about 6,000 characters per call unless you ask for everything. The worst case is known before you ask.remember reports similar existing entries and which numbers changed, so you can supersede instead of accumulate.topics() lists projects and a project's newest title lines for when you have forgotten the words to search for. Capped like everything else: one page, and a line saying how to get the rest.tag=. That filter is hard, so when the best match lies outside the project, recall names it instead of leaving you with a plausible-looking list of the wrong entries.MEMORY_LANG=de switches tool names, messages and kinds to German, and the search to German stems and compound parts ("Rangliste" finds "Ranglisten", "Katalysator" finds "Fusionskatalysator"). The figures from real use below come from German notes (A Note on Language). Measured, the stems rarely change the answer: the plain any-term stage of the search already finds what they would add (details).mcp SDK (requirements.txt, that's the whole list)From PyPI, as a command in its own environment:
pipx install frugal-memory # or: uv tool install frugal-memory
claude mcp add memory -s user -- frugal-memory
With uv it also works without installing first; uvx fetches the package on the first start:
claude mcp add memory -s user -- uvx frugal-memory
The database is created on first use at ~/.local/share/frugal-memory/memory.db ($XDG_DATA_HOME if set). frugal-memory-nachziehen is the upkeep script described in DESIGN.md. Coming from a folder of markdown notes, frugal-memory-import moves them in, paragraph by paragraph (IMPORT.md). frugal-memory-skill installs the working rules for Claude Code (see below). With uvx, all of them run as uvx --from frugal-memory frugal-memory-import ….
Or from a checkout of this repository:
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
claude mcp add memory -s user -- \ /path/to/frugal-memory/.venv/bin/python \ /path/to/frugal-memory/memory_server.py
Here the database is created as memory.db next to the script. Either way, MEMORY_DB=/some/path.db puts it somewhere else.
-s user makes the server available in all projects; the entry ends up in ~/.claude.json. Restart Claude Code afterward — MCP servers are only loaded at startup. The tools are then called mcp__memory__recall and mcp__memory__remember.
For Claude Desktop, use ~/.config/Claude/claude_desktop_config.json instead:
{
"mcpServers": { "memory": { "command": "/path/to/frugal-memory/.venv/bin/python", "args": ["/path/to/frugal-memory/memory_server.py"] } } }
One rule matters more than any setting: one fact per call, not one document. recall returns whole entries — store a 180 KB file as a single entry and you get it back as a single hit, having gained nothing.
The tools alone don't tell an agent the working rules: search before reading files, recall → show, exactly one kind per entry, supersede instead of accumulate, retry in the other language. Two layers carry them:
MEMORY_LANG=de), which Claude Code adds to every session that has the server. Guest mode (--guest) sends none, since it cannot store anything.uvx --from frugal-memory frugal-memory-skill # or frugal-memory-skill after pip install
cp -r skills/frugal-memory ~/.claude/skills/ # or from a clone
Claude Code loads the skill's full text only when the memory comes up; until then only its one-line description sits in context. An existing SKILL.md that differs is left alone unless you add --force.
A third layer is up to you: a few lines in CLAUDE.md, for what neither layer can say — mainly that the server, not Claude Code's own memory files, is where knowledge goes. An optional block to copy is in docs/CLAUDE-MD.md.
Each machine keeps its own memory, and each numbers its entries from 1. A session on machine A can read the memory of machine B over SSH — the server runs on B, next to its file; the database itself never crosses the network:
claude mcp add memory-b -s project -- \
ssh b /path/to/frugal-memory/.venv/bin/python \ /path/to/frugal-memory/memory_server.py --guest
--guest (German: --gast) means three things:
mode=ro, and only recall, show and topics are offered. The writing tools are gone, and so are consolidate and check: upkeep belongs to the owner, who can act on it. A guest's searches do not feed the owner's search feedback either, and a guest never migrates the schema.b#72, not #72. The name is the host name in lower case; MEMORY_NAME overrides it.show("b#72") asked of any memory other than b is refused instead of quietly returning that memory's own #72. Bare ids (72, #72) mean the memory being asked.The guest speaks the language of the memory it reads, unless MEMORY_LANG says otherwise. -s project keeps the three extra tool definitions out of sessions that do not need them. The tools are then called mcp__memory-b__recall and so on.
The same server starts in two more modes. Each has its own file, its own tools and its own entry in Claude Code; the memory itself is never opened in them. Both follow MEMORY_LANG like the memory does. They grew out of daily use with several projects at once and have not been measured the way the memory has — they are offered because they made that work noticeably easier, not because a number says so.
--archive)Papers, datasets and prior work, shared by all projects. The memory holds what *you* found out; the archive holds what *others* published, and its value lies in the find another project already made.
claude mcp add archive -s user -- uvx frugal-memory --archive
finding, method, survey, resource (code, dataset), gap (searched, nowhere measured), lead (unchecked) and rejected (checked and rejected — e.g. a citation a language model made up). Leads and rejected entries are hidden from search, like the chronicle in the memory.remember sees an arXiv number, DOI or link that is already in the archive, it says so — two projects rarely describe a paper in the same words. It also asks for the source and the evidence level (full text, abstract, unconfirmed) when they are missing.archive#12 (archiv#12 in German mode), so it is never mistaken for a memory id.archive.db next to the memory's, or ARCHIVE_DB. Several machines can share one archive by starting it over SSH on the machine that holds the file (without --guest, so all of them can write).--messbuch)Measurement series as a structure instead of loose entries: question, criterion, recipe, numbers, verdict, and what supersedes what. Spread over a dozen memor
ตัดมาแค่ช่วงต้น อ่านต่อใน repo