astrophysical-app-and-mcp-server

Spookywy/astrophysical-app-and-mcp-server

3.1

If you are the rightful owner of astrophysical-app-and-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Astrophysical App and MCP Server provides real-time ephemerides of astrophysical bodies using data from NASA's JPL API.

Astrophysical app and MCP server

This app relies on ssd.jpl.nasa.gov api to get the latest ephemerides of astrophysical bodies.

App

The app consists of an OpenAI app and MCP server that answer questions about astrophysical bodies.

MCP server

The MCP server is responsible for fetching the latest ephemerides from ssd.jpl.nasa.gov and serving them to the app.

Example

Below is an example of a curl command to get the ephemerides of Voyager 1 for the date 2025-11-08 to 2025-11-09:

curl "https://ssd.jpl.nasa.gov/api/horizons.api?format=json&EPHEM_TYPE=OBSERVER&CENTER=g@399&START_TIME=2025-11-08&STOP_TIME=2025-11-09&STEP_SIZE=1d&COMMAND=-31"

EPHEM_TYPE=OBSERVER indicates that we want the ephemerides as seen from a specific location.

CENTER=g@399 corresponds to the geocenter (Earth).

START_TIME and STOP_TIME define the time range for the ephemerides.

STEP_SIZE=1d indicates that we want the ephemerides at 1 day intervals.

COMMAND=-31 is the code for Voyager 1.

Deployment

This server is available at https://astrophysical-app-and-mcp-server.vercel.app

The server documentation is available at https://astrophysical-app-and-mcp-server.vercel.app/docs

Development

Install the dependencies:

uv sync

Run the server:

uv run fastapi dev main.py