thailand-earthquake-mcp

aekanundatascience/thailand-earthquake-mcp

3.2

If you are the rightful owner of thailand-earthquake-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Thailand Earthquake MCP Server provides earthquake data from the Thai Meteorological Department (TMD) for use with Claude Desktop.

Tools
3
Resources
0
Prompts
0

Thailand Earthquake MCP Server

MCP Server สำหรับข้อมูลแผ่นดินไหวจากกรมอุตุนิยมวิทยา (TMD) ที่สามารถใช้งานร่วมกับ Claude Desktop

ความสามารถ

MCP Server นี้ให้บริการข้อมูลแผ่นดินไหวผ่าน API ของกรมอุตุนิยมวิทยา โดยมีเครื่องมือ (Tools) ดังนี้:

  1. get_recent_earthquakes - ดึงข้อมูลเหตุการณ์แผ่นดินไหวล่าสุด
  2. get_earthquake_details - ดึงข้อมูลรายละเอียดของเหตุการณ์แผ่นดินไหวตาม ID
  3. search_earthquakes - ค้นหาเหตุการณ์แผ่นดินไหวตามเงื่อนไข เช่น วันที่และความรุนแรง

ความต้องการของระบบ

  • Python 3.10 หรือสูงกว่า
  • แพคเกจ: mcp, httpx

การติดตั้งด้วย Conda

  1. สร้าง conda environment:
conda create -n earthquake-mcp python=3.10
conda activate earthquake-mcp
  1. ติดตั้งแพคเกจที่จำเป็น:
pip install "mcp[cli]" httpx

การใช้งาน

  1. เปิด terminal และเปิดใช้ conda environment:
conda activate earthquake-mcp
  1. รัน MCP Server:
python earthquake_server.py

การตั้งค่า Claude Desktop

  1. เปิดไฟล์ claude_desktop_config.json (หรือสร้างไฟล์ใหม่หากยังไม่มี):

    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. เพิ่มการตั้งค่า MCP Server โดยใช้การตั้งค่าที่ให้ไว้ในตัวอย่างด้านล่าง

  3. รีสตาร์ท Claude Desktop

ตัวอย่างการใช้งาน

เมื่อเชื่อมต่อกับ Claude Desktop แล้ว คุณสามารถสอบถามข้อมูลเกี่ยวกับแผ่นดินไหวได้ เช่น:

  • "มีเหตุการณ์แผ่นดินไหวล่าสุดอะไรบ้าง?"
  • "แสดงรายละเอียดของแผ่นดินไหวที่มีรหัส [ID]"
  • "ค้นหาแผ่นดินไหวที่มีความรุนแรงมากกว่า 5.0 ในเดือนนี้"

แหล่งข้อมูล

ข้อมูลแผ่นดินไหวมาจาก API ของกรมอุตุนิยมวิทยา: https://data.tmd.go.th/api/DailySeismicEvent/v1/