
thailand earthquake mcp
MCP Server for Thailand Meteorological Department earthquake data - เซิร์ฟเวอร์ MCP สำหรับดึงข้อมูลแผ่นดินไหวจากกรมอุตุนิยมวิทยา
Repository Info
About This Server
MCP Server for Thailand Meteorological Department earthquake data - เซิร์ฟเวอร์ MCP สำหรับดึงข้อมูลแผ่นดินไหวจากกรมอุตุนิยมวิทยา
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Thailand Earthquake MCP Server
MCP Server สำหรับข้อมูลแผ่นดินไหวจากกรมอุตุนิยมวิทยา (TMD) ที่สามารถใช้งานร่วมกับ Claude Desktop
ความสามารถ
MCP Server นี้ให้บริการข้อมูลแผ่นดินไหวผ่าน API ของกรมอุตุนิยมวิทยา โดยมีเครื่องมือ (Tools) ดังนี้:
- get_recent_earthquakes - ดึงข้อมูลเหตุการณ์แผ่นดินไหวล่าสุด
- get_earthquake_details - ดึงข้อมูลรายละเอียดของเหตุการณ์แผ่นดินไหวตาม ID
- search_earthquakes - ค้นหาเหตุการณ์แผ่นดินไหวตามเงื่อนไข เช่น วันที่และความรุนแรง
ความต้องการของระบบ
- Python 3.10 หรือสูงกว่า
- แพคเกจ:
mcp,httpx
การติดตั้งด้วย Conda
- สร้าง conda environment:
conda create -n earthquake-mcp python=3.10
conda activate earthquake-mcp
- ติดตั้งแพคเกจที่จำเป็น:
pip install "mcp[cli]" httpx
การใช้งาน
- เปิด terminal และเปิดใช้ conda environment:
conda activate earthquake-mcp
- รัน MCP Server:
python earthquake_server.py
การตั้งค่า Claude Desktop
-
เปิดไฟล์
claude_desktop_config.json(หรือสร้างไฟล์ใหม่หากยังไม่มี):- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
-
เพิ่มการตั้งค่า MCP Server โดยใช้การตั้งค่าที่ให้ไว้ในตัวอย่างด้านล่าง
-
รีสตาร์ท Claude Desktop
ตัวอย่างการใช้งาน
เมื่อเชื่อมต่อกับ Claude Desktop แล้ว คุณสามารถสอบถามข้อมูลเกี่ยวกับแผ่นดินไหวได้ เช่น:
- "มีเหตุการณ์แผ่นดินไหวล่าสุดอะไรบ้าง?"
- "แสดงรายละเอียดของแผ่นดินไหวที่มีรหัส [ID]"
- "ค้นหาแผ่นดินไหวที่มีความรุนแรงมากกว่า 5.0 ในเดือนนี้"
แหล่งข้อมูล
ข้อมูลแผ่นดินไหวมาจาก API ของกรมอุตุนิยมวิทยา: https://data.tmd.go.th/api/DailySeismicEvent/v1/
Quick Start
Clone the repository
git clone https://github.com/aekanundatascience/thailand-earthquake-mcpInstall dependencies
cd thailand-earthquake-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.