space-weather-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@space-weather-mcpGive me the stargazing conditions in Tucson tonight."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Space Weather MCP
A custom MCP (Model Context Protocol) server that connects Kiro to NASA and weather APIs, enabling space-aware daily briefings, stargazing condition reports, and astronomy picture exploration ā all from within your IDE.
Demo
Video: Space Weather MCP Demo (mp4)
Related MCP server: MCP TypeScript NASA Server
What It Connects To
API | What it provides | Auth |
Astronomy Picture of the Day ā title, explanation, image URLs | Free key (or | |
Current conditions, 7-day forecast, sunrise/sunset | No key needed | |
City name ā coordinates | No key needed |
MCP Tools Provided
Tool | Description |
| Fetch NASA's Astronomy Picture of the Day (optional date param for archive) |
| Current weather + 7-day forecast for any city worldwide |
| Stargazing score (0-100) based on cloud cover, humidity, wind, and daylight |
| Combined report: APOD + weather + stargazing in a single call |
What I Built With It
A Space Weather Journal Generator that produces daily Markdown briefings combining:
What's happening in space today (NASA's picture of the day with full explanation)
Ground-level weather conditions for your city
A computed stargazing score telling you whether tonight is worth going outside
This is something Kiro cannot do without the MCP integration ā it has no native access to live weather data or NASA's daily content. The MCP server gives Kiro real-time awareness of both astronomical events and local sky conditions.
Example Output
# š¤ļø Space Weather Journal ā 2026-07-17
**Location:** Seattle, Washington, United States
## š Today in Space: The Dust Trail of Comet Tempel 2
Comet 10P/Tempel 2 orbits the Sun once every 5.4 years...
## š”ļø Ground Conditions
| Temperature | 19°C (feels like 20.5°C) |
| Conditions | Mainly clear |
| Cloud Cover | 25% |
## š¤ļø Stargazing Score: 55/100 ā Fair
ā ļø Partial clouds ā some stars visible
ā
Low humidity ā crisp atmosphere
ā
Calm winds ā stable for telescopes
ā° Wait for sunset to observeSetup
Prerequisites
Node.js 18+
(Optional) NASA API key from api.nasa.gov ā works without one using
DEMO_KEY
Installation
git clone <repo-url>
cd space-weather-mcp
# Install dependencies
npm install
# Build the MCP server
npm run buildEnvironment Variables
cp .env.example .env# Optional ā the server works without this (uses DEMO_KEY with rate limits)
NASA_API_KEY=your_nasa_api_key_hereConfigure in Kiro
The .kiro/settings/mcp.json is already included. If you're adding this to an existing project, add to your MCP config:
{
"mcpServers": {
"space-weather": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/space-weather-mcp",
"env": {
"NASA_API_KEY": "${env:NASA_API_KEY}"
},
"disabled": false
}
}
}Run the Demo
# Generate a space weather journal for any city
npx tsx demo/generate-briefing.ts "San Francisco"
npx tsx demo/generate-briefing.ts Tokyo
npx tsx demo/generate-briefing.ts LondonUse in Kiro
Once the MCP server is configured, ask Kiro things like:
"What's NASA's astronomy picture today?"
"What are the stargazing conditions in Tucson tonight?"
"Give me a full space weather briefing for my location"
"Show me the APOD from my birthday (1995-06-16)"
Project Structure
space-weather-mcp/
āāā .kiro/
ā āāā settings/mcp.json # MCP server configuration
ā āāā steering/space-weather.md # Agent behavior guidance
āāā src/
ā āāā index.ts # MCP server implementation (4 tools)
āāā demo/
ā āāā generate-briefing.ts # Demo script ā generates Markdown journals
āāā dist/ # Compiled output (after npm run build)
āāā .env.example # Environment variable template
āāā .gitignore
āāā package.json
āāā tsconfig.json
āāā README.mdHow It Works
The MCP server runs on stdio transport (standard for Kiro MCP integrations). When Kiro starts, it launches the server as a child process and communicates via JSON-RPC over stdin/stdout.
āāāāāāāāāāā stdio (JSON-RPC) āāāāāāāāāāāāāāāāāāāā HTTPS āāāāāāāāāāāāāāāā
ā Kiro ā āāāāāāāāāāāāāāāāāāŗ ā Space Weather ā āāāāāāāāŗ ā NASA APOD ā
ā IDE ā ā MCP Server ā ā OpenMeteo ā
āāāāāāāāāāā āāāāāāāāāāāāāāāāāāāā āāāāāāāāāāāāāāāāThe stargazing score is computed locally by the server using a weighted formula:
Cloud cover (0-60 point penalty)
Humidity (0-20 point penalty)
Wind speed (0-20 point penalty)
Daytime (30 point penalty)
Tech Stack
Runtime: Node.js 18+, TypeScript
MCP SDK:
@modelcontextprotocol/sdk^1.12.1APIs: NASA APOD (free), OpenMeteo (free, no key)
Dev Tools: Kiro (MCP, steering, specs)
Kiro Birthday Challenge ā Day 5
Built for the Kiro Birthday Challenge Day 5: "Build a custom MCP integration." This MCP server connects Kiro to real-time space and weather data it has no native access to, then uses that connection to generate contextual astronomy briefings that combine what's happening in space with conditions on the ground.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides standardized access to 20+ NASA data sources including astronomy pictures, Mars rover photos, near-Earth objects, satellite imagery, space weather, and planetary data through a unified interface optimized for AI consumption.2312ISC
- AlicenseAqualityFmaintenanceProvides seamless integration with NASA's public APIs, enabling AI assistants to access space and astronomy data including APOD, Mars rover photos, Near-Earth Objects, space weather events, and Earth imagery.514MIT
- AlicenseNot gradedqualityDmaintenanceProvides access to NASA's public APIs including Astronomy Picture of the Day, Mars Rover Images, and Near Earth Objects data, enabling users to query and retrieve space-related information through natural language.5MIT
- FlicenseNot gradedqualityDmaintenanceProvides access to NASA's open APIs including astronomy imagery, Mars rover photos, asteroid tracking, Earth observations, and media library through natural language interaction.9
Related MCP Connectors
Live space data for AI agents - rocket launches, ISS passes, launch news. Free, no auth.
Spacenews MCP ā wraps the Spaceflight News API v4 (free, no auth)
Connect to Atlassian Jira, Confluence, and Compass to search, create, and manage your work.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pyraenix/space-weather-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server