Skip to main content

MARS — MCP Astronomy Research Suite

CI Windows ARM64 macOS Linux Python 3.12 | 3.13

MARS (MCP Astronomy Research Suite) is an agentic, tool-enabled system for automated astronomy: a registry of purpose-built tools — SIMBAD, NED, VizieR, ATNF, MAST, MPC, CASDA and ADS queries, plus local pulsar, variable-star, optical photometry, plate-solving, HR-diagram and radio-source pipelines — that an LLM agent plans and executes research tasks with. Serve them over MCP to your own coding agent, or drive them from the mars console.

The algorithms behind the tools come from two production systems built around the Skynet Robotic Telescope Network at the University of North Carolina at Chapel Hill: Skynet itself, extracted directly into Python, and Astromancer, its light-curve, periodogram and star-cluster web application, ported from TypeScript. The extractions preserve upstream algorithms and recorded behavior, with documented corrections for verified defects. Note that upon the first stable release of MARS, future development will occur in the Skynet 2 monorepo.

Quick Start

From an MCP host (Claude Code, Claude Desktop, Codex, Cursor, …), with no checkout — install skynet-mars on Python 3.13 and register its server:

uv tool install --python 3.13 "skynet-mars[mcp]"
mars-mcp self-test                                   # runs a pulsar detection end to end
claude mcp add --scope user mars -- /full/path/to/mars-mcp

Other hosts, the optional data bundles (mars-mcp fetch-data), credentials and where files go are in docs/guides/installation/README.md.

From a checkout, run the console. It needs a model backend — Anthropic by default (ANTHROPIC_API_KEY), or OpenAI-compatible, Gemini, or a local Ollama daemon, switchable in the session with /backend:

uv sync
uv run mars

The console's commands, keys and flags are in docs/architecture/tool-architecture.md §10.2; backend settings are in §10. Every tool is also a plain Python function (from tools.simbad import search_simbad), listed in §2. MARS installs these as top-level tools and algorithms packages, so a project with its own package or module by either name shadows them; and it reads its MARS_* settings once, when first imported. Three optional optical frames are Git LFS objects (git lfs pull); see data/README.md.

What's Here

Path What it holds
tools/ The public tool surface: plain Python wrappers, the tool registry, the agent loop (agent/), the model port (llm/), the mars console (tui/), the MCP server (mcp/), and the benchmark harness (bench/).
algorithms/ The extracted Skynet packages (wcs/, photometry/, fieldcal/, catalogs/, query/, shared skylib_lite/), the Astromancer ports (pulsar/, variable_star/, hrdiagram_py/), and the new radio/.
skills/mars-tools/ The agent skill for using the tools, generated from tools/skill/source/.
tests/ Algorithm-preservation and tool-smoke tests; no network by default.
data/ Fixture frames, pulsar scans and recorded reference solves.
benchmarks/, docs/ The model benchmark corpus; the documentation.

Documentation

Contributing

Target main, keep changes narrow, and run the checks CI enforces (uv run pytest, python3 -m compileall tools algorithms tests, git diff --check). See CONTRIBUTING.md, and AGENTS.md for agentic contributors.

License

Copyright (C) 2026 Skynet Robotic Telescope Network.

MARS is licensed under the GNU General Public License v3.0 only (GPL-3.0-only); the full text is LICENSE. It is the licence of the Skynet projects it grew from: Astromancer and Skycat carry the same text.

The code under algorithms/ comes from three places (provenance per file in docs/architecture/extraction.md):

  • Skynet, by the same group as MARS: skylib and the optical processing in skynet-db, extracted into algorithms/skylib_lite/, wcs/, photometry/, fieldcal/ and catalogs/.
  • Astromancer, by the same group, GPL-3.0: ported to Python in algorithms/pulsar/, algorithms/variable_star/ and algorithms/hrdiagram_py/.
  • Afterglow Core, Apache-2.0: parts of the query layer in algorithms/query/. Apache-2.0 code may be combined into a GPL-3.0 work.

Files that carry their own third-party notice — for example the BSD-3-Clause header in algorithms/skylib_lite/util/overlap.py — keep it, and those terms apply to those files as well.

Metadata

Release files for skynet-mars 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skynet-mars 0.1.0
File Size Uploaded Provenance Actions
skynet_mars-0.1.0.tar.gz 2.7 MB With provenance Details for skynet_mars-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skynet-mars 0.1.0
File Interpreter ABI Platform Actions
skynet_mars-0.1.0-py3-none-any.whl Python 3 none any Details for skynet_mars-0.1.0-py3-none-any.whl

Total release size: 5.0 MB

Release files / skynet_mars-0.1.0.tar.gz

Download URL skynet_mars-0.1.0.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
ae656ae48273daab9082b0c935be02ea1c95991402c4651d3109220fa57ec537
BLAKE2b-256 checksum
How to use checksums
20fb0a17ad7bcafb300f70b9d65c90038566949c8e80f0d8a62ef0c9b2eeb1dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / skynet_mars-0.1.0-py3-none-any.whl

Download URL skynet_mars-0.1.0-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5fd19996816a6a3d86a1a066d6e5c7b3d19ac9a89be2ccb39779f11bae06bad6
BLAKE2b-256 checksum
How to use checksums
3cb1c95acf8e17aa517ea0a1c2dbf947910392fde9e1233762863248e2aa19f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for skynet-mars 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for skynet_mars-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page