---
title: "Solar System Treks"
description: "How nasa-mcp finds Moon, Mars and Vesta map layers on trek.nasa.gov and returns WMTS tile URLs, never tiles; quirks and citation."
type: Reference
tags:
  - trek
  - moon
  - mars
  - vesta
  - wmts
  - service
generated:
  by: "claude/opus-5.5"
  at: "2026-11-27T00:00:00Z"
sources:
  - id: design
    resource: "DESIGN.md"
    title: "nasa-mcp design"
    author: "team:nasa-mcp"
  - id: research
    resource: "RESEARCH.md"
    title: "nasa-mcp research notes (upstream services, 2026-11-27)"
    author: "team:nasa-mcp"
  - id: catalog
    resource: "src/nasa_mcp/providers/catalog.py"
    title: "nasa-mcp service catalogue"
    author: "team:nasa-mcp"
  - id: trek-docs
    resource: "https://trek.nasa.gov/tiles/apidoc/trekAPI.html"
    title: "Solar System Treks tile API"
    author: "team:nasa-jpl"
status: stable
stale_after: "2027-05-27T00:00:00Z"
---

<!--
SPDX-FileCopyrightText: 2026 Tyson Lee Swetnam
SPDX-License-Identifier: CC-BY-4.0
-->

# Solar System Treks (`trek`)

WMTS map-tile layers (mosaics, elevation and more) of the Moon, Mars and Vesta from NASA's Solar
System Treks portals: LRO, Kaguya, MRO HiRISE/CTX, Viking, Dawn and other missions.

## Endpoint

`https://trek.nasa.gov/{body}/TrekServices/ws/index/eq/searchItems` (layer search),
`.../getLayerServices?uuid=...` (a layer's WMTS endpoint) and
`{endpoint}/1.0.0/WMTSCapabilities.xml`. The api.nasa.gov `mars-wmts`/`vesta-wmts` routes
redirected to pre-signed S3 URLs after **30 s**, tiles timed out after 60 s, and there is no layer
index (RESEARCH.md §8).

## Key use

None. This service is called on its own host; it does not spend api.nasa.gov quota.

## Tools

| Tool | What it returns |
| --- | --- |
| `nasa_trek_list_layers` | equirectangular layers of one body matching a search: uuid, title, mission, instrument, bounding box, resolution |
| `nasa_trek_tile_url` | one layer's WMTS endpoint, capabilities URL, tile URL template, tile matrix set, formats and a level-0 sample tile URL |

Inputs and result fields: [Tool reference](../tools/reference.md).

## Quirks handled

* The layer search is a Solr query (Moon about 1,240 products, Mars 222, Vesta 15); the server
  filters to mosaics and pages.
* Layer names differ between api.nasa.gov and trek.nasa.gov; nasa-mcp uses Trek's own uuids.
* The tile extension (`.png` or `.jpg`) varies by layer and is read from the capabilities'
  `ResourceURL`. Capabilities are parsed with `defusedxml`.
* Level 0 is 2 columns by 1 row. The server returns URLs only; load them in Leaflet, OpenLayers or
  QGIS.
* Layer lists and capabilities are cached 1 day (`static`).

## Citation

`source.citation`:

> NASA Solar System Treks Project, JPL/Caltech (https://trek.nasa.gov/).
