NASA API and MCP server for AI agents

Let Claude, ChatGPT or your own agent read NASA. No NASA API key needed.

Add to your agent

Paste this into Claude Code, Cursor, Codex or any agent. It adds the server itself.

Read https://bowmark.ai/sites/nasa.md and add Bowmark's NASA MCP server to my agent.

Functions

Open a function to see its parameters and run it with your own API key.

  • getMediaDownload URLs (original, large, medium, small, thumbnail) for one NASA image, video or audio clip by its nasaId, via images-api.nasa.gov/asset/<id>.

    POST /v1/sites/nasa/getMedia

    Parameters

    curl -X POST https://api.bowmark.ai/v1/sites/nasa/getMedia \
      -H "Authorization: Bearer $BOWMARK_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"nasaId":"as11-40-5874"}'
    Sign in to run
    Responsereturns nasaMediaFiles
    interface nasaMediaFiles {
      nasaId: string;
      files: string[]; // every rendition, original first when present
      originalUrl: string | null; // the ~orig file
    }
  • searchImagesSearch NASA's Image and Video Library (images.nasa.gov) by keyword, optionally by media type: title, description, date, NASA center, keywords and a…

    POST /v1/sites/nasa/searchImages

    Parameters

    curl -X POST https://api.bowmark.ai/v1/sites/nasa/searchImages \
      -H "Authorization: Bearer $BOWMARK_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"args":{"query":"apollo 11"}}'
    Sign in to run
    Responsereturns nasaSearchResult
    interface nasaMediaItem {
      nasaId: string; // pass to getMedia
      title: string;
      description: string | null;
      mediaType: string; // "image" | "video" | "audio"
      dateCreated: string | null; // ISO 8601
      center: string | null; // NASA center, e.g. "JSC"
      keywords: string[];
      photographer: string | null;
      previewUrl: string | null; // thumbnail image
      pageUrl: string; // images.nasa.gov page
    }
    
    interface nasaSearchResult {
      query: string;
      totalHits: number;
      page: number;
      items: nasaMediaItem[];
    }