Claude MCP Server for USGS Quakes API
Serves as the runtime environment for the MCP server, enabling it to process requests and communicate with the USGS Quakes API
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Claude MCP Server for USGS Quakes API show me recent earthquakes over magnitude 5 worldwide"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
usgs-quakes-mcp
MCP server for the USGS earthquake catalog
An MCP server providing access to the USGS FDSN event API from Claude Desktop, Claude Code, and any other MCP client.
npx -y usgs-quakes-mcpNo API key required — the USGS service is free and public.
Overview
This Model Context Protocol (MCP) server enables AI assistants and applications to:
Get earthquake data through a wide variety of search parameters
Get details about a specific earthquake
Users can run queries using natural language.
Related MCP server: earthquake-mcp-server
Sample Output
Q: find earthquakes over 2 magnitude in florida over the last 20 years
A: I'll help you search for earthquakes in Florida with a magnitude greater than 2.0 over the past 20 years.
View Result from find-earthquakes from usgs-quakes (local)
{
"endTime": "2024-12-28T23:59:59",
"startTime": "2004-12-28T00:00:00",
"maxLatitude": 31.000888,
"minLatitude": 24.396308,
"maxLongitude": -80.031362,
"minLongitude": -87.634896,
"minmagnitude": 2
}Based on the USGS earthquake data, there have been three notable earthquakes in or near Florida over the past 20 years:
A magnitude 5.9 earthquake in the Gulf of Mexico on September 10, 2006 Located offshore at coordinates 26.319°N, 86.606°W Depth: 14 km This was the largest earthquake in the region during this period It was widely felt, with 5,763 people reporting feeling the quake
A magnitude 2.8 earthquake near Jay, Florida on March 6, 2019 Located at coordinates 30.9718°N, 87.1719°W Depth: 5 km 49 people reported feeling this earthquake
A magnitude 2.7 earthquake near Century, Florida on March 24, 2019 Located at coordinates 30.9622°N, 87.2384°W Depth: 5 km 4 people reported feeling this earthquake
It's worth noting that Florida experiences relatively few earthquakes compared to more seismically active regions of the United States. The two 2019 earthquakes occurred in the Florida panhandle, while the larger 2006 event was offshore in the Gulf of Mexico.
Q: get the details of the Jay Florida earthquake
A: I'll get the detailed information about the magnitude 2.8 earthquake that occurred near Jay, Florida.
View Result from find-earthquake-details from usgs-quakes (local)
{
"eventid": "us1000jbw4"
}Here are the key details about the Jay, Florida earthquake: Date and Time: March 7, 2019, at 04:45:52 UTC Location: 2 km (1.2 miles) Northwest of Jay, Florida Coordinates: 30.9718°N, 87.1719°W Depth: 5 kilometers (3.1 miles) Magnitude: 2.8 mb_lg (body wave magnitude)
Additional details:
49 people reported feeling the earthquake
The Community Internet Intensity Map (CIIM) showed a maximum intensity of 2.7
There was no tsunami generated
The earthquake was reviewed and confirmed by USGS scientists
The location had a horizontal error margin of about 6.2 km
The magnitude calculation used data from 11 seismic stations
The earthquake was also detected by the New Mexico seismic network (NM), which calculated a slightly different magnitude of 2.63
Technical measurements:
Azimuthal gap: 243 degrees (indicates moderate coverage by seismic stations)
RMS error: 0.59 (indicates reasonable quality of the location estimate)
Minimum distance to nearest station: 0.222 degrees
Standard error for magnitude: 0.154
This was a relatively minor earthquake, but notable for Florida which rarely experiences seismic activity. The fact that it was felt by 49 people suggests it was noticeable to residents in the immediate area, though no significant damage would be expected from an earthquake of this magnitude.
Installation
Requires Node.js 20 or newer. No install step is needed — npx fetches the server on
first run.
Claude Desktop
Open your Claude Desktop configuration at:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"usgs-quakes": {
"command": "npx",
"args": ["-y", "usgs-quakes-mcp"]
}
}
}Close/Quit then restart Claude Desktop
Claude Code
claude mcp add usgs-quakes -- npx -y usgs-quakes-mcpAny other MCP client
The server speaks MCP over STDIO. Run it with npx -y usgs-quakes-mcp, or install it
globally with npm install -g usgs-quakes-mcp and run usgs-quakes-mcp.
Tools
find-earthquakes— search by time, bounding box, radius, magnitude, and depthcount-earthquakes— count matches without returning events, to size a query firstfind-earthquake-details— full detail for one event id, including origin quality metrics
Data source
Data comes from the USGS FDSN event web service. The service caps any single query at 20,000 events.
Development
npm install # install dependencies
npm run dev # run from source over STDIO, no build step
npm run build # compile TypeScript to build/
npm run typecheck # type-check without emittingsrc/server.ts holds all the tools and API calls — that is the file to edit.
src/index.ts is just the STDIO entry point.
To point Claude Desktop at a local build instead of the published package, use
"command": "node" with "args": ["/full/path/to/usgs-quakes/build/index.js"], and
restart Claude Desktop after each rebuild.
Troubleshooting
If Claude Desktop cannot find npx, provide its full path (on macOS, typically
/usr/local/bin/npx or /opt/homebrew/bin/npx). The same applies to node if you are
running a local build.
Available Tools
3 toolscount-earthquakesCount EarthquakesARead-only
Count earthquakes matching the given search parameters, without returning the events themselves. Useful for sizing a query before running it.
Inputs: limit, endTime, orderby, latitude, +11 more.
find-earthquake-detailsFind Earthquake DetailsARead-only
Get detailed information about a single earthquake, including origin quality metrics, by its USGS event id (e.g. 'us6000d3zh').
Inputs: eventid (required).
find-earthquakesFind EarthquakesBRead-only
Search the USGS earthquake catalog by time, location, magnitude, and depth. Returns a summary of each matching event.
Inputs: limit, endTime, orderby, latitude, +11 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: find-earthquakes returns summaries, count-earthquakes returns counts, and find-earthquake-details returns full details for a single ID. There is no overlap or ambiguity.
All tool names follow a consistent verb_noun pattern (find_earthquakes, count_earthquakes, find_earthquake_details) with snake_case and predictable prefixes, making them easy for an agent to understand and select.
Three tools is ideal for a focused read-only API like the USGS earthquake catalog. Each tool serves a necessary function without redundancy or bloat.
The tool set covers the full query lifecycle: search with filtering, count before retrieval, and detailed view by ID. There are no obvious gaps given the read-only nature of the API.
Maintenance
Related MCP Connectors
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Run UX research from Claude — create card sort studies, list studies, pull headline stats.
Search and read the Claude Platform documentation and API reference.
Read-only Google Ads, GA4 and Search Console data for Claude, with no Google Cloud setup.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides access to the USGS Earthquake Catalog for querying earthquake events via the FDSNWS API, enabling natural language questions about earthquake data.302 npmMIT
- AlicenseAqualityDmaintenanceReal-time earthquake data and seismic monitoring for AI agents via the USGS Earthquake Catalog API.8MIT
- FlicenseAqualityDmaintenanceIntegrates the US National Weather Service API with Claude Desktop, enabling users to query current conditions and forecasts using natural language.2-
- FlicenseNot gradedqualityCmaintenanceEnables users to explore live earthquake data from USGS, with an interactive widget for filtering and visualizing seismic events worldwide.-