Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Persistent memory for AI thinking partnerships: hybrid search and a temporal knowledge graph.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
RAWTHINK_VAULT, MEMORY_FILE_PATH, QDRANT_URL, QDRANT_PATH, OLLAMA_URL, OLLAMA_MODEL, RAWTHINK_TOOL_PROFILE, RAWTHINK_BM25_STATE, RAWTHINK_LOG_LEVELต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"rawthink": {
"command": "uvx",
"args": [
"rawthink-mcp"
],
"env": {
"RAWTHINK_VAULT": "ใส่ค่าของคุณ",
"MEMORY_FILE_PATH": "ใส่ค่าของคุณ",
"QDRANT_URL": "ใส่ค่าของคุณ",
"QDRANT_PATH": "ใส่ค่าของคุณ",
"OLLAMA_URL": "ใส่ค่าของคุณ",
"OLLAMA_MODEL": "ใส่ค่าของคุณ",
"RAWTHINK_TOOL_PROFILE": "ใส่ค่าของคุณ",
"RAWTHINK_BM25_STATE": "ใส่ค่าของคุณ",
"RAWTHINK_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add rawthink --env RAWTHINK_VAULT='ใส่ค่าของคุณ' --env MEMORY_FILE_PATH='ใส่ค่าของคุณ' --env QDRANT_URL='ใส่ค่าของคุณ' --env QDRANT_PATH='ใส่ค่าของคุณ' --env OLLAMA_URL='ใส่ค่าของคุณ' --env OLLAMA_MODEL='ใส่ค่าของคุณ' --env RAWTHINK_TOOL_PROFILE='ใส่ค่าของคุณ' --env RAWTHINK_BM25_STATE='ใส่ค่าของคุณ' --env RAWTHINK_LOG_LEVEL='ใส่ค่าของคุณ' -- uvx rawthink-mcpเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"rawthink": {
"command": "uvx",
"args": [
"rawthink-mcp"
],
"env": {
"RAWTHINK_VAULT": "ใส่ค่าของคุณ",
"MEMORY_FILE_PATH": "ใส่ค่าของคุณ",
"QDRANT_URL": "ใส่ค่าของคุณ",
"QDRANT_PATH": "ใส่ค่าของคุณ",
"OLLAMA_URL": "ใส่ค่าของคุณ",
"OLLAMA_MODEL": "ใส่ค่าของคุณ",
"RAWTHINK_TOOL_PROFILE": "ใส่ค่าของคุณ",
"RAWTHINK_BM25_STATE": "ใส่ค่าของคุณ",
"RAWTHINK_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"rawthink": {
"type": "stdio",
"command": "uvx",
"args": [
"rawthink-mcp"
],
"env": {
"RAWTHINK_VAULT": "ใส่ค่าของคุณ",
"MEMORY_FILE_PATH": "ใส่ค่าของคุณ",
"QDRANT_URL": "ใส่ค่าของคุณ",
"QDRANT_PATH": "ใส่ค่าของคุณ",
"OLLAMA_URL": "ใส่ค่าของคุณ",
"OLLAMA_MODEL": "ใส่ค่าของคุณ",
"RAWTHINK_TOOL_PROFILE": "ใส่ค่าของคุณ",
"RAWTHINK_BM25_STATE": "ใส่ค่าของคุณ",
"RAWTHINK_LOG_LEVEL": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
RAWTHINK_VAULT envMEMORY_FILE_PATH envQDRANT_URL envQDRANT_PATH envOLLAMA_URL envOLLAMA_MODEL envRAWTHINK_TOOL_PROFILE envRAWTHINK_BM25_STATE envRAWTHINK_LOG_LEVEL envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub ygtalp ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (2.0.1) เข้า registry 3 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย
ในหมวดเดียวกันมี Context7, Codebase Memory, Exa
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Persistent memory for AI thinking partnerships. A knowledge graph you can argue with, search that spans every session you have ever had, and a record of not just what you decided but what you rejected.
MCP server for Claude Code. Python, local, no cloud.
Every conversation with an AI starts from nothing. You explain the same context, re-derive the same conclusions, and rediscover decisions you already made — and the reasoning that produced them is gone the moment the window scrolls.
Chat history does not fix this. History is a transcript; what you need is *structure*: which ideas connect, which beliefs you have since abandoned, which alternatives you considered and dropped, and why.
RAWThink keeps that structure in three layers, in files you own.
Hybrid semantic search across every session and note — BGE-M3 dense embeddings and BM25 sparse vectors, fused with RRF. Ask "what did I think about free will?" and get the passages, not a keyword match.
A temporal knowledge graph where observations carry dates and status. Beliefs can be marked invalidated and linked to what replaced them, so the archive remembers not only what you think but what you used to think.
Session lifecycle — a close command that exports the conversation, extracts entities into the graph, and writes a handoff the next session loads automatically.
Activation decay — unused knowledge fades on a ~23-day half-life, accessed knowledge stays warm. Old material is still there; it just stops crowding out what you are working on now.
QDRANT_PATH for embedded modebge-m3: ollama pull bge-m3pip install rawthink-mcp
rawthink-install # creates ~/rawthink-vault with everything inside cd ~/rawthink-vault docker compose up -d # starts Qdrant
rawthink-install writes the vault structure, CLAUDE.md, THINKING_DIRECTIVES.md, SETUP.md, docker-compose.yml and the /rtclose command. Use rawthink-install --vault ~/my-vault for a different location.
claude mcp add --scope user rawthink -- rawthink-mcp
rawthink-doctor
Nine checks with a fix line for each failure: vault, graph schema, BM25 state format, Qdrant, index coverage, vector dimension, Ollama, MCP registration.
The index coverage check is the one worth knowing about. Indexing can stop partway and leave a collection that looks healthy — it exists, it has points, queries return results. They are results from part of the vault, and nothing else tells you that.
1.5.0 changed the graph schema and 2.0.0 changes the sparse index. Migrate the graph before writing anything:
python -m rawthink_mcp.migrate --path vault/memory.jsonl --guess-domains --heal-dangling
That is a dry run — it prints what would change and writes nothing. Read the report, then re-run with --apply. A timestamped backup is taken first.
Then re-encode the search index, because BM25 term IDs changed:
reindex(full=True)
A plain reindex skips unchanged chunks and will leave the old encoding in place. rawthink-doctor tells you if this is still pending.
See CHANGELOG.md for what changed and why.
> search_thoughts("what have I decided about caching?")
record_decision(
name="api/cache: read-through", domain="software", decided="read-through cache in front of the read model", because="the write path is already the bottleneck; adding invalidation there costs more", rejected=["write-through — couples the write path to cache health", "no cache — p99 was 400ms against a 200ms SLO"] )
Close with /rtclose. It exports the conversation, extracts what is worth keeping into the graph, and leaves a handoff for next time — which the next session loads on its own.
This is the part worth understanding, because it is what keeps the graph queryable over years rather than months.
entityType answers what role does this node play. Closed list of ten:
| type | for |
|---|---|
decision | a choice made, with alternatives rejected |
concept | an idea, theory, model, analogy |
finding | something discovered or measured — a bug, a result, an audit |
rule | a durable constraint or pattern to follow |
open-question | unresolved, waiting on evidence |
artifact | a project, tool, document, feature, source |
insight | a realisation that changed how something is seen |
task | a unit of intended work |
event | something that happened at a point in time |
thing | a person, object or substance named directly |
domain answers what subject is it about: software, music, history, philosophy, health, writing, neuro, finance, personal, galaxy.
Keeping these apart is not tidiness. When one field carries both, the type list grows by one entry per subject — a real vault reached 46 types this way, with saglik-bulgusu, teknik-karar and bug-pattern sitting next to karar. At that point nothing can be filtered, because no two entries agree on what a type means.
Canonical vocabulary: supports, contradicts, evolved_into, depends_on, exemplifies, part_of, caused_by, enables, supersedes, related_to, investigates, informs, uses.
Close synonyms fold automatically — connected_to → related_to, aspect_of → part_of. Anything else raises.
An earlier version accepted unknown types with a warning. Nothing acted on the warning and 56 one-off types accumulated. A warning that lets the write through is a decision to allow it, written in the voice of disapproval.
assertion, hypothesis, speculation — or unknown when unstated.
unknown is deliberate. If a session did not establish something, recording it as an assertion promotes a claim nobody made. The migration follows the same rule: 144 entities with no epistemic field became unknown, not assertion.
> revise(entity_name="api/cache: read-through",
observations=["read-through cache in front of the read model"], superseded_by="moved to write-through after the read model split", superseding_entity="api/cache: write-through")
The old observation is marked invalidated, dated, and linked to what replaced it. Delete tools exist but sit outside the default agent-facing profiles: an archive that forgets its own reversals cannot answer the question it was kept for.
record_decision stores decided, because, and rejected as separately queryable observations. The rejected alternatives are the part worth keeping — what was chosen stays readable in the code forever, what was considered and dropped exists nowhere else. That is the question that gets asked six months later.
Tool definitions sit in the context window from the first token of a session, so the surface is a standing cost rather than a per-call one. Profiles load only what a given step needs.
RAWTHINK_TOOL_PROFILE=recall # 4 tools, ~900 tokens — read-only
RAWTHINK_TOOL_PROFILE=record # 5 tools, ~1750 tokens — the write path RAWTHINK_TOOL_PROFILE=full # 17 tools, ~4200 tokens — everything (default)
A tool outside the active profile stays an ordinary function — reachable from the CLI and from tests. It simply is not in front of an agent that will not call it.
| tool | what it does |
|---|---|
search_thoughts | Hybrid search. mode="overview" gives one line per session |
get_session | Full content of a session by ID |
store_thought | Save a quick note as a qnote |
reindex | Re-index the vault into Qdrant |
| tool | what it does |
|---|---|
search_nodes | Bounded. Filters by domain and entity_type; reports total_matched and truncated |
open_nodes | Specific entities with their relations |
read_graph | Whole graph, paginated, with a summary mode |
| tool | what it does |
|---|---|
record | Entities, relations and observations in one validated, atomic call |
record_decision | A decision with its rejected alternatives |
revise | Mark observations superseded, link what replaced them |
create_entities · create_relations · add_observations | Lower-level equivalents |
invalidate_observations | Belief revision without the relation link |
delete_entities · delete_observations · delete_relations | full profile only |
record() validates the whole batch before writing any of it. A half-valid batch writes nothing — a graph left in a state nobody asked for is worse than a rejected write. Relations may only point at entities that already exist or are created in the same call.
Every tool carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint), so a host can tell deletion apart from search.
Claude Code
│ MCP (stdio) ▼ rawthink-mcp ├── search ──► Qdrant dense (BGE-M3) + sparse (BM25), RRF fusion ├── graph ──► memory.jsonl entities, relations, temporal observations └── export ──► vault/ sessions, qnotes, handoffs as markdown │ Ollama (bge-m3)
Everything runs locally. The vault is plain markdown with YAML frontmatter — open it in Obsidian to browse visually, no plugins needed.
Human-readable, git-diffable, no dependency. You can open it, read it, and see a meaningful diff when it changes — which matters for something meant to hold your reasoning.
The tradeoff is load time: the whole file is parsed per read. Fine at a few hundred entities, slower as it grows. Past tens of thousands, SQLite is the obvious next step.
session start handoff loads automatically (SessionStart hook)
↓ think together ↓ /rtclose export → extract entities → write handoff
ตัดมาแค่ช่วงต้น อ่านต่อใน repo