Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Read markdown with inlined images and index headings for agentic RAG workflows.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"md-vision": {
"command": "npx",
"args": [
"-y",
"md-vision",
"--allow-path",
"ใส่ค่าของคุณ",
"--allow-domain",
"ใส่ค่าของคุณ"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add md-vision -- npx -y md-vision --allow-path 'ใส่ค่าของคุณ' --allow-domain 'ใส่ค่าของคุณ'ตัวนี้ต้องใส่ค่าในคำสั่งเปิดเอง ให้คัดลอกค่าตั้งแล้วเติมค่า
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"md-vision": {
"command": "npx",
"args": [
"-y",
"md-vision",
"--allow-path",
"ใส่ค่าของคุณ",
"--allow-domain",
"ใส่ค่าของคุณ"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้ต้องใส่ค่าในคำสั่งเปิดเอง ให้คัดลอกค่าตั้งแล้วเติมค่า
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"md-vision": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"md-vision",
"--allow-path",
"ใส่ค่าของคุณ",
"--allow-domain",
"ใส่ค่าของคุณ"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub japlete ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.1) เข้า registry 5 เดือนที่ผ่านมา
โปรแกรมที่รองรับ 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
stdio MCP server with two read-only tools for agentic RAG over markdown documentation:
Typical flow: call index_md to discover headings and structure, then read_md_with_images on the sections you need.
Published package: md-vision on npm
In your agent config (.agents/mcp.json or similar), point your MCP host at the server. Example:
{
"mcpServers": { "md-vision": { "command": "npx", "args": [ "md-vision", "--allow-path", "/absolute/path/to/docs", "--allow-domain", "none" ] } } }
With remote markdown (allow all HTTP(S) hosts, or list specific domains):
{
"mcpServers": { "md-vision": { "command": "npx", "args": [ "md-vision", "--allow-path", "/absolute/path/to/docs", "--allow-domain", "all" ] } } }
{
"mcpServers": { "md-vision": { "command": "npx", "args": [ "md-vision", "--allow-path", "/absolute/path/to/docs", "--allow-domain", "raw.githubusercontent.com" ] } } }
The server exits on startup if --allow-path or --allow-domain is omitted.
Restart the MCP host after changing configuration.
| Flag | Required | Effect |
|---|---|---|
--allow-path | Yes (at least one) | Local files must resolve under one of the allowed directories (repeatable). |
--allow-domain | Yes (at least one) | Controls HTTP(S) access. Use all to allow any host, none to disable URLs (local files only), or list specific hosts (repeatable; suffix match supported, e.g. example.com allows docs.example.com). |
Equivalent forms: --allow-path=/path, --allow-domain=host.example, --allow-domain=all, --allow-domain=none.
Do not pass a bare * as a separate shell argument — the shell expands it to filenames in the current directory. Use all or --allow-domain=all instead.
Read a markdown file and inline referenced images as MCP image content.
| Parameter | Type | Description |
|---|---|---|
uri | string | Local path or http(s):// URL |
section | string, optional | Exact heading to read, e.g. ## Introduction (used when matched; otherwise falls back to line_range) |
line_range | [start, end], optional | Inclusive 1-based document line range (used when section is omitted or not found) |
max_images | integer, optional | Max images to inline (default 10, max 50) |
Returns: MCP content array — alternating text and image blocks (PNG, base64) in document order; frontmatter preserved in the leading text. Before each inlined image, a short text block carries the resolved image URL (omitted for data: URIs and other long references). Images beyond max_images stay as markdown image syntax in text.
URI forms: local filesystem paths and http(s):// URLs. Local paths must fall under a configured --allow-path directory. Relative image paths resolve against the markdown file location or document URL. Images may use markdown syntax or HTML tags.
Index headings for navigation before targeted reads.
| Parameter | Type | Description |
|---|---|---|
uri | string | Markdown file, http(s):// URL, or local folder |
Returns: Markdown string. For each file:
tsv code block with columns: heading, line_start, n_images, char_count.Each file is wrapped in:
<file path="..." lines=X chars=Y>
...
Folder uri values are scanned recursively for *.md / *.markdown in stable sorted order. Headings inside fenced code blocks are not indexed.
stdio MCP servers run as subprocesses of the agent runtime that invokes them. There are two deployment patterns commonly used:
--allow-path to the documentation tree you intend to expose.See benchmark/ for the MMLongBench-Doc A/B harness comparing filesystem-only agentic RAG against the same agent with md-vision MCP tools.
md-vision can also be used as a library when you want to index markdown outside an MCP host — for example in an offline preprocessing pipeline for agentic RAG.
Install the package:
npm install md-vision
Use indexMarkdownText when you already have markdown content in memory.
import { indexMarkdownText } from "md-vision";
const markdown = `# Guide
Intro text.
`;
const index = indexMarkdownText(markdown);
console.log(index.rows);
Example result:
[
{ heading: "# Guide", lineStart: 1, imageCount: 1, charCount: 42 }, { heading: "## Setup", lineStart: 5, imageCount: 1, charCount: 24 } ]
Use indexMarkdownFile to load and index a local markdown file.
import { indexMarkdownFile } from "md-vision";
const index = await indexMarkdownFile("./docs/guide.md");
await saveToVectorStoreMetadata({ path: index.path, frontmatter: index.frontmatter, headings: index.rows, });
Use indexMarkdownFolder to recursively index *.md and *.markdown files in stable sorted order.
import { indexMarkdownFolder } from "md-vision";
const files = await indexMarkdownFolder("./docs");
for (const file of files) { console.log(file.path, file.rows); }
Each indexed file returns structured data:
type MarkdownFileIndex = {
path?: string; frontmatter: string; lineCount: number; charCount: number; rows: HeadingIndexRow[]; };
type HeadingIndexRow = { heading: string; lineStart: number; imageCount: number; charCount: number; };
Headings inside fenced code blocks are ignored because indexing uses the markdown AST rather than regex matching.