Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
37-tool MCP server: context health, memory, reasoning, truthfulness & research pipeline.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"context-first": {
"command": "npx",
"args": [
"-y",
"context-first-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add context-first -- npx -y context-first-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"context-first": {
"command": "npx",
"args": [
"-y",
"context-first-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"context-first": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"context-first-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub XJTLUmedia ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.2.2) เข้า registry 7 เดือนที่ผ่านมา
โปรแกรมที่รองรับ 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
The MCP server that keeps your AI grounded, coherent, and honest — across every turn.
npx context-first-mcp
*Works instantly with Claude Desktop · Cursor · VS Code · any MCP client · Vercel remote — zero API keys needed.*
37 research-backed tools across 7 layers — context health, state, sandboxing, persistent memory, advanced reasoning, truthfulness verification, orchestration, structured research, and autonomous file export. One
context_loopcall replaces 6–7 individual tools and returns a unified action directive.
Long AI conversations fail in predictable ways. Context-First fixes all four:
| Failure Mode | What Goes Wrong | Context-First Solution |
|---|---|---|
| Context Drift | AI forgets earlier decisions and intent as the conversation grows | context_loop + detect_drift continuously re-anchor every turn |
| Silent Contradiction | New inputs silently overrule established facts — the AI doesn't notice | detect_conflicts compares every input against locked ground truth |
| Vague Execution | AI proceeds on underspecified requirements, producing misaligned output | check_ambiguity + abstention_check ask clarifying questions instead of guessing |
| Hallucinated Success | Tool outputs *look* successful but didn't actually achieve the goal | verify_execution rechecks whether the outcome matches the stated intent |
37 production-ready tools grouped into 7 layers — plus 1 orchestrator that runs them all:
context_loop ─────────────────────────────────────────────────────────────────
├─ Layer 1 · Context Health (9 tools) recap, conflict, ambiguity, depth … ├─ Layer 2 · Sandbox (3 tools) discover_tools, quarantine, merge ├─ Layer 3 · Persistent Memory(6 tools) store, recall, compact, graph … ├─ Layer 4 · Advanced Reasoning(5 tools) InftyThink, Coconut, KAG, MindEvo … ├─ Layer 5 · Truthfulness (7 tools) NCB, IOE, verify_first, self_critique… └─ State + Research Pipeline + Export (7 tools)
One call. One directive. One score.
{
"directive": { "action": "clarify", "contextHealth": 0.62, "instruction": "Resolve with the user: (1) Is this a firm requirement? (2) Which framework?", "autoExtractedFacts": { "deploy_to": "Vercel" }, "suggestedNextTools": ["verify_execution", "quarantine_context"] } }
npx context-first-mcp
{
"mcpServers": { "context-first": { "command": "npx", "args": ["-y", "context-first-mcp"] } } }
{
"mcp": { "servers": { "context-first": { "command": "npx", "args": ["-y", "context-first-mcp"] } } } }
{
"mcpServers": { "context-first": { "url": "https://context-first-mcp.vercel.app/api/mcp" } } }
| Tool | Purpose |
|---|---|
context_loop | One-call orchestrator. Runs 8 stages (ingest→recap→conflict→ambiguity→entropy→abstention→discovery→synthesis) and returns a single directive with action, contextHealth score, extracted facts, and suggested next tools |
recap_conversation | Extracts hidden intent, key decisions, and produces consolidated state summaries |
detect_conflicts | Compares new input against ground truth; surfaces contradictions |
check_ambiguity | Identifies underspecified requirements and generates clarifying questions |
verify_execution | Validates whether tool outputs actually achieved the stated goal |
entropy_monitor | Proxy-entropy scoring via lexical diversity, contradiction density, hedge frequency, and n-gram repetition (ERGO) |
abstention_check | 5-dimension confidence scoring — abstains with questions rather than hallucinating (RLAAR) |
detect_drift | Detects conversation drift from the original intent |
check_depth | Evaluates response depth against question complexity |
| Tool | Purpose |
|---|---|
get_state | Retrieve confirmed facts and task status |
set_state | Lock in ground truth — subsequent conflict checks run against these values |
clear_state | Reset specific keys or all state |
get_history_summary | Compressed conversation history with intent annotations |
| Tool | Method | Purpose |
|---|---|---|
discover_tools | MCP-Zero + ScaleMCP | Natural-language tool routing — returns only semantically relevant tools, reducing context bloat by up to 98% |
quarantine_context | Multi-Agent Quarantine | Create isolated memory silos for sub-tasks, preventing intent dilution |
merge_quarantine | Multi-Agent Quarantine | Merge silo results with noise filtering — only promoted keys return to main context |
| Tool | Purpose |
|---|---|
memory_store | Store findings, decisions, and intermediate results with metadata |
memory_recall | Retrieve relevant memories by semantic query |
memory_compact | Compress and consolidate memory entries |
memory_graph | Build and query a knowledge graph from stored memories |
memory_inspect | Inspect memory store contents and statistics |
memory_curate | Deduplicate and organize memory entries |
| Tool | Method | Purpose |
|---|---|---|
inftythink_reason | InftyThink | Infinite-depth reasoning with adaptive stopping |
coconut_reason | Coconut | Chain-of-Continuous-Thought in latent space |
extracot_compress | ExtraCoT | Compress chain-of-thought while preserving reasoning fidelity |
mindevolution_solve | MindEvolution | Evolutionary search over the solution space |
kagthinker_solve | KAG-Thinker | Knowledge-augmented generation with structured thinking |
| Tool | Purpose |
|---|---|
probe_internal_state | Probe model consistency across paraphrased prompts |
detect_truth_direction | Detect whether model reasoning is trending toward or away from truth |
ncb_check | Neighborhood consistency check across semantically equivalent inputs |
check_logical_consistency | Verify logical coherence of reasoning chains |
verify_first | Pre-verification before committing to claims |
ioe_self_correct | Intrinsic-extrinsic self-correction |
self_critique | Structured self-critique with improvement suggestions |
| Tool | Purpose |
|---|---|
research_pipeline | Structured research orchestration across init → gather → analyze → verify → finalize. Covers all 34 underlying tool-equivalents — state, sandboxing, memory, reasoning, truthfulness, context health. Writes files autonomously to disk as the pipeline runs; no LLM cooperation needed for file output. |
export_research_files | Writes every verified report chunk and/or every raw evidence batch to disk in a single call. |
Every core algorithm traces back to a published paper:
| Algorithm | Paper | arXiv | Tool |
|---|---|---|---|
| MCP-Zero | Active Tool Request | 2506.01056 | discover_tools |
| ScaleMCP | Semantic Tool Grouping | 2505.06416 | discover_tools registry |
| ERGO | Entropy-based Quality | 2510.14077 | entropy_monitor |
| RLAAR | Calibrated Abstention | 2510.18731 | abstention_check |
Implementation highlights:
| Tool | Description |
|---|---|
export_research_files | Writes research artifacts directly to disk. It can automatically expand and write every verified report chunk without asking the LLM to loop finalize manually, and it can also write every gathered raw-evidence batch even when verify has not passed. |
context_loop (single MCP tool call)
├── Stage 1: INGEST — Store messages to session history ├── Stage 2: RECAP — Extract intents, decisions, summaries ├── Stage 3: CONFLICT — Detect contradictions against ground truth ├── Stage 4: AMBIGUITY — Check for underspecified requirements ├── Stage 5: ENTROPY — Monitor output quality degradation (ERGO) ├── Stage 6: ABSTENTION — Multi-dimensional confidence check (RLAAR) ├── Stage 7: DISCOVERY — Suggest relevant next tools (MCP-Zero) └── Stage 8: SYNTHESIS — Combine signals → action recommendation + LLM directive
Synthesis Priority: abstain > reset > clarify > proceed
Each stage runs with independent error isolation — a failure in one stage doesn't block the others. The result includes per-stage timing, status, and detailed results for observability.
The context_loop response includes a top-level directive object designed for LLM consumption — a compact, actionable instruction that replaces the need to parse nested stage results:
{
"directive": { "action": "clarify", "instruction": "Before proceeding, resolve these issues with the user:\n1. Could you specify exactly what you mean?\n2. Is this a firm requirement or still open for discussion?", "questions": ["Could you specify exactly what you mean?", "Is this a firm requirement?"], "contextHealth": 0.62, "autoExtractedFacts": { "framework": "React", "deploy_to": "Vercel" }, "suggestedNextTools": ["verify_execution", "quarantine_context"] } }
context_loop Workscontext_loop (single MCP tool call)
├── Stage 1: INGEST — Store messages to session history ├── Stage 2: RECAP — Extract intents, decisions, summaries ├── Stage 3: CONFLICT — Detect contradictions against ground truth ├── Stage 4: AMBIGUITY — Check for underspecified requirements ├── Stage 5: ENTROPY — Monitor output quality degradation (ERGO) ├── Stage 6: ABSTENTION — Multi-dimensional co
ตัดมาแค่ช่วงต้น อ่านต่อใน repo