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 "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., "@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.mdโก 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 installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/nawani-rohit/MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server