KosmoKrator

data

NASA MCP Integration for CrewAI

Connect NASA to CrewAI through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

6 functions 6 read 0 write API key auth

Connect NASA to CrewAI

Expose KosmoKrator integrations to CrewAI workers as scoped local tools.

Wrap kosmo integrations:call for specific tasks or connect workers to a local MCP gateway. The gateway is local, scoped to this integration, and starts with --write=deny so CrewAI can inspect read-capable tools without receiving write access by default.

NASA MCP Config for CrewAI

Use per-worker integration scopes to avoid giving every worker every tool.

{
  "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

Scoped tools

Expose only NASA instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

NASA Tools Visible to CrewAI

CrewAI sees stable MCP tool names generated from the NASA integration catalog.

MCP toolSource functionTypeDescription
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.

Related NASA Pages