quake-mcp
MCP server wrapping the USGS Earthquake Hazards API, enabling AI assistants to search the global earthquake catalog, look up event details, count quakes, find 'Did You Feel It' reports, and read realtime feeds.
README
quake-mcp
An MCP server for the USGS Earthquake Hazards API. It lets AI assistants search the global earthquake catalog, look up event details, count quakes, find "Did You Feel It" reports, and read the USGS realtime feeds. No API key required.
What is MCP?
The Model Context Protocol (MCP) is an open standard that lets AI assistants like Claude connect to external tools and data sources. An MCP server exposes a set of tools and resources over a simple transport (here, stdio); any MCP-capable client (Claude Desktop, Claude Code, Cursor, and others) can launch the server and call its tools during a conversation, so the assistant can answer questions with live data instead of stale training knowledge.
What this server does
quake-mcp wraps the public USGS earthquake catalog and realtime feeds:
- Search earthquakes by time range, magnitude range, bounding box, or center point plus radius
- Get full details for a specific event by id (depth, intensity, PAGER alert, tsunami flag, felt reports)
- List significant earthquakes from the last N days
- Count earthquakes matching a query without listing them
- Find quakes with "Did You Feel It" citizen reports near a location
- Read the USGS realtime feed summaries (past hour, day, and week) as MCP resources
Output is formatted, truncated to a sane size for LLM context windows, and includes USGS event ids and links for follow-up.
Install
Run directly with npx (recommended, nothing to install):
npx quake-mcp
Or install globally:
npm install -g quake-mcp
Requires Node.js 20 or newer.
Configuration
Claude Desktop
Add to claude_desktop_config.json (Settings, Developer, Edit Config):
{
"mcpServers": {
"quake": {
"command": "npx",
"args": ["-y", "quake-mcp"]
}
}
}
Claude Code
claude mcp add quake -- npx -y quake-mcp
Cursor
Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally):
{
"mcpServers": {
"quake": {
"command": "npx",
"args": ["-y", "quake-mcp"]
}
}
}
Tools
search_earthquakes
Search the USGS catalog. All parameters are optional; the default is the past 30 days, worldwide, newest first.
| Parameter | Type | Description |
|---|---|---|
start_time |
string | ISO 8601 start of the time window. Default: 30 days ago. |
end_time |
string | ISO 8601 end of the time window. Default: now. |
min_magnitude |
number | Minimum magnitude, e.g. 5 for M5+. |
max_magnitude |
number | Maximum magnitude. |
min_latitude, max_latitude |
number | Bounding box edges in decimal degrees. |
min_longitude, max_longitude |
number | Bounding box edges in decimal degrees. |
latitude, longitude, radius_km |
number | Circle search: center point and radius in km. All three required together. |
limit |
integer | Max events to return, 1 to 200. Default 25. |
orderby |
string | time (default), time-asc, magnitude, magnitude-asc. |
Example prompts:
- "Show me all M5+ earthquakes near Japan this week"
- "List the 10 largest earthquakes in the last month, sorted by magnitude"
- "Any earthquakes within 200 km of Mexico City since June 1?"
get_earthquake
Full details for one event.
| Parameter | Type | Description |
|---|---|---|
event_id |
string | USGS event id, e.g. us7000abcd (returned by the search tools). |
Example prompts:
- "Get the details for earthquake us7000srcg"
- "Was there a tsunami warning for that quake?"
recent_significant
Significant earthquakes from the last N days, using the USGS significance score (the same threshold as the official significant events feed).
| Parameter | Type | Description |
|---|---|---|
days |
integer | How many days back to look, 1 to 365. Default 7. |
limit |
integer | Max events, 1 to 200. Default 25. |
Example prompts:
- "What were the significant earthquakes this week?"
- "Any major quakes in the last 30 days?"
count_earthquakes
Count matching events without listing them. Accepts the same time, magnitude, and location filters as search_earthquakes (minus limit and orderby).
Example prompts:
- "How many M4.5+ earthquakes happened worldwide in the last 30 days?"
- "How many quakes hit within 500 km of Tokyo this year?"
felt_reports
Earthquakes near a location with "Did You Feel It" (DYFI) citizen reports.
| Parameter | Type | Description |
|---|---|---|
latitude |
number | Center latitude (required). |
longitude |
number | Center longitude (required). |
radius_km |
number | Search radius in km. Default 300. |
days |
integer | How many days back to look. Default 30. |
min_felt |
integer | Minimum number of felt reports. Default 1. |
limit |
integer | Max events. Default 25. |
Example prompts:
- "Did anyone feel an earthquake near San Francisco this week?"
- "Which quakes near Los Angeles got the most felt reports this month?"
Resources
The server exposes USGS realtime feed summaries as readable resources:
| URI | Feed |
|---|---|
usgs://feeds/significant/day |
Significant earthquakes, past day |
usgs://feeds/significant/week |
Significant earthquakes, past week |
usgs://feeds/4.5/day |
M4.5+ earthquakes, past day |
usgs://feeds/4.5/week |
M4.5+ earthquakes, past week |
usgs://feeds/2.5/day |
M2.5+ earthquakes, past day |
usgs://feeds/1.0/hour |
M1.0+ earthquakes, past hour |
Development
git clone https://github.com/adamcwade/quake-mcp.git
cd quake-mcp
npm install
npm run build # compile TypeScript to dist/
npm test # run unit tests (vitest)
node scripts/smoke.mjs # end-to-end test against the live USGS API
To try the server interactively, use the MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.js
Publishing
npm publish runs the build automatically via prepublishOnly. Only dist/, README.md, and LICENSE are included in the package.
Notes
- Data comes from the USGS Earthquake Hazards Program and is in the public domain. This project is not affiliated with or endorsed by USGS.
- The USGS API asks clients to be reasonable with request rates; this server sends a descriptive User-Agent and caps result sizes.
License
MIT, copyright 2026 Adam Wade. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。