How to Use the NASA DONKI — Space Weather Intelligence MCP in Mastra AI
Build resilient space weather alert workflows with Mastra AI to handle satellite safe-mode triggers automatically.
Works with every AI agent you already use
…and any MCP-compatible client
Connect NASA DONKI — Space Weather Intelligence MCP to Mastra AI
Create your Vinkius account to connect NASA DONKI — Space Weather Intelligence to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automate CME Impact Workflows
The `get_cme` tool pulls down massive bursts of solar wind and magnetic fields directed at Earth. Mastra AI excels at taking this raw event data and feeding it into a conditional workflow. If an earth-directed CME is detected, your agent can branch the logic to evaluate the potential impact on orbital assets. You can chain this with `get_geomagnetic_storms` to measure the resulting Kp index. If the API times out during a massive solar event, the framework's exponential backoff retries the connection automatically. This prevents your automated mitigation scripts from failing right when you need them most.
Monitor Radiation Belts via MCP Server
Triggering `get_radiation_belt` exposes Van Allen radiation enhancements that pose severe risks to medium Earth orbit satellites. A workflow engine needs reliable triggers to initiate hardware shutdowns. This endpoint provides the exact energy levels required to make those calls. Mastra lets you add human-in-the-loop approvals before actually sending a shutdown command. The agent spots a dangerous radiation spike, halts the workflow, and pings an admin. Once approved, the pipeline resumes and protects the satellite.
Track Solar Energetic Particles
Using `get_solar_energetic_particles` gives your system early warning on radiation dangerous to both astronauts and electronics. These events move fast. You need a workflow that catches the anomaly and instantly runs a secondary check against recent solar flares using the MCP framework. If the agent confirms an X-class event via `get_solar_flares`, it executes the escalation path. Deploying this logic to any cloud takes one command. You get a production-ready space weather monitor that never sleeps.
Set up NASA DONKI — Space Weather Intelligence MCP in Mastra AI
Prerequisites
- Node.js 18+ and a TypeScript project
-
@mastra/mcp+@mastra/corepackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install @mastra/mcp @mastra/coreplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Configure the MCPClient
Create an
MCPClientwith your Vinkius endpoint as aURLobject. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and inject tools
Call
mcpClient.listTools()and spread the result into your agent'stoolsobject. All NASA DONKI — Space Weather Intelligence tools become native Mastra tools. - 4
Run with any model
Swap
openai("gpt-4o")for any AI SDK-compatible provider. Callagent.generate()and the agent routes tool calls through MCP automatically.
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
const mcpClient = new MCPClient({
id: "nasa-donki-space-weather-intelligence-mcp-client",
servers: {
"nasa-donki-space-weather-intelligence-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "NASA DONKI — Space Weather Intelligence Agent",
model: openai("gpt-4o"),
instructions: "You have access to NASA DONKI — Space Weather Intelligence tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent NASA DONKI — Space Weather Intelligence transactions"
);
console.log(result.text); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by NASA. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about NASA DONKI — Space Weather Intelligence MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the NASA DONKI — Space Weather Intelligence MCP today
We host it, we monitor it, we maintain it. You just paste one token.