Skip to main content

skyhound

skyhound logo

An open-source toolbox that lets Claude and other MCP-capable agents retrieve astronomical data from telescope archives (Euclid, Gaia, MAST, HiPS cutouts, SIMBAD, …).

Status: alpha (0.1). The library, CLI, MCP server and skills work and are tested; interfaces may still change. See TODO.md for the roadmap.

Install

Pick one. All three use the same package from PyPI; the plugin and claude mcp add routes need uv (uvx fetches and runs the server for you).

1. Claude Code plugin (MCP server and skills):

/plugin install skyhound --marketplace Aureusa/skyhound

or in two steps: /plugin marketplace add Aureusa/skyhound, then /plugin install skyhound@skyhound. Skills then appear as skyhound:<skill>.

2. MCP server only (any project, no skills):

claude mcp add skyhound -- uvx --from skyhound skyhound-mcp

3. Python library and CLI (no AI needed):

pip install skyhound
skyhound --version

Results go to ./skyhound-data unless SKYHOUND_OUTPUT is set. On an HPC cluster, set SKYHOUND_LAUNCHER=slurm and SKYHOUND_SLURM_ARGS="-p <partition> -t 02:00:00" so that background jobs (batch cutouts, PSF batches) run through Slurm, not on the login node.

Other MCP clients

The server speaks MCP over stdio, so any MCP client can use it. For Claude Desktop, add to claude_desktop_config.json; for Cursor, to .cursor/mcp.json (same shape):

{
  "mcpServers": {
    "skyhound": {
      "command": "uvx",
      "args": ["--from", "skyhound", "skyhound-mcp"],
      "env": { "SKYHOUND_OUTPUT": "/path/to/skyhound-data" }
    }
  }
}

Set SKYHOUND_OUTPUT there: desktop apps start the server in a directory you may not expect. Without uv, pip install skyhound and use "command": "skyhound-mcp".

Does it help?

Graded scores per task: plain Claude Code vs Claude Code with skyhound

We gave Claude Code (Sonnet 5.5) 19 realistic astronomy data tasks twice: once as a plain session with its usual tools (shell, files, web search), and once with the skyhound MCP server and skills. Both had the same Python environment, including astroquery. The tasks range from "make Euclid cutouts for every source in this file", "build a 300-galaxy training set split by sky region" and "get me the PSFs of five telescopes" to "is NGC 6505 in Euclid DR1?".

Every run was scored 1-100 against a rubric written per task: the product (50: is it exactly what was asked, and usable?), following the request (20), the answer (20: true to the files, with the caveats that matter) and efficiency (10, from the wall time). The scoring was automatic, with human supervision: a grader model (Claude Opus 5.5, blind to the setup) reads measured facts about the files each run produced, its tool calls and its answer; every run was also scored by hand, and the grader's rules were adjusted where the two disagreed (they agree with r = 0.90). With skyhound the runs score 89 on average, plain 62. By the pass/fail outcome checks, 18 of 19 tasks were done with skyhound and 12 plain, at less than half the cost and a quarter of the time (pass/fail, cost and time).

The tasks, checks and rubrics · per-task pass/fail · raw numbers · notebook with every score and its evidence.

Caveats:

  • One run per task. Agent runs vary; a few results could flip on a re-run, and the grader's score of one run moves by about 5 points between passes. Repeated runs with error bars are planned.
  • Small, home-made task set (19 tasks, written by the authors), weighted towards Euclid. It measures this tool on its intended jobs, not general astronomy ability.
  • One plain run was stopped by hand. The plain machine-learning-set task (A5) was cancelled after 28 minutes without a single cutout. Its cost was estimated from its token use, since a cancelled session reports none.
  • The blinding is partial: the tool calls show which setup a run used.
  • Cost is the API cost reported by Claude Code; time includes waiting for archives and background jobs.

Archives

Name Data Cone search Cutouts PSF ADQL Login Coverage
euclid-dr1 Euclid DR1 (2026), ESA MER catalogue (Wide Survey) VIS, NISP Y/J/H survey model (MER PSF grid; also DES g/r/i/z) yes optional ~2,400 deg²
euclid-q1 Euclid Q1 (2025), ESA MER catalogue VIS, NISP Y/J/H survey model yes optional Deep Fields, ~63 deg²
gaia Gaia DR3 (ESA, AIP mirror) gaia_source – – yes – all sky
vizier any VizieR catalogue (CDS, CfA mirror) table="I/355/gaiadr3" – – – – per catalogue
simbad SIMBAD objects (CDS, Harvard mirror) basic – – yes – all sky
hips2fits any HiPS survey (CDS) – band="DSS2-red", "PanSTARRS-g", any HiPS ID empirical (linear HiPS only) – – per survey
mast HST, JWST, TESS, … (STScI) search_products / download_product "TESS[:sector]", "HST:<filter>" library: "HST:F814W", "JWST:F200W", … – optional token pointed
panstarrs Pan-STARRS1 DR2 stacks (STScI) – g, r, i, z, y (calibrated) empirical – – Dec > −30°
legacysurvey Legacy Surveys DR10 (NOIRLab) – g, r, i, z (calibrated) empirical – – ~20,000 deg²
from skyhound.archives import get_archive
from skyhound.core import parse_coordinates

dr1 = get_archive("euclid-dr1")
target = parse_coordinates("04:04:57.6 -48:25:12")
print(dr1.check_coverage(target).message)
print(dr1.cone_search(target, radius_arcsec=10).summary())
print(dr1.cutout(target, size_arcsec=20, band="VIS").summary())

