SpaceX MCP Server
Fetches public SpaceX launch data and provides analytics such as launch counts per year, success vs failure totals, and most frequent launch site.
Click on "Deploy 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., "@SpaceX MCP Servershow me launch counts by year"
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.
π SpaceX MCP Server
A lightweight Model Context Protocol (MCP) server that fetches public SpaceX launch data and exposes three analytics endpoints.
| What it returns |
| Launch counts for every year from the first SpaceX flight to the most recent. |
| Total number of successful vs. failed launches. |
| Launch site used most often and its count. |
π Project Structure
spacex-mcp-server/
βββ analysis.py
βββ launch_data.py
βββ main.py
βββ requirements.txt
βββ README.mdRelated MCP server: openpanel-mcp
β‘ Quick Start
git clone https://github.com/nawani-rohit/MCP-Server.git
cd spacex-mcp-server
pip install -r requirements.txt
uvicorn main:app --reload --port 3000π― API Endpoints
Method | Path | Query Parameter | Description |
|
|
| Launch counts per year |
| Success vs failure totals | ||
| Most-used launch site |
π§ͺ Requests & Responses
Replace
3000if you run on a different port.
1οΈβ£ Launch Count by Year
curl "http://localhost:3000/mcp/launches/analysis?analysisType=countByYear"{
"2006": 1,
"2007": 1,
"2008": 2,
"2009": 1,
"2010": 2,
"2011": 0,
"2012": 2,
"2013": 3,
"2014": 6,
"2015": 7,
"2016": 9,
"2017": 18,
"2018": 21,
"2019": 13,
"2020": 25
}2οΈβ£ Successful vs Failed Launches
curl "http://localhost:3000/mcp/launches/analysis?analysisType=successVsFailure"{
"successful_launches": 191,
"failed_launches": 9
}3οΈβ£ Most Frequent Launch Site
curl "http://localhost:3000/mcp/launches/analysis?analysisType=mostFrequentSite"{
"site": "CCAFS SLC 40",
"launch_count": 52
}This server cannot be deployed
Maintenance
Related MCP Connectors
Analytics for MCP servers. Query your tool calls, first-call success, retries and schema cost.
Public MCP server for discovering open jobs. Search, filter, and get application links.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA simple MCP server that provides repository information (list repos, get repo details) using GitHub's public REST API, without needing any API keys or tokens.-
- FlicenseNot gradedqualityDmaintenanceMinimal MCP server for OpenPanel analytics, enabling queries for landing pages, page events, and tracked event names.-
- AlicenseAqualityBmaintenanceA read-only MCP server that exposes personal Flighty app flight data as geo-ready legs with coordinates, enabling queries by date, year, or flight number, and aggregate stats.3MIT
- AlicenseAqualityBmaintenanceA personal MCP server that analyzes your Spotify streaming history locally, enabling queries, artist insights, and recommendations using a local SQLite database.7MIT