Skip to main content

MCP server bridging LLMs to major astronomy catalogs

Project description

Astronomy MCP

An MCP server bridging LLMs to major astronomy catalogs (SIMBAD, VizieR, Horizons, NED, Gaia, TNS).

Features

  • Object Resolution: Resolve astronomical object names to coordinates (M31 -> 00 42 44.3 +41 16 09).
  • Multi-Catalog Search:
    • SIMBAD: Deep sky objects.
    • Horizons: Solar system objects (ephemerides, motion).
    • NED: Extragalactic objects (redshift, velocity).
    • Gaia: High-precision parallax and photometry.
    • TNS: Transient events (supernovae).
    • VizieR: Access to thousands of astronomical catalogs.
  • Deep Integrations:
    • cone_search: Find objects around a coordinate across catalogs.
    • check_visibility: Check if an object is visible from your location.
    • crossmatch_object: Find an object's cross-identifications.
  • Production Ready: Robust rate limiting, caching, and retry logic.

Installation

pip install astronomy-mcp

Quick Start (Claude Desktop)

  1. Install the package:

    pip install astronomy-mcp
    
  2. Configure Claude Desktop: Open or create ~/Library/Application Support/Claude/claude_desktop_config.json and add:

    {
      "mcpServers": {
        "astronomy": {
          "command": "python",
          "args": ["-m", "astronomy_mcp.server"]
        }
      }
    }
    

    Note: Ensure python executable path is correct if using a specific environment (e.g. uv run or /path/to/venv/bin/python).

  3. Ask Claude:

    • "What's the current position of Mars?"
    • "Find all galaxies within 30 arcmin of M31 using NED."
    • "What deep sky objects are visible from Denver tonight?"
    • "Get Gaia data for the star Betelgeuse."

Tool Reference

Tool Description Example Query
search_simbad_object Search for deep sky objects "Search Simbad for 'Crab Nebula'"
get_simbad_details Get detailed info for SIMBAD ID "Get details for 'M 1'"
search_horizons_object Search solar system objects "Find 'C/2023 A3' in Horizons"
get_horizons_ephemeris Get current position/motion "Where is Mars right now?"
search_ned_object Search NED (Extragalactic) "Find info on '3C 273' in NED"
search_tns_object Search Transients "Look up '2023ixf' in TNS"
cone_search Find objects in a region "What is within 0.1 deg of RA=10, Dec=20?"
check_visibility Check observability "Is M31 visible from New York at 10 PM?"
recommend_targets Get observation validation "What should I look at tonight from London?"

Development

# Install dependencies
pip install -e ".[dev]"

# Run tests
pytest

Configuration

Copy .env.example to .env to configure API keys (if needed for TNS) and tune rate limits.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astronomy_mcp-0.1.2.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astronomy_mcp-0.1.2-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file astronomy_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: astronomy_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for astronomy_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4a70803171cfb0f9947a162df39340ced428235578140da98c3a6797d3d0c118
MD5 7fb0668ac6e5cc2efdb39bbed1231c7d
BLAKE2b-256 187c91b6922a888566c6fc118d7edc12366abeaac2b65737fde6587065101cfb

See more details on using hashes here.

File details

Details for the file astronomy_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: astronomy_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for astronomy_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 11d0c4d8df3f405b28c73569acb8ad745278ac233e06cad28e6a2b19e9e0ae11
MD5 2f2b5892a21ddff41d6b41630636792b
BLAKE2b-256 468fc96fd3eb9c6df9f90eec088aef9d3438062ac7a6b4719b0a8c183276734a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page