Skip to main content
Glama
nawani-rohit

SpaceX MCP Server

by nawani-rohit

🚀 SpaceX MCP Server

A lightweight Model Context Protocol (MCP) server that fetches public SpaceX launch data and exposes three analytics endpoints.

analysisType value

What it returns

countByYear

Launch counts for every year from the first SpaceX flight to the most recent.

successVsFailure

Total number of successful vs. failed launches.

mostFrequentSite

Launch site used most often and its count.


📂 Project Structure

spacex-mcp-server/
├── analysis.py
├── launch_data.py
├── main.py
├── requirements.txt
└── README.md

Related MCP server: mcp-server-swapy

⚡ 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

GET

/mcp/launches/analysis

analysisType=countByYear

Launch counts per year

analysisType=successVsFailure

Success vs failure totals

analysisType=mostFrequentSite

Most-used launch site


🧪 Requests & Responses

Replace 3000 if 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
}
F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    -
    quality
    D
    maintenance
    MCP server for querying the Star Wars universe via the SWAPI API, providing access to characters, films, starships, vehicles, species, and planets.
    Last updated
    1
    ISC
  • F
    license
    -
    quality
    B
    maintenance
    Minimal MCP server for OpenPanel analytics, enabling queries for landing pages, page events, and tracked event names.
    Last updated

View all related MCP servers

Related MCP Connectors

  • Launches MCP — wraps Launch Library 2 API (ll.thespacedevs.com, free, no auth)

  • Launch Library 2 MCP — global rocket launch data

  • MCP server for interacting with the Supabase platform

View all MCP Connectors

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