Skip to main content

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.

Metadata

Release files for astronomy-mcp 0.1.4

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

Source distribution (sdist)

Source distribution for astronomy-mcp 0.1.4
File Size Uploaded Provenance
astronomy_mcp-0.1.4.tar.gz 17.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for astronomy-mcp 0.1.4
File Interpreter ABI Platform
astronomy_mcp-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 41.3 kB

Release files / astronomy_mcp-0.1.4.tar.gz

Download URL astronomy_mcp-0.1.4.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
19ef9fbdb4a9a0bb094327c5c77633ce6981ab0982d26495de98593eb7308289
BLAKE2b-256 checksum
How to use checksums
ba568f2c374e216c8dff96649715314930dccfe8e3753c4755adf976f382ce85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / astronomy_mcp-0.1.4-py3-none-any.whl

Download URL astronomy_mcp-0.1.4-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fafe246f5ef2ac605477868a7ae378428bff800420c01ff3ff51fc3105cf943e
BLAKE2b-256 checksum
How to use checksums
a022df3434c5dd8bb297f0c6953e600596167a277be0034b711ec781c3743a9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Security for astronomy-mcp 0.1.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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