What's in the repo

Layer Where What it does
Python library src/skyhound/ All the logic. Usable without any AI.
CLI skyhound The same functions, for people and scripts.
MCP server skyhound-mcp A thin wrapper that exposes the library as tools.
Skills skills/*/SKILL.md Written workflows that tell the agent how to use the tools well.
Claude Code plugin .claude-plugin/, .mcp.json Bundles the server and skills for a one-step install.

Tools never return pixels or large tables to the model. They write data to disk and return a path, a short summary and a <file>.provenance.json sidecar with the query, versions and the archive's citation text.

Development

git clone https://github.com/Aureusa/skyhound.git
cd skyhound
pip install -e ".[dev]"
pytest                      # offline tests
pytest --remote             # also run tests against live archives
skyhound --version
skyhound-mcp      # starts the MCP server on stdio

Cutouts for a whole list of objects

Give a source list and get one cutout per object. The list can be a text file (one RA Dec, sexagesimal position or object name per line), any table (CSV, ECSV, FITS, VOTable, e.g. a cone_search result) or a URL; RA/Dec columns are detected.

skyhound batch-cutouts targets.csv --archive euclid-dr1 --band VIS --size 10
# run it in the background instead (on a cluster: through Slurm)
export SKYHOUND_SLURM_ARGS="-p cpu-short -t 02:00:00 -c 4 --mem 4G"
skyhound batch-cutouts targets.csv --archive euclid-dr1 --band VIS --size 10 --background slurm
skyhound job-status
# look at them
skyhound quicklook skyhound-data/batches/<batch>/ --sample 100
skyhound citations skyhound-data/batches/<batch>/

Batches are resumable (re-running keeps finished cutouts) and write a manifest.csv with the status of every object (ok / exists / outside / failed). Objects outside the archive's footprint are skipped without a request.

PSFs

get_psf (one) and start_psf_batch (many positions × surveys) return the PSF as a FITS image: odd size, sum 1, peak in the central pixel, on the survey's pixel grid, with its kind and FWHM in the header and provenance:

  • survey model: Euclid's own MER PSF grids (read as one stamp with HTTP range requests, ~8 MB instead of the 1.5 GB file);
  • library: STScI's empirical HST (ACS, WFC3, WFPC2) and JWST (NIRCam per detector, NIRISS, MIRI) PSFs;
  • empirical: built from isolated Gaia stars in a 10′ image of the field (photutils ePSF), for any archive with calibrated images. Display-scaled images (e.g. the CDS HiPS of Pan-STARRS, DSS plates) are detected and refused.
skyhound psf "61.24 -48.42" --archive euclid-dr1 --band VIS
skyhound psf-batch euclid-dr1:VIS euclid-dr1:NIR_H mast:JWST:F200W panstarrs:r --target "150.1 2.2"

Validation notebooks

notebooks/ has executed notebooks that check what the tools and agents produced against independent references: cutouts.ipynb (positions, batches, training-set splits, blank cutouts, study selections) and psfs.ipynb (Euclid model vs empirical PSFs, HST/JWST against the diffraction limit, ground-based PSFs and agent PSF runs).

MCP tools

resolve_object, list_archives, archive_status, auth_status, check_coverage, cone_search, get_cutout, run_query, search_products, download_product, preview_table, quicklook, citations, start_batch_cutouts, start_target_cutouts, job_status, cancel_job, inspect_data_record, download_data_file (catalogues published with papers on Zenodo), get_psf, start_psf_batch. Run the server with skyhound-mcp (stdio).

Logging in to archives

Some archives need an account for non-public data (ESA, ESO) or an API token (MAST). Log in once from a terminal; the agent never sees your password:

skyhound login euclid-esa        # prompts for username/e-mail and password
skyhound auth-status             # which archives need a login, what is stored
skyhound logout euclid-esa

Credentials go to the system keyring if there is one, otherwise to ~/.config/skyhound/credentials.netrc (readable only by you). You can also set SKYHOUND_<ARCHIVE>_USERNAME / _PASSWORD / _TOKEN, or reuse an existing ~/.netrc entry for the archive's host.

License

BSD-3-Clause. See LICENSE.

Metadata

Release files for skyhound 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 skyhound 0.1.0
File Size Uploaded Provenance Actions
skyhound-0.1.0.tar.gz 201.4 kB With provenance Details for skyhound-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 328.8 kB

Release files / skyhound-0.1.0.tar.gz

Download URL skyhound-0.1.0.tar.gz
Size 201.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9fc8fcd5edf3151bc10370bf6d3c4016db5ba74899525148903935bd27f993d6
BLAKE2b-256 checksum
How to use checksums
9249a612d6a6f0893caf51fd478775335cdd96e09529560716fc80ee43395da4
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 Dec 2, 2026.

Transparency log

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

Download URL skyhound-0.1.0-py3-none-any.whl
Size 127.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89c8ea2bd6006c4531eea3115ff29188131adf8f5990a29af7e5d68ac3ea4cc6
BLAKE2b-256 checksum
How to use checksums
32d32e1c18aca6ec9d9c5ab123f3ff61d7143e9d8e1dcd3aea5fdcf5378bd609
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 Dec 2, 2026.

Transparency log

Security for skyhound 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 skyhound-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 Dec 2, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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