home / mcp / tmd earthquake mcp server
Provides real-time earthquake data from TMD with search, filter, and summary tools via MCP.
Configuration
View docs{
"mcpServers": {
"amornpan-tmd-earthquake-server-1.0": {
"command": "python",
"args": [
"C:\\\\Users\\\\Asus\\\\2025-Aug-APT_LLMs-for-Telecom\\\\tmd-earthquake-server-1.0\\\\server.py"
]
}
}
}You deploy this MCP server to access real-time earthquake data from the Thai Meteorological Department. It exposes a set of tools you can call through an MCP client to fetch recent earthquakes, filter by magnitude or location, get summaries, and identify large events. This guide walks you through using, installing, configuring, and troubleshooting the server so you can integrate live earthquake data into your workflows.
Connect with your MCP client to the tmd_earthquake server and use its tools to retrieve and filter earthquake data. You can fetch recent events, filter by magnitude, search by location, obtain a statistics summary, or identify large quakes that exceed a threshold. Use natural language commands or your MCP tooling interface to invoke the available tools and then handle the returned data in your application or analysis workflow.
Prerequisites you need before installation are Python 3.10 or higher, pip, and an internet connection to access the TMD data source. You should also have Claude Desktop if you plan to integrate with Claude in your workflow.
Recommended installation path (Automatic Script) for your environment is shown here. Choose the method that matches your operating system.
Windows
cd C:\Users\Asus\2025-Aug-APT_LLMs-for-Telecom\tmd-earthquake-server-1.0
install.batLinux or macOS
cd /path/to/tmd-earthquake-server-1.0
chmod +x install.sh
./install.shIf you choose Manual Installation, follow these steps to set up a virtual environment, install dependencies, and prepare to run the server.
# Open your terminal
# Navigate to the server directory
cd C:\Users\Asus\2025-Aug-APT_LLMs-for-Telecom\tmd-earthquake-server-1.0
# Create a virtual environment (recommended)
pip install virtualenv
python -m venv venv
# Activate virtual environment
# Windows
venv\Scripts\activate
# Linux/Mac
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Or install the MCP CLI and httpx directly
pip install "mcp[cli]" httpxClaude Desktop configuration is required to connect this server to Claude. You add a server entry that points to the Python runtime and the server script.
{
"mcpServers": {
"tmd-earthquake": {
"command": "python",
"args": ["C:\\Users\\Asus\\2025-Aug-APT_LLMs-for-Telecom\\tmd-earthquake-server-1.0\\server.py"]
}
}
}If the server does not appear in Claude Desktop, check that Python is available and of the correct version, verify dependencies are installed, and review logs for MCP-related messages.
Common checks to perform quickly.
python --version
# Must be Python 3.10 or higher
pip list | grep mcp
# Ensure mcp is installed
# View logs for MCP server issues
# Windows
type %APPDATA%\\Claude\\logs\\mcp*.log
# Or open specific log files
notepad %APPDATA%\\Claude\\logs\\mcp-server-tmd-earthquake.log
# Test server directly
cd C:\\Users\\Asus\\2025-Aug-APT_LLMs-for-Telecom\\tmd-earthquake-server-1.0
python server.pyThe server exposes a set of practical data-access tools that you can call through an MCP client to obtain earthquake information.
Fetch recent earthquake data with a limit on items (default 10)
Filter earthquakes by a minimum magnitude threshold (default 3.0)
Search earthquakes by location name (Thai or English)
Get a statistics summary for earthquakes
Find earthquakes exceeding a magnitude threshold (default 5.0)