---
title: "NASA Exoplanet Archive"
description: "How nasa-mcp queries the NASA Exoplanet Archive over TAP/ADQL: structured search, raw SELECT queries, maxrec row caps and citation."
type: Reference
tags:
  - exoplanet
  - tap
  - adql
  - astronomy
  - 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: exoplanet-docs
    resource: "https://exoplanetarchive.ipac.caltech.edu/docs/TAP/usingTAP.html"
    title: "Exoplanet Archive TAP documentation"
    author: "team:nasa-exoplanet-archive"
status: stable
stale_after: "2027-05-27T00:00:00Z"
---

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

# NASA Exoplanet Archive (`exoplanet`)

Confirmed exoplanets and their host stars, operated by Caltech/IPAC. The structured search uses the
Planetary Systems Composite Parameters table (`pscomppars`, 6,473 planets on 2026-11-27).

## Endpoint

`https://exoplanetarchive.ipac.caltech.edu/TAP/sync?query=<ADQL>&format=json` (RESEARCH.md §13). The legacy `nstedAPI` is deprecated.

## Key use

None. This service is called on its own host; it does not spend api.nasa.gov quota. Local politeness: 1 request/s, 1 in flight; each query takes about 2-3 s.

## Tools

| Tool | What it returns |
| --- | --- |
| `nasa_exoplanet_search` | planets filtered by name (with `%` wildcards), host, discovery method and year, radius, period, equilibrium temperature or distance, with a `units` map |
| `nasa_exoplanet_query` | one read-only ADQL `SELECT` on any archive table (ps, pscomppars, stellarhosts, toi, k2pandc, ...), rows as JSON objects, capped |

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

## Quirks handled

* **Row caps use TAP `maxrec`, never ADQL `TOP`:** the service applies `TOP` *before* `ORDER BY`,
  so `top 3 ... order by pl_name` returned the wrong three planets. `maxrec` limits after
  ordering.
* `nasa_exoplanet_query` accepts a single `SELECT` only; a caller's `TOP n` above the cap is
  lowered to it. The cap is `limits.adql_max_rows` (500 by default, at most 5,000).
* Structured filters are compiled to ADQL with literal escaping.
* Errors (for example an invalid column) come back as **HTTP 400 VOTable XML** even with
  `format=json`; the `QUERY_STATUS` text is returned as `invalid_argument`.
* Units: radii in Earth radii, masses in Earth masses, periods in days, temperatures in K,
  distances in parsecs.

When you query another table with `nasa_exoplanet_query`, cite that table's DOI.

## Citation

`source.citation`:

> This research has made use of the NASA Exoplanet Archive, which is operated by the California Institute of Technology, under contract with NASA under the Exoplanet Exploration Program. DOI: 10.26133/NEA13 (Planetary Systems Composite Parameters).
