Hosted HTTP¶
The image (two-stage python:3.13-slim and uv, both pinned by digest; dependencies from the
hash-locked uv.lock) runs as uid 10001 with NASA_MCP_SERVER__TRANSPORT=http on 0.0.0.0:8080
inside the container, a HEALTHCHECK on /healthz, and a read-only root file system in the
compose file.
For anything public:
- terminate TLS in a reverse proxy and set
NASA_MCP_SERVER__PUBLIC_BASE_URL(its host is added to the DNS-rebinding allow-list), or list hosts inNASA_MCP_SERVER__ALLOWED_HOSTS; - add access control in the proxy if you need it (the server is anonymous and read-only);
- decide about the key. By default HTTP callers get DEMO_KEY (about ten NeoWs/InSight requests per
IP before a block of about a day, shared by every caller behind your egress IP). Setting
NASA_MCP_NASA__API_KEYandNASA_MCP_NASA__ALLOW_KEY_IN_HTTP_MODE=truelends your personal quota (1,000 requests/hour) to every caller. Pass the key from a secret store, never from a committed compose file. The other 14 services are keyless either way; - to hide services, set
NASA_MCP_SERVICES__DISABLED(for exampleinsight,neows); - the in-memory cache is per process; set
NASA_MCP_CACHE__DISK_DIRto a volume for a shared gzip-JSON disk cache; /readyzanswers 200 as soon as the process is up.