space-mcp-server
MCP server providing AI agents with access to NASA and space/astronomy data including APOD, Mars rover photos, near-Earth asteroids, exoplanets, Earth imagery, natural events, and space weather.
README
Space MCP Server
MCP server giving AI agents access to NASA and space/astronomy data — APOD, Mars rover photos, near-Earth asteroids, exoplanets, Earth imagery, natural events, and space weather.
Features (10 Tools)
| Tool | Description |
|---|---|
get_astronomy_picture |
NASA's Astronomy Picture of the Day (APOD) |
search_nasa_images |
Search NASA's 140,000+ image/video library |
get_exoplanets |
Query 5,000+ confirmed exoplanets |
get_space_weather |
Solar flares, CMEs, geomagnetic storms (DONKI) |
get_mars_rover_photos |
Real photos from Curiosity, Perseverance, Opportunity, Spirit |
get_mars_rover_info |
Rover mission status, cameras, photo counts |
get_near_earth_objects |
Track asteroids approaching Earth (NeoWs) |
get_asteroid_details |
Orbital data and close approaches for specific asteroids |
get_earth_imagery |
Full-Earth photos from DSCOVR satellite (EPIC) |
get_natural_events |
Active wildfires, volcanoes, storms worldwide (EONET) |
Quick Start
Install from source
git clone https://github.com/AiAgentKarl/space-mcp-server.git
cd space-mcp-server
python -m venv .venv
.venv/Scripts/activate # Windows
# source .venv/bin/activate # Linux/Mac
pip install -e .
Configure
cp .env.example .env
# Edit .env and add your NASA API key (optional, DEMO_KEY works out of the box)
Get a free API key at https://api.nasa.gov/ for higher rate limits.
Run
space-mcp
# or
python -m src.server
Claude Code Integration
Add to your .mcp.json:
{
"mcpServers": {
"space": {
"type": "stdio",
"command": "path/to/.venv/Scripts/python.exe",
"args": ["-m", "src.server"],
"env": {
"NASA_API_KEY": "your-api-key-here"
}
}
}
}
API Sources
| API | Key Required | Rate Limit |
|---|---|---|
| NASA API (APOD, Mars, NeoWs, DONKI) | Yes (DEMO_KEY works) | 30/hour (DEMO), 1000/hour (registered) |
| EPIC | No | No limit |
| EONET | No | No limit |
| NASA Image Library | No | No limit |
| Exoplanet Archive | No | No limit |
Architecture
src/
├── server.py # FastMCP server entry point
├── config.py # Settings & environment variables
├── analytics.py # Usage tracking
├── clients/
│ ├── nasa.py # NASA API (APOD, Mars, NeoWs, DONKI)
│ ├── epic.py # EPIC Earth imagery
│ ├── eonet.py # EONET natural events
│ ├── nasa_images.py # NASA Image Library
│ └── exoplanet.py # Exoplanet Archive
└── tools/
├── astronomy.py # APOD, image search, exoplanets, space weather
├── mars.py # Mars rover photos & info
├── asteroids.py # Near-Earth objects & asteroid details
└── earth.py # EPIC imagery & natural events
More MCP Servers by AiAgentKarl
| Category | Servers |
|---|---|
| 🔗 Blockchain | Solana |
| 🌍 Data | Weather · Germany · Agriculture · Space · Aviation · EU Companies |
| 🔒 Security | Cybersecurity · Policy Gateway · Audit Trail |
| 🤖 Agent Infra | Memory · Directory · Hub · Reputation |
| 🔬 Research | Academic · LLM Benchmark · Legal |
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.