SuperAPIAI Directory

heliofleet-mcp

github.com · AI developer platforms

heliofleet-mcp is a small Model Context Protocol (MCP) server for answering heliophysics spacecraft geometry questions: where each spacecraft currently is, what position of the Sun each one sees, and when two spacecraft are aligned in longitude. It is based on static JSON data published by HelioFleet (JPL Horizons ephemerides, covering 2010 to about 2030, refreshed monthly), does not recompute raw orbits, and its coordinate systems and alignment code are ported line by line from the HelioFleet website's JavaScript, so the values match the website. Every answer includes a HelioFleet link that reproduces the view in a browser. The same answers are available in three ways: through the MCP server, through a one-shot command line that outputs JSON, and through a Python API. The HelioField plugin, enabled by default, can read daily PFSS coronal magnetic field products and returns relevant links and data, but does not solve the magnetic field. The project is MIT-licensed, depends only on the mcp Python SDK, and requires Python 3.10 or later.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

Purpose

heliofleet-mcp is aimed at heliophysics and space weather scenarios and answers three kinds of questions: where heliophysics spacecraft formations are currently located; the observation geometry of each spacecraft relative to the Sun (such as Stonyhurst/Carrington coordinates, L0/B0, etc.); and when two spacecraft are aligned in radial distance or longitude. Supported bodies include Earth, SDO, SOHO, Aditya, ACE, Wind, DSCOVR, IMAP, SWFO, CGO, Solar Orbiter, Parker Solar Probe, BepiColombo, STEREO-A/B, MAVEN, MESSENGER, Venus Express, Juno, Rosetta, JUICE, Clipper, Psyche, as well as Mercury, Venus, Mars, etc., and common names such as "Parker", "Solar Orbiter", and "STEREO-A" are also accepted.

Main capabilities

  • Position and formation queries: return the positions of each spacecraft and an overview of the formation.
  • Observation geometry: compute the position of the Sun as seen by a spacecraft and coordinate-system quantities.
  • Alignment search: find time windows when two spacecraft are aligned within a given tolerance; sampling is hourly when Parker is involved and every 6 hours otherwise.
  • Events and solar conjunctions: an event calendar provided by the build script.
  • Link generation: every answer includes a HelioFleet link that reproduces the view in a browser.
  • HelioField plugin (enabled by default): reads HelioField daily PFSS products and provides coronal magnetic field related data and links; daily products cover roughly the last two months, and earlier dates return a link because the HelioField website can compute any date since 2010-05-01 in a browser. Setting HELIOFLEET_MCP_PLUGINS=none provides only the HelioFleet tools.

Usage

After installing uv, a single command downloads and starts the server; it uses MCP over stdio and waits silently for a client when run on its own. It can be registered with Claude Code (all projects), Claude Desktop (Settings → Developer → Edit Config, then restart the app), or other MCP clients, and can also be written into a project's .mcp.json. Offline useadd "env": {"HELIOFLEET_SOURCE": "local", "HELIOFLEET_LOCAL_DATA": "/path/to/heliofleet/data"} to the configuration.

The same program can also be used as a one-shot command line, printing tool JSON directly without server or client configuration. Commands include align, position, fleet, events, geometry, link, status, connection, spaceweather, field; add --compact to output single-line JSON; on error, {"error": ...} is printed to stderr and it exits with status code 2; without a command, it serves MCP over stdio.

Python API methods return the same dictionaries as the MCP tools; Fleet and HelioField can be passed a Store or FieldStore to change the data source, cache, or offline checkout. The API reference documents all public classes and functions, and the examples run as doctests in CI.

The repository also provides an Agent Skill (skills/heliofleet/SKILL.md) that teaches assistants which command to use to answer which kind of question and how to report results; it only needs a shell and the installed command, with no MCP configuration; there are also plugin manifests such as .claude-plugin/, .cursor-plugin/plugin.json, and the root-level Agent Plugins manifest.

Data and cache

Data is fetched from https://sr-dash.github.io/heliofleet/data/ , cached in ~/.cache/heliofleet-mcp/<release>/ keyed by the manifest build time, so monthly updates do not mix with old files; the manifest is rechecked every 6 hours. When the site is unreachable, the cached manifest and then a local heliofleet checkout are used in turn, and a sibling heliofleet/data directory is discovered automatically. Positions use HelioFleet's 4-point Lagrange interpolation; L1 monitors stored in geocentric kilometers have the Earth's heliocentric position added. Stonyhurst (HEEQ) and Carrington coordinates use the same IAU rotation model as SunPy. Alignment search window boundaries fall on the sampling grid. Spacecraft status is ok, lost (prediction after loss of contact), or approx (SDO beyond the end of the ephemeris, shown as Earth).

Use cases and limitations

Suitable for research and engineering assistance scenarios that need quick queries of spacecraft geometry, alignment windows, or coronal magnetic field connection information. Limitations include: the data is a thin wrapper over static JSON and is not recomputed from scratch; the ephemeris covers 2010 to about 2030; HelioField daily products cover only about the last two months, and earlier dates return only links; alignment window precision is constrained by the sampling grid; when using position data, HelioFleet must also be cited, and when using coronal magnetic field results, HelioField and the magnetogram source must also be cited. The project is MIT licensed, tests cover interpolation, coordinate systems, alignment, the stdio server, data sources, and the CLI, and CI runs on Linux, macOS, and Windows.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools