data
NASA MCP Integration for Codex
Connect NASA to Codex through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect NASA to Codex
Use KosmoKrator as a local MCP proxy for Codex so coding sessions can reach selected integrations with explicit write policy.
Register kosmo mcp:serve as a local stdio server and choose the integration allowlist. The gateway is local, scoped to this integration, and starts with
--write=deny so Codex can inspect read-capable tools without receiving write access by default.
NASA MCP Config for Codex
Keep write access denied or ask-based unless the workspace is trusted.
{
"mcpServers": {
"kosmokrator-nasa": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=nasa",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=nasa --write=deny Why Use KosmoKrator Here
Expose only NASA instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
NASA Tools Visible to Codex
Codex sees stable MCP tool names generated from the NASA integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__nasa__nasa_get_apod | nasa.nasa_get_apod | Read | 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. |
integration__nasa__nasa_get_asteroid | nasa.nasa_get_asteroid | Read | 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. |
integration__nasa__nasa_get_asteroids | nasa.nasa_get_asteroids | Read | 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. |
integration__nasa__nasa_get_current_user | nasa.nasa_get_current_user | Read | 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. |
integration__nasa__nasa_get_mars_rover_photos | nasa.nasa_get_mars_rover_photos | Read | 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. |
integration__nasa__nasa_search_images | nasa.nasa_search_images | Read | 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. |