ckan-thaigdc-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
ckan-thaigdc-mcp
MCP server สำหรับค้นหาและอ่านข้อมูลจาก CKAN โดยออกแบบมาสำหรับระบบบัญชีข้อมูลภาครัฐของไทยที่ใช้ ckanext-thai_gdc และใช้กับ CKAN ทั่วไปได้ด้วย
เวอร์ชันนี้อ่านอย่างเดียว ไม่ส่ง token และเห็นเฉพาะข้อมูลสาธารณะ
สิ่งที่ทำได้
Tool | หน้าที่ |
| แสดงไซต์ที่ตั้งค่าไว้ |
| เวอร์ชัน ประเภท catalog จำนวนชุดข้อมูล และความสามารถของไซต์ |
| ค้นชุดข้อมูล พร้อมตัวกรองและการนับตามหมวด |
| ดู metadata และรายการไฟล์ของชุดข้อมูล |
| ดูรายละเอียดไฟล์ คอลัมน์ และจำนวนแถว |
| ดึงข้อมูลในตาราง กรอง เรียง และหาค่าที่ไม่ซ้ำ |
| แสดงหรือค้นหน่วยงาน |
| แสดงหรือค้นกลุ่ม |
| ค้นแท็กและคำค้นที่ระบบแนะนำ |
| ดูฟิลด์ metadata ฟิลด์บังคับ และค่าที่เลือกได้ |
| หาชุดข้อมูลที่ส่งต่อไปยัง catalog อื่นด้วย |
ตัวอย่างคำถาม:
"ใน NSO มีชุดข้อมูลเกี่ยวกับประชากรที่มีไฟล์ CSV อะไรบ้าง"
"ขอร้อยละครัวเรือนที่มีแท็บเล็ตของภาคเหนือ เรียงจากมากไปน้อย"
"จังหวัดกาฬสินธุ์รับชุดข้อมูลอะไรจาก NSO บ้าง"
Related MCP server: CKAN MCP Server
ติดตั้ง
ต้องมี Node.js 20.3 ขึ้นไป
git clone https://github.com/nungsatick/ckan-thaigdc-mcp.gitcd ckan-thaigdc-mcpnpm installnpm install จะ build ให้เองที่ dist/index.js จากนั้นดู path เต็มของไฟล์นี้ไว้ใช้ในขั้นตอนถัดไป
node -e "console.log(require('path').resolve('dist/index.js'))"ตัวอย่างด้านล่างใช้ C:/path/to/ckan-thaigdc-mcp/dist/index.js ให้เปลี่ยนเป็น path ของคุณ บน Windows ใช้ / ได้เลย
ตั้งค่ากับ AI แต่ละตัว
Claude Code
claude mcp add --env "CKAN_SITES=nso=https://catalog.nso.go.th,gdcatalog=https://gdcatalog.go.th" --transport stdio --scope user ckan-thaigdc-mcp -- node C:/path/to/ckan-thaigdc-mcp/dist/index.jsตรวจสอบด้วยคำสั่งนี้ หรือพิมพ์ /mcp ใน Claude Code
claude mcp get ckan-thaigdc-mcp--scope userใช้ได้ทุกโปรเจกต์ ถ้าต้องการแชร์เฉพาะโปรเจกต์ให้ใช้--scope projectซึ่งจะสร้าง.mcp.jsonถ้าจะใช้ไซต์เริ่มต้นทั้งหมด ไม่ต้องใส่
--env
Claude Desktop
เปิด Settings > Developer > Edit Config แล้วเพิ่มส่วนนี้ลงในไฟล์ที่เปิดขึ้นมา
{
"mcpServers": {
"ckan-thaigdc-mcp": {
"command": "node",
"args": ["C:/path/to/ckan-thaigdc-mcp/dist/index.js"],
"env": {
"CKAN_SITES": "nso=https://catalog.nso.go.th,gdcatalog=https://gdcatalog.go.th"
}
}
}
}ปิด Claude Desktop ให้สนิทรวมถึงที่ system tray แล้วเปิดใหม่
ไฟล์นี้ปกติอยู่ที่ %APPDATA%\Claude\claude_desktop_config.json แต่ถ้าติดตั้งจาก Microsoft Store อาจอยู่ที่อื่น จึงควรเปิดผ่านเมนู Edit Config ถ้ามี mcpServers อยู่แล้ว ให้เพิ่มเฉพาะ ckan-thaigdc-mcp เข้าไป
Codex (CLI, IDE extension, ChatGPT desktop)
ทั้งสามตัวใช้ไฟล์ตั้งค่าเดียวกันคือ ~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml) ให้เพิ่มส่วนนี้
[mcp_servers.ckan-thaigdc-mcp]
command = "node"
args = ["C:/path/to/ckan-thaigdc-mcp/dist/index.js"]
[mcp_servers.ckan-thaigdc-mcp.env]
CKAN_SITES = "nso=https://catalog.nso.go.th,gdcatalog=https://gdcatalog.go.th"หรือเพิ่มด้วยคำสั่ง
codex mcp add ckan-thaigdc-mcp --env "CKAN_SITES=nso=https://catalog.nso.go.th,gdcatalog=https://gdcatalog.go.th" -- node C:/path/to/ckan-thaigdc-mcp/dist/index.jsตรวจสอบด้วยคำสั่งนี้ หรือพิมพ์ /mcp ใน Codex
codex mcp listGoogle Antigravity
เปิดไฟล์ตั้งค่า
IDE: กด … ด้านบนแผง agent > MCP Servers > Manage MCP Servers > View raw config
App หรือ CLI: แก้ไฟล์
~/.gemini/config/mcp_config.jsonโดยตรง (Windows:%USERPROFILE%\.gemini\config\mcp_config.json)
เพิ่มส่วนนี้
{
"mcpServers": {
"ckan-thaigdc-mcp": {
"command": "node",
"args": ["C:/path/to/ckan-thaigdc-mcp/dist/index.js"],
"env": {
"CKAN_SITES": "nso=https://catalog.nso.go.th,gdcatalog=https://gdcatalog.go.th"
}
}
}
}โหลดใหม่
App: Settings > Customizations > Installed MCP Servers แล้วกดปุ่ม refresh
CLI: พิมพ์
/mcpแล้วเลือกโหลดใหม่IDE: ถ้ายังไม่เห็น tools ให้ปิดแล้วเปิดใหม่
Antigravity รุ่นเก่าใช้ไฟล์ ~/.gemini/antigravity/mcp_config.json ถ้าแก้แล้วไม่เห็นผล ให้ใช้เมนู View raw config เพื่อดูว่ารุ่นของคุณอ่านไฟล์ใด
AI อื่น ๆ
โปรแกรมที่รองรับ MCP แบบ stdio ส่วนใหญ่ใช้ค่าเดียวกันนี้: command คือ node, args คือ path ของ dist/index.js และ env คือ CKAN_SITES
เลือกไซต์ด้วย CKAN_SITES
กำหนดในรูปแบบ ชื่อย่อ=URL คั่นด้วยจุลภาค server จะเรียกได้เฉพาะไซต์ในรายการนี้
CKAN_SITES=nso=https://catalog.nso.go.th,kalasin=https://kalasin.gdcatalog.go.th,local=http://localhost:8881ใช้
http://ได้เฉพาะlocalhostส่วนไซต์อื่นต้องเป็นhttps://ถ้าไม่กำหนด จะใช้
nso,gdcatalog,datagoth,statprovince,kalasin
แก้ปัญหาเบื้องต้น
อาการ | สิ่งที่ควรตรวจ |
ไม่เห็น tools | path ใน |
| ใช้ path เต็มของ Node เป็น |
| รัน |
| เพิ่มไซต์นั้นใน |
ไซต์ไม่ตอบ | ลองใหม่หรือลด |
ทดสอบ server โดยไม่ต้องใช้ AI:
npx @modelcontextprotocol/inspector node dist/index.jsพัฒนาต่อ
npm testnpm run buildnpm run smoke เรียก tools ทุกตัวกับไซต์จริง เลือกไซต์ได้ด้วย SMOKE_SITE และ CKAN_SITES
ผลการศึกษา API และแผนเฟสถัดไปอยู่ใน docs/ckan-api-research.md
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only search of 2,189 AI agent tools (MCP servers, x402 APIs) with daily automated trust scores.
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
Search 77k public-sector open data APIs across 10 countries. Read-only, no API key.
Search and read the aicoolies catalog of AI and developer tools via a remote MCP knowledge graph.
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceEnables AI assistants and CLI tools to explore and analyze datasets from 600+ global CKAN open-data portals. Provides comprehensive tools for dataset discovery, datastore queries, metadata analysis, and local downloads without writing custom CKAN integrations.14MIT
- AlicenseAqualityAmaintenanceEnables AI assistants to search, explore, and query any CKAN open data portal through natural language, making public datasets accessible without requiring knowledge of the portal's API.201,614 npm59MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and read Thailand's official open-government data from data.go.th, providing tools to search datasets, retrieve full records, and browse categories without API keys.MIT

mcp-data-lvofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to search, retrieve metadata, and query tabular resources from Latvia's Open Data portal (data.gov.lv) via CKAN.498 npmMIT