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). Put a reverse proxy in front for access
control (Security).