Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Local RAG search over Obsidian vaults: SQLite hybrid search with local Ollama embeddings.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
RAGNAROK_HOMEต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"ragnarok": {
"command": "uvx",
"args": [
"ragnarok-mcp",
"serve"
],
"env": {
"RAGNAROK_HOME": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add ragnarok --env RAGNAROK_HOME='ใส่ค่าของคุณ' -- uvx ragnarok-mcp serveเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"ragnarok": {
"command": "uvx",
"args": [
"ragnarok-mcp",
"serve"
],
"env": {
"RAGNAROK_HOME": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"ragnarok": {
"type": "stdio",
"command": "uvx",
"args": [
"ragnarok-mcp",
"serve"
],
"env": {
"RAGNAROK_HOME": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
RAGNAROK_HOME envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub freyr ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.1.0) เข้า registry เมื่อวาน
โปรแกรมที่รองรับ 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
Local RAG search over Obsidian vaults for Claude Code.
ragnarok indexes the Markdown notes of one or more Obsidian vaults on your computer. A local MCP server gives Claude Code search tools over the index. No note leaves the computer: the embeddings come from a local Ollama model, and the index is one SQLite file.
sqlite-vec) and a keyword search (SQLite FTS5 with BM25). Reciprocal rank fusion joins the two lists. The unit of rank is the note, with its best section.find_projects finds the earlier projects that a prompt continues or resembles, also when the prompt does not name the project. list_project gives all notes of a project.allow_private = true in the configuration.open_note replace literal passwords, tokens and keys with [REDACTED]. The vault files do not change.ragnarok backfill propose writes a proposal of the missing frontmatter keys for a vault. ragnarok backfill export writes a JSON file with the title and the first lines of each public note that needs a description (credentials removed). Claude writes the descriptions into one or more JSON files, {path: {"description": "...", "type": "..."}}. ragnarok backfill merge ... puts them into the proposal, removes credentials, reports each description of more than 25 words and each row with no description, and replaces a default type with a valid type from Claude. You examine the proposal, then ragnarok backfill apply makes a backup archive of the vault and adds only the missing keys.ragnarok eval compares grep, keyword, dense and hybrid search on your own question sets. ragnarok eval agent compares a Claude Code agent with grep and an agent with the MCP tools.ragnarok init installs the model and the index, and registers the MCP server in Claude Code when the Claude Code plugin does not give it. ragnarok doctor checks the setup.brew services for Ollama.brew install ollama.brew install uv. uv installs Python 3.12. setup.sh installs uv if it is missing.ragnarok is on PyPI as ragnarok-mcp and in the MCP Registry as io.github.freyr/ragnarok.
In Claude Code:
/plugin marketplace add freyr/ragnarok-claude-plugin
/plugin install ragnarok@ragnarok
Then in a terminal:
uvx ragnarok-mcp init
The plugin starts the server with uvx ragnarok-mcp serve and adds the search guidance to each session. The home folder is ~/.ragnarok. To use a different folder, set RAGNAROK_HOME in the env of ~/.claude/settings.json and in your shell.
git clone https://github.com/freyr/ragnarok.git
cd ragnarok ./setup.sh # installs uv if needed, then runs ragnarok init
The checkout is the home folder.
ragnarok init does six steps. It skips each step that is already done:
config.toml from config.example.toml. It asks for the vault root, the folder that holds your vault folders, and adds each subfolder as a vault.brew services start ollama (it asks first). If Ollama runs outside brew services, for example ollama serve in a terminal, init stops it and starts the service.ragnarok gives the MCP server, it removes a registration at the user scope (it asks first). Else it registers the MCP server ragnarok in Claude Code at the user scope (it asks before it replaces another registration).Restart Claude Code after step 6. ragnarok doctor checks the same six parts and prints the fix for each failure.
Before step 5, examine config.toml: remove a folder that is not a vault, and add your private paths. A later change of the configuration applies at the next ragnarok index or MCP tool call, with no restart.
The server gives six tools:
| Tool | What it does |
|---|---|
search | Hybrid search over the notes. Filters: vault, project, area, type, archived. |
find_projects | The projects that match a prompt, with the summary and the matching notes of each project. |
list_project | All notes of one project. |
open_projects | The open projects (state: in-progress and paused by default), grouped by state, newest update first. |
open_note | The text of a note or of one section, with its links and backlinks. A note of more than 4,000 words gives an outline: each section with its heading path, words and first sentence. |
find_by_jira | The notes that contain a ticket key, for example ABC-123. |
The plugin adds the guidance below to each session itself, with the plugin tool names mcp__plugin_ragnarok_ragnarok__*. Without the plugin, Claude Code loads MCP tools on demand. To make Claude use them before grep, add a short instruction to your ~/.claude/CLAUDE.md file, for example:
## Finding notes: ragnarok first
The ragnarok MCP server indexes my Obsidian vaults. Use it before Grep or Glob whenever you look for notes, earlier work or context:
find_projects: the prompt continues or resembles earlier work and names no project. Then call list_project on the best match (look at the top 3).search: facts, decisions, how something was done. Filters: vault, project, area, type.open_note: read a note or one section, with its links and backlinks. A long note gives its outline first; open the section you need by heading.open_projects: which projects are in progress or paused.find_by_jira: a ticket key such as OPS-77.The tools are deferred. Load them in one call before the first use: ToolSearch with select:mcp__ragnarok__search,mcp__ragnarok__find_projects,mcp__ragnarok__list_project,mcp__ragnarok__open_projects,mcp__ragnarok__open_note,mcp__ragnarok__find_by_jira.
If the tools are absent (for example on a computer without ragnarok), fall back to Grep and say so. Results can be unrelated: read the text before you rely on it, and cite note paths. Private notes are refused by design; do not work around the refusal with Read or Grep.
docs/vault-requirements.md tells how a vault must look to get the most from ragnarok: headings, project folders, SUMMARY.md, frontmatter and private folders.
The default path rules expect / / /note.md. If your vaults look different, the repo skill .claude/skills/adapt-vault/ guides Claude Code through the changes. Open Claude Code in the checkout and ask it to adapt ragnarok to your vaults. The skill:
ragnarok survey on each vault;vaults;config.toml, checked with ragnarok inspect;apply;ragnarok eval mechanical;~/.claude/CLAUDE.md, after it asks you.It changes only config.toml and adds frontmatter keys. It never moves, renames or deletes a note or a folder.
config.toml is in the home folder. A relative path in it is relative to the home folder. config.example.toml explains each key. The most important keys:
| Key | What |
|---|---|
root, vaults | The folder that holds the vaults, and the vault folders to index. |
[vault_paths] | The folder of a vault that is not in root, for example kb = "~/code/kb". A note key stays / . |
private_patterns | Glob patterns of private notes, for example "Notes/Journal/**". |
model, dimension | The Ollama embedding model and its vector size. A change needs ragnarok index --rebuild. |
min_words, max_words | The chunk size limits of the splitter. A change needs ragnarok index --rebuild. |
project_markers | A folder that holds one of these files is a project folder (default DRIVERS.md, SUMMARY.md). |
jira_prefixes | The ticket prefixes that find_by_jira knows. |
[vault_rules. ] | The path rules of one vault: which folder gives the area and the project. |
ragnarok reads these frontmatter keys. Each key is optional:
---
project: heating-upgrade # the project slug; default: from the path rules area: home # a wide subject; default: from the path rules type: plan # drivers, summary, research, spec, plan, brainstorm, review, decision,
status: active # active or archived; a note in an _archive folder, or in a project
description: One sentence about the note, which improves find_projects. jira: [ABC-123] # ticket keys, in addition to the keys in the text
Without frontmatter, the path rules give the metadata. The default rules work for a vault with the layout / / /note.md. For a different layout, add a [vault_rules. ] table. Use ragnarok inspect to see the metadata of a note.
| Command | What it does | |||
|---|---|---|---|---|
ragnarok init | Sets up this computer (see Setup). | |||
ragnarok doctor | Checks the setup. | |||
ragnarok index [--rebuild] | Adds, changes and removes notes in the index. After a change of the path rules, the private paths or the markers, it derives the metadata of all notes again, with no new embeddings. When a .md marker file is added or removed, it does the same for the notes under the folder of that file. --rebuild is needed only after a change of model, dimension, min_words or max_words. | |||
ragnarok status | Shows the size and the state of the index. | |||
ragnarok search " " | Searches from the terminal. | |||
ragnarok inspect ... | Shows the metadata of notes. | |||
| `ragnarok chunks ... \ | --stats` | Shows the chunks of notes, or the totals. | ||
ragnarok serve | Runs the MCP server on stdio. Claude Code starts it. | |||
| `ragnarok backfill propose\ | export\ | merge\ | apply [file...]` | Proposes, describes and applies missing frontmatter keys. The order is propose, export, Claude writes descriptions, merge ..., you examine the proposal, apply. |
| ragnarok survey [--json] | Prints the folders, frontmatter keys, marker files, name patterns and ticket prefixes of a vault folder. Run it before
ตัดมาแค่ช่วงต้น อ่านต่อใน repo