Context7
ส่งคู่มือการใช้ไลบรารีและเฟรมเวิร์กรุ่นล่าสุดให้ AI อ่านก่อนตอบ ช่วยให้โค้ดที่ AI เขียนไม่ใช้คำสั่งเก่าที่เลิกใช้แล้ว
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
Lets AI coding assistants search the icon packages actually installed in your project.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
TRUEICON_PROJECT_DIR, TRUEICON_CACHEต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"trueicon": {
"command": "npx",
"args": [
"-y",
"trueicon"
],
"env": {
"TRUEICON_PROJECT_DIR": "ใส่ค่าของคุณ",
"TRUEICON_CACHE": "ใส่ค่าของคุณ"
}
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add trueicon --env TRUEICON_PROJECT_DIR='ใส่ค่าของคุณ' --env TRUEICON_CACHE='ใส่ค่าของคุณ' -- npx -y trueiconเติมค่าที่เว้นว่างไว้ก่อนรัน
วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"trueicon": {
"command": "npx",
"args": [
"-y",
"trueicon"
],
"env": {
"TRUEICON_PROJECT_DIR": "ใส่ค่าของคุณ",
"TRUEICON_CACHE": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"trueicon": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"trueicon"
],
"env": {
"TRUEICON_PROJECT_DIR": "ใส่ค่าของคุณ",
"TRUEICON_CACHE": "ใส่ค่าของคุณ"
}
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
TRUEICON_PROJECT_DIR envTRUEICON_CACHE envค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub manikumarkv ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.6.0) เข้า registry 36 วันที่ผ่านมา
โปรแกรมที่รองรับ 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 รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
TrueIcon is an MCP server that gives AI coding assistants exact, version-correct icon references. Your assistant searches the icon packages your project actually uses (lucide-react, react-icons, @heroicons/react, @phosphor-icons/react, @tabler/icons-react, iconoir-react, @fluentui/react-icons, @carbon/icons-react, @ant-design/icons, @mui/icons-material, @radix-ui/react-icons, @remixicon/react, the Font Awesome Free packages, and the Vue and Svelte packages of Lucide, Heroicons, Tabler and Phosphor) and gets back real icon names, import paths and a ready-to-paste import line.
AI assistants often guess icon names. The guess can be an icon that never existed, one renamed a few releases ago, or one from a different library, and you only find out when the build fails. TrueIcon closes that gap:
search_icons and gets results that are guaranteed to exist in that version, for example import { Trash2 } from 'lucide-react';.| Provider id | npm package | Icon naming |
|---|---|---|
lucide | lucide-react | Lucide's file names, e.g. trash-2 → Trash2 |
heroicons | @heroicons/react | - - , e.g. trash-24-outline → TrashIcon |
react-icons | react-icons | - , e.g. fa6-beer-mug-empty → FaBeerMugEmpty |
phosphor | @phosphor-icons/react | for the regular weight, - otherwise, e.g. trash-bold → TrashIcon with weight="bold" |
tabler | @tabler/icons-react | Tabler's icon names, e.g. trash → IconTrash, trash-filled → IconTrashFilled |
iconoir | iconoir-react | for regular, -solid for solid, e.g. trash-solid → TrashSolid |
fluentui | @fluentui/react-icons | - with style regular, filled or color, e.g. delete-regular → DeleteRegular. Only the scalable (1em) icons are indexed, not the size-specific variants |
carbon | @carbon/icons-react | Carbon's export names in kebab case, e.g. trash-can → TrashCan. Variants add -filled, -alt or -color, e.g. accessibility-filled → AccessibilityFilled |
antdesign | @ant-design/icons | - with theme outlined, filled or two-tone, e.g. delete-outlined → DeleteOutlined |
mui | @mui/icons-material | MUI's export names in kebab case, e.g. delete → Delete. Themes add -outlined, -rounded, -sharp or -two-tone, e.g. delete-outlined → DeleteOutlined; base icons have the style filled |
radix | @radix-ui/react-icons | Radix's icon names, e.g. trash → TrashIcon, github-logo → GitHubLogoIcon |
remix | @remixicon/react | Remix's icon names with the -line or -fill style, e.g. delete-bin-line → RiDeleteBinLine |
fontawesome-solid | @fortawesome/free-solid-svg-icons | Font Awesome's icon names, e.g. trash-can → faTrashCan. Old names still resolve: get_icon finds trash-alt or faTrashAlt as faTrashCan, and faSearch as faMagnifyingGlass |
fontawesome-regular | @fortawesome/free-regular-svg-icons | Same as fontawesome-solid, e.g. star → faStar |
fontawesome-brands | @fortawesome/free-brands-svg-icons | Same as fontawesome-solid, e.g. github → faGithub |
These index the same artwork as the React packages above, with each package's own component names and import paths.
| Provider id | npm package | Icon naming |
|---|---|---|
lucide-vue | @lucide/vue | Same as lucide, e.g. trash → Trash |
lucide-vue-next | lucide-vue-next | Same as lucide. Deprecated upstream in favor of @lucide/vue, still widely used |
lucide-svelte5 | @lucide/svelte | Same as lucide (Svelte 5) |
lucide-svelte | lucide-svelte | Same as lucide. Deprecated upstream in favor of @lucide/svelte |
heroicons-vue | @heroicons/vue | Same as heroicons, e.g. trash-24-outline → TrashIcon from @heroicons/vue/24/outline |
tabler-vue | @tabler/icons-vue | Same as tabler, e.g. trash → IconTrash |
tabler-svelte | @tabler/icons-svelte | Same as tabler |
phosphor-vue | @phosphor-icons/vue | Same as phosphor, e.g. trash-bold → PhTrash with weight="bold" |
phosphor-svelte | phosphor-svelte | Same as phosphor, e.g. trash-bold → TrashIcon with weight="bold" |
Heroicons has no official Svelte package. Angular packages aren't supported yet.
Tools accept either the provider id or the npm package name ("lucide" or "lucide-react"). Usage snippets are import lines, which work the same way in React, Vue and Svelte. Phosphor weights all share one component, so pass the record's style as the weight prop (e.g. ); the usage snippet only shows the import. Font Awesome imports are icon definitions, not components: render them with @fortawesome/react-fontawesome, e.g. .
TrueIcon needs Node.js 20 or newer.
# Run without installing (this is what the MCP configs below do)
npx -y trueicon
trueicon binarynpm i -g trueicon trueicon
trueicon is a stdio MCP server. Your MCP client starts it; running it by hand only prints trueicon: v running on stdio to stderr and waits for JSON-RPC on stdin.
That's it for most projects. TrueIcon finds the icon packages your package.json lists and the versions installed in node_modules. The first search for each package downloads and indexes it, which takes a few seconds. Later searches use the local cache.
dependencies or devDependencies of your package.json.package.json doesn't list (for example one that comes in through a UI kit), or to pin a version.{
"providers": [ { "package": "lucide-react" }, { "package": "react-icons", "version": "5.3.0" }, { "package": "@heroicons/react", "version": "^2.1.0" } ] }
| Field | Type | Required | Meaning |
|---|---|---|---|
providers | array | yes | Icon packages to search. When it lists any, package.json is not used to pick packages. |
providers[].package | string | yes | npm package name of a supported provider, e.g. lucide-react, @lucide/vue or @tabler/icons-svelte (see Supported providers). |
providers[].version | string | no | Exact version or npm range. Overrides the installed version (see Versions). |
semantic | bool | no | Opt-in semantic search (default false). See below. |
.iconmcp.json are skipped, and search_icons reports them as a warning.search_icons returns an error that says which directory it looked in. You can still pass provider to a tool call.Set "semantic": true in .iconmcp.json to add meaning-based ranking to search_icons. Each query is embedded with a small local model (all-MiniLM-L6-v2, ~90MB downloaded once to the transformers.js cache) and matched against per-icon vectors built at index time; those semantic candidates are merged with the keyword results using reciprocal rank fusion, so exact-name matches still win while conceptual queries like "remove background" can surface eraser.
{
"providers": [{ "package": "lucide-react" }], "semantic": true }
Semantic search runs on @huggingface/transformers, which is an optional peer dependency and is not installed by default, so installs that never enable the flag stay lean. To enable semantic search, install it once (about 400MB) alongside trueicon:
npm install @huggingface/transformers
If the flag is on but the package is missing, search_icons and get_icon fall back to keyword-only indexes and return a one-line warning with the install command.
Toggling the flag rebuilds the indexes once (vectors are stored in index.json alongside each record, and meta.json records the embedding model). It stays fully local: no data leaves your machine. TRUEICON_SEMANTIC=1 (or 0) overrides the flag for one-off runs.
TrueIcon reads package.json, .iconmcp.json and node_modules from the project directory. It picks the first of:
$TRUEICON_PROJECT_DIR, when set.package.json or .iconmcp.json. Clients that support roots, like VS Code, tell TrueIcon which folders you're working in, so it follows your oตัดมาแค่ช่วงต้น อ่านต่อใน repo