Thailand Earthquake MCP Server
LocalAbout Thailand Earthquake MCP Server
A server that gives MCP clients access to earthquake data from Thailand’s Meteorological Department. It supports recent-event retrieval, detail lookup, and searches by date or magnitude.
Key features
- 01Retrieve recent earthquakes
- 02Look up event details by ID
- 03Search by date and magnitude
Use cases
- 01Review the latest reported earthquakes
- 02Inspect a known event by its ID
- 03Find events above a magnitude threshold
MCP support
Exposes tools for retrieving recent earthquake events, looking up event details, and searching the Thailand Meteorological Department API to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEThailand 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/
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.