data
NASA MCP, CLI, and Lua Integration for AI Agents
NASA integration docs for AI agents: MCP gateway setup, NASA CLI commands, Lua API reference, credentials, and function schemas.
6 functions 6 read 0 write API key auth
NASA for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
nasa- route_slug
nasa- package
nasa- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. NASA CLIHeadless setup and direct function calls. NASA MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
NASA MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for NASA.
Claude Code NASA MCP setup for Claude Code. Cursor NASA MCP setup for Cursor. Codex NASA MCP setup for Codex. OpenAI Agents NASA MCP setup for OpenAI Agents SDK. Claude Agent SDK NASA MCP setup for Claude Agent SDK. Vercel AI SDK NASA MCP setup for Vercel AI SDK. LangChain NASA MCP setup for LangChain. LangGraph NASA MCP setup for LangGraph. CrewAI NASA MCP setup for CrewAI. MCP clients NASA MCP setup for Generic MCP Clients.
NASA CLI Matrix
Use these pages for direct NASA CLI workflows in scripts, CI, cron, and agent wrappers.
CI NASA CLI for CI. Cron Jobs NASA CLI for cron jobs. Shell Scripts NASA CLI for shell scripts. Headless Automation NASA CLI for headless automation. Coding Agents NASA CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
nasa.nasa_get_apod | Read read | 3 | Get the NASA Astronomy Picture of the Day (APOD). Returns the daily astronomical image or photo along with an explanation written by a professional astronomer. You can request a specific date or a range of dates. |
nasa.nasa_get_asteroid | Read read | 1 | Get detailed information about a specific Near Earth Object (asteroid) by its NASA ID. Returns orbital data, estimated diameter, close approach history, and hazard assessment. |
nasa.nasa_get_asteroids | Read read | 2 | Get Near Earth Objects (asteroids) for a date range from NASA. Returns a list of asteroids with their estimated diameter, velocity, distance from Earth, and whether they are potentially hazardous. |
nasa.nasa_get_current_user | Read read | 0 | Get information about the current NASA API configuration. The NASA API is public and does not require user authentication — this tool returns the API key status and available endpoints. |
nasa.nasa_get_mars_rover_photos | Read read | 5 | Get photos from NASA Mars rovers (Curiosity, Opportunity, Spirit, Perseverance). Query by sol (Martian day) or Earth date, and optionally filter by camera. Returns photo URLs and metadata. |
nasa.nasa_search_images | Read read | 3 | Search the NASA Image and Video Library for space, astronomy, and mission imagery. Returns image URLs, titles, descriptions, and metadata from NASA's vast collection. |