NASA MCP server for AI agents

Live

API KEY

SPACE DATA

Search

NASA gives your agent NASA open data: the Astronomy Picture of the Day, near-Earth asteroids, DSCOVR EPIC images of Earth, and DONKI space weather events such as solar flares and geomagnetic storms.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
NASA
agent · Acme Q3
Run
Were there any solar flares in the last 7 days?
S
nasa_donki_flr_list
910ms
Space weather agent
Found 3 solar flares in the last 7 days from the DONKI database and listed the details of each one.
Sources: NASA DONKI, 7 days
nasa
3 flares
18:29
Message Claude...

Tools your space data agent reaches for on NASA, scoped per user.

CALL ANY TOOL
18 tools for space data in NASA: read the Astronomy Picture of the Day, near-Earth asteroids, EPIC Earth images, and DONKI space weather events.
nasa_apod_get
Get apod
Get NASA's Astronomy Picture of the Day for a date, a date range or a random selection. Returns the APOD (or an array) with date, title, explanation, media_type, url, hdurl, credit and copyright. Use nasa_apod_get for the daily astronomy image and its explanation. Set only one of date, start_date/end_date or count.
Parameters
Name
Type
Required
Description
count
integer
Optional
Return this many randomly chosen APODs, up to 25. Do not combine with date or a range. Example: 5.
date
string
Optional
Date of the APOD to get (YYYY-MM-DD). Defaults to today. Do not combine with start_date or count. Example: 2026-09-11.
end_date
string
Optional
End of the date range (YYYY-MM-DD), used with start_date. Defaults to today. Example: 2026-09-07.
start_date
string
Optional
Start of a date range (YYYY-MM-DD). Do not combine with date or count. Example: 2026-09-01.
nasa_donki_cme_analysis_list
List donki cme analysis
nasa_donki_cme_list
List donki cme
nasa_donki_flr_list
List donki flr
nasa_donki_gst_list
List donki gst
nasa_donki_hss_list
List donki hss
nasa_donki_ips_list
List donki ips
nasa_donki_mpc_list
List donki mpc
nasa_donki_notifications_list
List donki notifications
nasa_donki_rbe_list
List donki rbe
nasa_donki_sep_list
List donki sep
nasa_donki_wsa_enlil_simulations_list
List donki wsa enlil simulations
nasa_epic_dates_list
List epic dates
nasa_epic_images_by_date_get
Get epic images by date
nasa_epic_images_latest_get
Get epic images latest
nasa_neo_browse_list
List neo browse
nasa_neo_feed_get
Get neo feed
nasa_neo_lookup_get
Get neo lookup
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// NASA tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["nasa"], toolNames: [
    "nasa_donki_flr_list",
    "nasa_neo_feed_get",
    "nasa_apod_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List solar flares from the last week, show asteroids approaching Earth, and give me today's Astronomy Picture of the Day" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["nasa"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List solar flares from the last week, show asteroids approaching Earth, and give me today's Astronomy Picture of the Day" }],
  tools,
});

// Execute the tool call with the user's vaulted NASA API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["nasa"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List solar flares from the last week, show asteroids approaching Earth, and give me today's Astronomy Picture of the Day" }],
  tools,
});

// Tool call runs with the user's vaulted NASA API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["nasa"] }, pageSize: 100,
});

const agent = new Agent({
  name: "space_data_agent",
  model: "gemini-2.5-pro",
  instruction: "NASA tools scoped to this user",
  tools,
});

await agent.run("List solar flares from the last week, show asteroids approaching Earth, and give me today's Astronomy Picture of the Day");
Try these prompts
Copy any prompt into your agent. Each maps directly to a NASA tool. Click to copy, paste into your agent, done.
Astronomy and Earth imagery
Copy the prompt
Copied
Show today's Astronomy Picture of the Day.
Copy the prompt
Copied
Get the most recent full-disc Earth images from EPIC.
Copy the prompt
Copied
Which dates have EPIC images in the natural collection?
Asteroids
Copy the prompt
Copied
Which near-Earth asteroids approach Earth this week?
Copy the prompt
Copied
Look up the asteroid with SPK-ID 2000433.
Copy the prompt
Copied
Page through the near-Earth object dataset.
Space weather
Copy the prompt
Copied
List geomagnetic storms from the last 30 days.
Copy the prompt
Copied
Show coronal mass ejections from last week.
Copy the prompt
Copied
List recent space weather notifications from the Space Weather Research Center.
SEE HOW AUTH WORKS
Each user connects their own NASA API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
NASA
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
NASA
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
NASA
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
NASA
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other search connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
Test other agents
See the same per-user auth pattern across other search connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared NASA API key looks fine in a demo. In production every data request looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
NASA today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access NASA as the user or through a shared key?
As the user. Each user connects their own NASA API key once, and Scalekit sends it with every call. Audit logs attribute every request to that user, not a shared service account.
Where is the NASA API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in NASA?
Yes. All 18 tools are read-only, so the agent can read NASA data but cannot change anything. Filter by tool name in listScopedTools to expose only what you want, for example the asteroid and Earth imagery tools without the DONKI tools. Scalekit also enforces scope checks before every API call.
What happens when a user revokes NASA access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which NASA data can the agent reach?
nasa_apod_get returns the Astronomy Picture of the Day. nasa_neo_feed_get, nasa_neo_browse_list, and nasa_neo_lookup_get cover near-Earth asteroids. nasa_epic_images_latest_get, nasa_epic_images_by_date_get, and nasa_epic_dates_list cover EPIC images of Earth. The 11 DONKI tools, such as nasa_donki_cme_list and nasa_donki_gst_list, list space weather events for a date range.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""nasa"": {
""url"": ""https://mcp.scalekit.com/nasa"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.nasa]
url = ""https://mcp.scalekit.com/nasa""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""nasa"": {
""url"": ""https://mcp.scalekit.com/nasa"",
""type"": ""http""
}
}
}