Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Local multi-client RAG server over the Model Context Protocol.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
CORTEX_KB_PATHต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"cortex": {
"command": "uvx",
"args": [
"cortex-local-rag",
"serve"
],
"env": {
"CORTEX_KB_PATH": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add cortex --env CORTEX_KB_PATH='ใส่ค่าของคุณ' -- uvx cortex-local-rag serveเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"cortex": {
"command": "uvx",
"args": [
"cortex-local-rag",
"serve"
],
"env": {
"CORTEX_KB_PATH": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"cortex": {
"type": "stdio",
"command": "uvx",
"args": [
"cortex-local-rag",
"serve"
],
"env": {
"CORTEX_KB_PATH": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub VBlackJack ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
ต้องใส่ค่าเหล่านี้: CORTEX_KB_PATH
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (2026.1021.3) เข้า registry 16 วันที่ผ่านมา
โปรแกรมที่รองรับ 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
English | Français
Cortex is an MCP (Model Context Protocol) server that exposes semantic search over a local knowledge base. It lets Claude, Codex and Gemini find the right passage in your documents without wasting their context window. Search is semantic (by meaning, not keyword), in French and in English. Cortex processes and indexes the knowledge base locally without sending its content; the MCP client may still pass requested chunks to its model under its own policy. The optional Confluence writer only downloads explicitly allowlisted spaces; the generated Markdown, vector index, and lexical index remain local.
Starting with 2026.0906.01, Companion offers a guided home screen, operation history and Confluence setup from one page or space link. Connection and measured scope confirmation stay in the flow; successful collection is followed by indexing. Use the combined installer to keep Cortex and Companion compatible.
Since 2026.0909.02, Confluence updates preserve the served generation when subtree enumeration fails and apply changed target/classification settings on retry. Search uses multilingual vector retrieval by default; CLI and MCP callers can explicitly select hybrid or reranked search. The first successful collection after upgrading regenerates older publication revisions, and the following sync removes obsolete index entries.
Companion brings local documents and Confluence together in My sources, with one Update my documents action. Search previews are resizable, large page trees render visible rows, and cancelling review preparation keeps the draft. Readiness now follows the saved document folder and configuration, including after restart. Run one document update after upgrading to establish this evidence for older indexes. See the release notes.
Adding a Confluence source measures its page, subtree and whole-space scopes with one indexed count each instead of reading the space page by page. On a 5916-page space that measurement took 3 min 19 s, past the timeout of every graphical caller, so Companion showed nothing at all. It now answers in about a second, and the emitted contract is unchanged.
Two whole-space numbers shift by one as a result: the resolved page is no longer folded into the space total, and a space with no visible page reports zero rather than one. A deployment whose search endpoint returns no total cannot measure a scope and reports that as a permanent failure instead of a retryable one. See the contracts.
Paired Companion 2026.0907.00 restores the contrast of the scope window, whose options were drawn in the system text colour, and stops reporting a timeout as a connection failure or advising a delay increase that silently reverts.
The workflow includes search, remote page trees, impact review, evidence-based readiness, save-and-update, last-removal undo and recovery actions. See the contracts.
Paired version 2026.0906.02 provides visible My sources cards, a prefilled selection editor, confirmed page/space removal and browser links to originals. Removal only changes Cortex tracking; search reflects it after successful collection and indexing.
Removing the final source explicitly writes spaces = [] in a schema v2 or v3 configuration. This intentional empty allowlist permits an empty publication with tombstones for prior documents. An absent spaces key remains incomplete configuration and collection is refused. Connection and credential validation and publication safeguards still apply. Both updated components are required; this capability is absent from the installed 2026.0906.01 release.
The simplest path: one installer for Cortex, Cortex Companion, the windowless Confluence converter, and the offline models. No separate Python or .NET runtime is required.
Cortex-Setup.exe and SHA256SUMS from the latest release.Get-FileHash .\Cortex-Setup.exe -Algorithm SHA256 in PowerShell and verify that it exactly matches the Cortex-Setup.exe line in SHA256SUMS.More info, then Run anyway.Index everything in this folder, and finish. Cortex Companion opens when installation completes. Indexing only starts when you request synchronization in Companion.Settings and verify the knowledge-base folder. The Cortex executable installed with Companion is detected automatically.Local database, then select Synchronize local documents.Companion then lets you synchronize, schedule, diagnose, and configure Cortex without a terminal. Details, silent mode and reinstall: Windows install.
Every release also ships one ZIP archive per platform. It unpacks to a cortex/ folder holding the cortex or cortex.exe executable (MCP server + CLI, no Python), its runtime, and the licenses for every embedded dependency; keep the folder whole. See Standalone distribution.
py -m pip install --upgrade cortex-local-rag
cortex setup
This path installs the CLI and MCP server, but not Cortex Companion. The model is downloaded on first use if its cache is empty.
:: From the folder where you cloned Cortex
install.bat
install.bat and sync.bat are the development path for a source checkout, not a supported end-user installation: install.bat installs the unlocked dependencies from requirements.txt, and sync.bat indexes the folder section by section without the Confluence documents. To use Cortex, install Cortex-Setup.exe or a standalone archive instead. Details: Setup.
Documents folder (.md, .pdf) Optional Confluence writer (REST)
| | | current Markdown generation +------------------+-------------------+ | v cortex sync <- Split, hash, vectorize, update FTS5 | v %LOCALAPPDATA%\Cortex\ <- ChromaDB + lexical.db | v cortex serve <- MCP server (FastMCP) | v MCP clients <- Claude / Codex / Gemini / Antigravity / LM Studio / Cursor / Windsurf / VS Code
The embedding model is the multilingual ONNX paraphrase-multilingual-MiniLM-L12-v2. The Windows installer bundles it; a source installation or standalone binary downloads it when the local cache is empty.
knowledge, projects, notes).These modes govern the user-selected document folder. Generated ingestion documents are indexed separately from the current published generation with source_kind=doc and section sources.
Details: Configuration.
cortex commandThe installed package exposes a single command:
| Subcommand | Purpose |
|---|---|
cortex setup | Config + index + client registration in one go (--kb-path, --yes, --no-index, --reset). |
cortex serve | Runs the MCP server (used by clients). |
cortex sync | Incremental index synchronization. |
cortex search | Searches the index from the console (debugging aid). |
cortex ingestion | Shows source health and whether catch-up is due. |
cortex confluence | Stores the PAT interactively or runs the allowlisted writer. |
cortex config | Reads or changes configuration through an atomic JSON contract, notably for Companion. |
cortex daemon | Runs, inspects or stops the shared per-user server used when [server] mode = "shared" (opt-in). |
cortex bundle | Describes or verifies an encrypted portable archive. |
cortex doctor | Installation diagnostics (read-only). |
cortex register / cortex unregister | Adds or removes Cortex from MCP clients. |
cortex init | Creates the single per-user configuration. |
cortex check | Verifies the installation. |
cortex --help describes every subcommand and cortex --help describes its options. A prompt-free installation scripts as:
cortex setup --yes --kb-path "D:\Documents\Knowledge"
| Tool | Description |
|---|---|
cortex_search | Multilingual vector search by default; optional retrieval_mode (vector, hybrid, rerank). Parameters: query, section, top_k (1-10), source/author filters, and occurred/updated date ranges. |
cortex_sync | Triggers an incremental sync of the selected folder and, on a full sync, the current published document generation. |
cortex_list_sections | Lists included sections and "out of policy" folders. |
cortex_freshness | Read-only vault and ingestion freshness summary. Parameters: section (optional), include_entries (false by default). |
config.toml, indexing modes, sections, data home, migration.requirements.lock, --require-hashes, regenerating the lock.| Path | Requirements |
|---|---|
| Windows installer | No separate Python or .NET runtime. At least ~500 MB of space (applications, model + index). |
| Standalone archive | No Python. ~500 MB of space (model + index). |
| From source | Python 3.11 to 3.13. ~500 MB of space. |
| Client | Claude Desktop/Code, Codex, Gemini, Antigravity, LM Studio, Cursor, Windsurf or VS Code (MCP support). |
Apache 2.0. See LICENSE.
ตัดมาแค่ช่วงต้น อ่านต่อใน repo