Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Provides access to earthquake data from the Thai Meteorological Department (TMD) API. Enables querying recent earthquakes, filtering by location and magnitude, and obtaining statistics.

README.md

TMD Earthquake MCP Server

MCP Server สำหรับดึงข้อมูลแผ่นดินไหวจาก Thai Meteorological Department (TMD) API

Features

  • ✅ ดึงข้อมูลแผ่นดินไหวล่าสุด
  • ✅ กรองตามสถานที่เกิดเหตุ
  • ✅ กรองตามขนาด (Magnitude)
  • ✅ สถิติข้อมูลแผ่นดินไหว
  • ✅ Cache ข้อมูล 1 ชั่วโมง

Installation

1. สร้าง Conda Environment

conda create -n mcp-tmd python=3.11 -y
conda activate mcp-tmd

2. ติดตั้ง Dependencies

cd C:\Users\Asus\tmd-weather-mcp
pip install -r requirements.txt

Usage

Run Server (ทดสอบ)

python earthquake_server.py

Configure Claude Desktop

  1. หา Python Path ใน conda environment:
where python
  1. แก้ไขไฟล์ %APPDATA%\Claude\claude_desktop_config.json:
{
  "mcpServers": {
    "tmd-earthquake": {
      "command": "C:\\Users\\Asus\\anaconda3\\envs\\mcp-tmd\\python.exe",
      "args": [
        "C:\\Users\\Asus\\tmd-weather-mcp\\earthquake_server.py"
      ]
    }
  }
}

หมายเหตุ:

  • ต้องใช้ double backslash (\\) ใน Windows path
  • แทนที่ path ของ Python ให้ตรงกับที่ได้จากคำสั่ง where python
  1. Restart Claude Desktop

Tools

1. get_recent_earthquakes

ดึงข้อมูลแผ่นดินไหวล่าสุด

Parameters:

  • limit (int): จำนวนรายการที่ต้องการ (default: 10)

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

  • "แผ่นดินไหวล่าสุด 5 รายการ"
  • "ข้อมูลแผ่นดินไหววันนี้"

2. get_earthquakes_by_location

กรองแผ่นดินไหวตามสถานที่

Parameters:

  • location_keyword (str): คำค้นหาสถานที่ (ไทยหรืออังกฤษ)

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

  • "แผ่นดินไหวในจีน"
  • "แผ่นดินไหวที่มีคำว่ายูนนาน"

3. get_earthquakes_by_magnitude

กรองแผ่นดินไหวตามขนาด

Parameters:

  • min_magnitude (float): ขนาดต่ำสุด (ริกเตอร์)
  • max_magnitude (float, optional): ขนาดสูงสุด

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

  • "แผ่นดินไหวที่มีขนาดมากกว่า 5 ริกเตอร์"
  • "แผ่นดินไหวขนาด 4-6 ริกเตอร์"

4. get_earthquake_statistics

สรุปสถิติข้อมูลแผ่นดินไหว

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

  • "สรุปสถิติแผ่นดินไหววันนี้"
  • "แผ่นดินไหวเกิดที่ไหนบ่อยที่สุด"

Data Source

  • API: Thai Meteorological Department (TMD)
  • URL: https://data.tmd.go.th/api/DailySeismicEvent/v1/
  • Update Frequency: Daily
  • Coverage: Regional and Global earthquake events

Troubleshooting

ปัญหา: ModuleNotFoundError

สาเหตุ: ไม่ได้ activate conda environment

วิธีแก้: ``bash conda activate mcp-tmd ``

ปัญหา: Claude Desktop ไม่เห็น Server

สาเหตุ: Python path ไม่ถูกต้อง

วิธีแก้:

  1. ตรวจสอบ python path ด้วย where python (ใน activated env)
  2. ใช้ absolute path ใน config file
  3. Restart Claude Desktop

ปัญหา: API Timeout

สาเหตุ: TMD API อาจช้าหรือไม่ตอบสนอง

วิธีแก้:

  • ลองใหม่อีกครั้ง
  • ตรวจสอบ internet connection
  • Cache จะช่วยลด API calls

Project Structure

C:\Users\Asus\tmd-weather-mcp\
├── earthquake_server.py      # Main MCP server
├── requirements.txt           # Python dependencies
├── README.md                  # This file
└── .gitignore                # Git ignore rules

License

MIT License

Author

Created for TMD Earthquake Data Integration with MCP

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Maps & Location servers.