Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Read and write Claude Code auto memory from Codex, Cursor or any MCP client. Zero dependencies.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
RECALL_READ_ONLYต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"recall": {
"command": "npx",
"args": [
"-y",
"@fainir/recall",
"--claude-code",
"{repo_path}"
],
"env": {
"RECALL_READ_ONLY": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add recall --env RECALL_READ_ONLY='ใส่ค่าของคุณ' -- npx -y @fainir/recall --claude-code '{repo_path}'เติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"recall": {
"command": "npx",
"args": [
"-y",
"@fainir/recall",
"--claude-code",
"{repo_path}"
],
"env": {
"RECALL_READ_ONLY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"recall": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@fainir/recall",
"--claude-code",
"{repo_path}"
],
"env": {
"RECALL_READ_ONLY": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
RECALL_READ_ONLY envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub fainir ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.3.0) เข้า registry 6 วันที่ผ่านมา
โปรแกรมที่รองรับ 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Your Claude Code memory, in every agent. recall reads and writes the memory Claude Code keeps for each project, so Codex, Cursor or an agent you build yourself can use the same memories, over MCP or from code. Zero dependencies, no vectors, no database: the memories stay plain Markdown files.
Claude Code now remembers things on its own: your corrections, how you like to work, project decisions, where things live. It saves them as Markdown files with [[wiki-links]] under ~/.claude/projects/ /memory/. That is a good format, but only Claude Code reads it. Switch to another agent and it starts from zero.
recall makes that memory portable. It finds the same directory Claude Code uses (same rules, down to its folder-naming hash), reads every file Claude Code writes, and writes files Claude Code reads back.
Point any MCP client at recall and the project's repository. --read-only lets the other agent read what Claude Code remembers without changing it; leave it off to let both write.
Codex
codex mcp add recall -- npx -y @fainir/recall --claude-code /path/to/your/repo --read-only
Cursor (.cursor/mcp.json in the project, or ~/.cursor/mcp.json)
{
"mcpServers": { "recall": { "type": "stdio", "command": "npx", "args": ["-y", "@fainir/recall", "--claude-code", "/path/to/your/repo", "--read-only"] } } }
Cline: in the MCP Servers panel choose Configure, and add the same recall entry as for Cursor to cline_mcp_settings.json. Or ask Cline to "set up the MCP server from https://github.com/fainir/recall": in a test on 2026-11-01 it read this README, added the entry, started the server and listed its tools.
Gemini CLI: gemini extensions install https://github.com/fainir/recall (it serves the memory of the folder you start Gemini in).
Any other MCP client: run npx -y @fainir/recall with the same arguments as a stdio server. Needs Node.js 18+.
The agent then has these tools. Here is a real run against a repository with three memories Claude Code wrote:
> memory_list
3 memories in /Users/you/.claude/projects/-Users-you-code-acme-api/memory:
memory_recall {"requires": ["feedback_testing"]}
Run npm run test:int (needs the local Postgres from docker compose), not just npm test. Why: the unit tests mock the database; two "done" changes broke prod queries. How to apply: any change under src/db/ or src/queries/. CI details in [[reference_ci]].
CI is GitHub Actions, workflow ci.yml. Rerun a flaky job with gh run rerun --failed.
tokens_used: 180
memory_recall followed the [[reference_ci]] link on its own. In testing, a Codex agent given only this server answered a question by calling memory_list and then memory_get.
| Tool | What it does |
|---|---|
memory_list | Every memory with its type and one-line description. Optional type filter. |
memory_get | One memory in full. feedback-testing and feedback_testing both work. |
memory_recall | The named memories plus the ones they [[link]] to, trimmed to a token budget. Unknown names come back as missing. |
memory_due | Memories old enough to re-confirm before relying on them. |
memory_write | Save or replace a memory in Claude Code's format, and add it to the MEMORY.md index. Not offered with --read-only. |
memory_delete | Delete a memory and its index line. Not offered with --read-only. |
recall-mcp options: --claude-code [repo] (the default, using the current directory), --dir for any other memory directory (add --format claude-code to write Claude Code's file format there), --read-only, and --allow-secrets. RECALL_DIR, RECALL_READ_ONLY=1 and RECALL_ALLOW_SECRETS=1 work as environment variables.
npm install @fainir/recall
import { Recall } from '@fainir/recall';
const memory = Recall.forClaudeCode('/Users/you/code/acme-api'); console.log(memory.dir);
for (const m of await memory.list()) console.log(m.name, '|', m.type, '|', m.description);
const slice = await memory.recall({ requires: ['feedback-testing'] }); console.log(slice.memories.map(m => m.name), slice.tokens_used);
// Save something Claude Code will see in its next session. await memory.write({ name: 'project_freeze', type: 'project', description: 'merge freeze until the 3rd for the mobile release', body: 'No merges to main until Nov 3. Why: mobile release cut.', });
Output (before the write):
/Users/you/.claude/projects/-Users-you-code-acme-api/memory
feedback_testing | feedback | run the integration suite before saying a change works reference_ci | reference | where CI runs and how to rerun a flaky job user_role | user | backend lead, prefers short answers with the command to run [ 'feedback_testing', 'reference_ci' ] 180
write() produces the file Claude Code itself writes:
---
name: project_freeze description: merge freeze until the 3rd for the mobile release metadata: node_type: memory type: project modified: 2026-10-27T17:51:14.486Z
No merges to main until Nov 3. Why: mobile release cut.
and adds a line to MEMORY.md, the index Claude Code loads at the start of every session, leaving the existing lines alone:
- [Testing](feedback_testing.md) - run the integration suite before saying a change works
Rewriting an existing memory keeps the fields recall does not own, such as Claude Code's originSessionId.
claudeCodeMemoryDir(repo) returns the directory, using Claude Code's rules:
a-z, A-Z and 0-9 turned into -. Paths longer than 200 characters are cut and given the same hash suffix Claude Code adds.CLAUDE_CONFIG_DIR replaces ~/.claude. CLAUDE_CODE_PROJECT_DIR_NAME (next to CLAUDE_CONFIG_DIR) names the folder. An autoMemoryDirectory setting in the project's .claude/settings.local.json or your ~/.claude/settings.json wins over both.This was checked against a real ~/.claude/projects folder: the rule reproduced 40 of 41 project folder names, including all three long, hashed ones (the other one belonged to a session that was moved after it started). recall listed and parsed all 194 memory files in it.
The package exports the Recall class and claudeCodeMemoryDir(). Every method is async.
| Call | Arguments | Returns | ||||||
|---|---|---|---|---|---|---|---|---|
Recall.forClaudeCode(repo) | path inside a project; default the current directory | a Recall on Claude Code's memory directory, in claude-code format | ||||||
new Recall({ dir, format }) | dir: memory directory. format: recall (default) or claude-code | a Recall instance | ||||||
write({ name, type, description, decay_class, body, extra }) | name: slug (required). type: user \ | feedback \ | project \ | reference (required). description: one line, default ''. decay_class: permanent \ | slow \ | fast \ | ephemeral, default slow. body: Markdown, default ''. extra: more frontmatter fields | { name, type, decay_class, updated_at }. Creates or replaces / .md; in claude-code format also updates MEMORY.md |
get(name) | a memory name; - and _ are interchangeable, and a frontmatter name also matches | a Memory, or null | ||||||
list({ type }) | optional type filter | Memory[], sorted by name | ||||||
recall({ requires, link_depth, budget_tokens }) | requires: names. link_depth: [[link]] hops to follow, default 1. budget_tokens: default 2000 | { memories: Memory[], tokens_used, missing: string[], dropped: string[] } | ||||||
dueForReview(asOf) | Date or date string, default now | Memory[] past their review window, each with age_days | ||||||
delete(name) | exact memory name | true if a file was removed, false if it did not exist | ||||||
claudeCodeMemoryDir(repo) | path inside a project | the directory path (it may not exist yet) |
A Memory is { name, type, description, updated_at, frontmatter, body, links }. type and updated_at come from the flat fields or from Claude Code's metadata: block, whichever the file has. links lists the memory names the body links to, deduplicated and in order.
write, get and delete throw on an unsafe name; write also throws on an invalid type or decay_class, a non-string body or description, or a reserved extra key. recall never throws on unknown names; it lists them in missing.
One file per memory, .md, with frontmatter and a Markdown body. recall reads both shapes, whichever format you pick for writing.
Claude Code's format (format: 'claude-code'; older Claude Code files have a flat type: instead of metadata:, and recall reads those too):
---
name: feedback_testing description: run the integration suite before saying a change works metadata: node_type: memory type: feedback modified: 2026-10-20T09:12:44.120Z
Run npm run test:int first. CI details in [[reference_ci]].
recall's own format (format: 'recall', the default, which earlier versions wrote):
---
name: top-customers type: project description: paying customers above $10K ACV decay_class: slow updated_at: 2026-05-25
a-z, 0-9, - and _, starting with a letter or digit, up to 128 characters. That keeps file names safe on every OS.[[name]], [[name|label]] and [[name#heading]] all point at name. They are case-insensitive, - and _ match each other, and links inside code are ignored.key: value lines, quoted strings, # comments, and one level of nesting (Claude Code's metadata: block).MEMORY.md, README.md, My Notes.md, folders) are not memories and are skipped.recall() picks the slicerequires. No embeddings, no fuzzy search.[[wiki-links]] from those, breadth-first, up to link_depth hops.budget_tokens (estimated as characters / 4), memories are dropped untilตัดมาแค่ช่วงต้น อ่านต่อใน repo