USGS Spatial Data Catalog MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_TRANSPORT | No | Explicit transport selection. Set to streamable-http to select HTTP; otherwise the server uses stdio. | stdio |
| SPATCAT_CATALOG_URL | Yes | Approved HTTPS API base for the USGS Spatial Data Catalog, including /spatcat-api. | |
| SPATCAT_ANALYSIS_URL | Yes | Approved HTTPS API base for the USGS Spatial Data Catalog analysis service, including /spatcat-analysis. | |
| SPATCAT_CATALOG_TOKEN | No | Optional independently scoped bearer credential for the catalog API. | |
| SPATCAT_ANALYSIS_TOKEN | No | Optional independently scoped bearer credential for the analysis API. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Starter MCP server for the GSA MCP hackathon. Replace this description, the tools, and the package name with your own service. See the repo README to get started.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| usgs_spatcat_search_layersA | Search layer names, descriptions, and tags, or browse with no query. Use returned IDs with get_layer. Filters use API codes (e.g. WFS, FLOOD_HAZARD). Returns the upstream page, retaining pagination metadata when supplied; dataset freshness and total counts may be unknown. |
| usgs_spatcat_get_layerA | Get full layer metadata, service endpoints, and capabilities by ID. Discover IDs with search_layers. Endpoints are returned as untrusted metadata, not fetched. Check capabilities before choosing an operation; service type alone does not establish query support. |
| usgs_spatcat_list_spatial_layersA | List layers supporting spatial queries with their API capabilities. No undocumented filtering or pagination parameters are forwarded. Raster distance is not implemented, even if metadata suggests support. WMS support depends on sibling endpoints and geometry type. |
| usgs_spatcat_get_sublayersA | List Esri MapServer sublayer IDs, names, scales, and geometry types. Set include_fields for field definitions and available pagination info. Inspect fields before attribute queries and sublayers before intersects. |
| usgs_spatcat_get_native_resolutionA | Probe a WCS raster layer's native resolution in meters. Use before selecting raster intersection resolution. This endpoint is not a general resolution probe for all service types. |
| usgs_spatcat_intersect_layersA | Intersect layers with a WGS84 Point, Polygon, or MultiPolygon. Vector results contain features; raster results contain summaries. Optional sublayers are Esri MapServer IDs; resolution is raster-only ('auto', 'native', or meters). WMS polygon queries require a sibling WFS/WCS endpoint. Preserve per-layer failures; absence is not a safe-site determination. Inspect layer capabilities first. |
| usgs_spatcat_distance_to_layersA | Find nearest vector features to a WGS84 Point, Polygon, or MultiPolygon. Esri/WFS distance is closest approach in meters, zero for overlap, searching outward up to buffer_meters. S3 vectors use polygon centroids and ignore buffer_meters. Raster distance (COG/WCS/WMS raster) is NOT implemented. Discover supported layers first. No match does not prove absence beyond the search radius; preserve per-layer errors. |
| usgs_spatcat_query_attributesA | Query Esri MapServer/FeatureServer layers by a read-only WHERE filter. Example: ADMIN_ST = 'NM'. Supports comparisons, IN, LIKE, IS NULL, AND/OR, and parentheses, not arbitrary SQL/functions. out_fields is '*' or comma-separated field names. max_results applies per layer, not globally. Discover field names before filtering; results may be capped. |
| usgs_spatcat_list_analysis_modulesA | List available analysis module IDs and API-supplied descriptions. Use returned module IDs with analyze_point. Availability is upstream controlled; examples such as soils/watershed are not an exhaustive enum. |
| usgs_spatcat_analyze_pointA | Analyze a WGS84 longitude/latitude using selected modules or all modules. Discover module IDs with list_analysis_modules. Omit module_ids to run all modules; specify a subset to reduce latency. Returns point metadata and module-specific results without inventing missing values. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| explore_dataset | Start an exploration session for a named dataset. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| server_info | Basic information about this MCP server. Replace with documentation specific to the API(s) you expose — a data dictionary, field reference, or usage notes the model can read directly. |
| spatcat-data-preparation/SKILL.md | Prepare and validate GeoParquet, PMTiles, or COG assets for the USGS Spatial Data Catalog; plan approved S3 uploads and registration without performing catalog writes. |
| spatcat-data-preparation/_manifest | File listing for spatcat-data-preparation |
TDQS
Scored across 10 tools
Most tools map cleanly to a single action on a distinct resource, and descriptions actively clarify boundaries (e.g. search_layers for name/tag discovery vs. get_layer for metadata by ID vs. list_spatial_layers for spatial-capable layers). The layer-discovery trio (search_layers / list_spatial_layers / get_sublayers) still overlaps enough that an agent may hesitate, and get_native_resolution's narrow raster-only scope is easy to over-apply.
Every tool uses the same usgs_spatcat_ prefix followed by a verb_noun snake_case name (search_layers, get_layer, intersect_layers, analyze_point). No camelCase mixing or vague single-word verbs.
Ten tools is well within the ideal range and each corresponds to a distinct capability: discovery, metadata, attribute query, spatial intersection/distance, module listing, and point analysis. No tool feels redundant padding.
The surface covers the full workflow for a spatial catalog: discover (search/list) → inspect (get_layer/get_sublayers) → query (attributes/intersect/distance) → analyze. Gaps are minor: no pagination-continuation or result-export/retrieval-by-ID tool, but agents can work around these via the existing query endpoints.