---
title: "Transports"
description: "nasa-mcp speaks stdio for local clients and stateless Streamable HTTP at /mcp, with health and readiness endpoints."
type: Reference
tags:
  - transports
  - stdio
  - http
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"
status: stable
---

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

# Transports

## stdio (default)

`nasa-mcp` with no arguments serves stdio. Logs go to stderr; stdout carries only protocol framing
(tested by driving a real subprocess).

## Stateless Streamable HTTP

`nasa-mcp --transport http [--host 127.0.0.1] [--port 8080]`

| Path | Method | Behaviour |
| --- | --- | --- |
| `/mcp` | POST | JSON-RPC; stateless (no session header); plain JSON responses; body cap 1 MiB (413 above) |
| `/mcp` | GET, DELETE | 405 with `Allow: POST` |
| `/healthz` | GET | `{"status":"ok","version","protocolVersion","transport":"http"}` |
| `/readyz` | GET | 503 `{"status":"warming"}` until start-up finishes, then 200 `{"status":"ready","degraded":false}`; nasa-mcp prewarms nothing (catalogues are fetched lazily and cached), so this is immediate |

DNS-rebinding protection checks `Host` and `Origin` against localhost, the bind host,
`server.allowed_hosts`/`allowed_origins` and the host of `server.public_base_url`.

There is no OAuth: the server holds no user data and serves anonymous read-only access. No
credential is accepted over HTTP. The operator's api.nasa.gov key is used for HTTP callers only
when `nasa.allow_key_in_http_mode` is true; otherwise they get DEMO_KEY
([details](../getting-started/api-key.md#over-http)). Put a reverse proxy in front for access
control ([Security](../deploy/security.md)).
