KosmoKrator

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_key API key
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

NASA MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for NASA.

NASA CLI Matrix

Use these pages for direct NASA CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
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.