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.Run this in a terminal, then sign in when the browser opens. Claude Code keeps its own sign-in (a claude.ai sign-in does not carry over), so add only this one server. Adding the Bowmark plugin as well lists every tool twice.
claude mcp add --transport http bowmark-nasa https://api.bowmark.ai/mcp/site/nasaPress the button, or add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"bowmark-nasa": {
"url": "https://api.bowmark.ai/mcp/site/nasa"
}
}
}Press the button, or run this in a terminal.
code --add-mcp '{"name":"bowmark-nasa","type":"http","url":"https://api.bowmark.ai/mcp/site/nasa"}'Run this in a terminal.
codex mcp add bowmark-nasa --url https://api.bowmark.ai/mcp/site/nasaIn Claude, open Plugins → Add → Add custom connector, paste this URL, and pick Sign in now.
https://api.bowmark.ai/mcp/site/nasaIn ChatGPT, open Plugins, press +, choose Add custom MCP server and paste this URL.
https://api.bowmark.ai/mcp/site/nasaAny MCP client that takes a remote (streamable HTTP) server: give it this URL.
https://api.bowmark.ai/mcp/site/nasaFunctions
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"}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.nasa.getMedia("as11-40-5874");import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.nasa.getMedia("as11-40-5874"))Responsereturns nasaMediaFilesinterface 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"}}'import { bowmark } from "@bowmark/web"; const result = await bowmark.providers.nasa.searchImages({ query: "apollo 11" });import asyncio from bowmark_web import bowmark result = asyncio.run(bowmark.providers.nasa.searchImages({"query": "apollo 11"}))Responsereturns nasaSearchResultinterface 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[]; }