astronomy-oracle

astronomy-oracle

Accurate astronomical catalog data and observing session planner for LLM assistants. Stops hallucinated magnitudes, coordinates, and visibility.

Category
Visit Server

README

<p align="center"> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a> <a href="https://www.npmjs.com/package/astronomy-oracle"><img src="https://img.shields.io/npm/v/astronomy-oracle.svg" alt="npm version"></a> <a href="https://www.npmjs.com/package/astronomy-oracle"><img src="https://img.shields.io/npm/dm/astronomy-oracle.svg" alt="npm downloads"></a> <a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-18%2B-brightgreen.svg" alt="Node.js 18+"></a> <a href="https://modelcontextprotocol.io"><img src="https://img.shields.io/badge/MCP-compatible-purple.svg" alt="MCP Compatible"></a> <a href="https://github.com/sponsors/gregario"><img src="https://img.shields.io/badge/sponsor-%E2%99%A5-ea4aaa.svg" alt="Sponsor"></a> <a href="https://glama.ai/mcp/servers/gregario/astronomy-oracle"><img src="https://glama.ai/mcp/servers/gregario/astronomy-oracle/badges/score.svg" alt="astronomy-oracle MCP server"></a> </p>

<p align="center"> <a href="https://glama.ai/mcp/servers/gregario/astronomy-oracle"><img src="https://glama.ai/mcp/servers/gregario/astronomy-oracle/badges/card.svg" alt="astronomy-oracle MCP server"></a> </p>

Astronomy Oracle

Accurate astronomical catalog data and observing session planner for LLM assistants. Stops hallucinated magnitudes, coordinates, and visibility.

Features

  • 3 tools for object lookup, catalog search, and observing session planning
  • 13,000+ deep-sky objects from the OpenNGC catalog (NGC, IC, Messier, and addendum objects)
  • Deterministic astronomy math — Julian dates, sidereal time, alt/az conversion, rise/transit/set times
  • Zero network dependency — all data is bundled, all calculations are local

Install

Run directly with npx:

npx astronomy-oracle

Or install globally:

npm install -g astronomy-oracle

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "astronomy-oracle": {
      "command": "npx",
      "args": ["-y", "astronomy-oracle"]
    }
  }
}

Claude Code

claude mcp add astronomy-oracle -- npx -y astronomy-oracle

Tool Reference

lookup_object

Look up a celestial object by Messier number, NGC/IC designation, or common name. Optionally compute visibility from a given location and time.

{
  "name": "lookup_object",
  "arguments": {
    "name": "M31",
    "latitude": 51.5,
    "longitude": -0.1,
    "date": "2025-06-15T22:00:00Z"
  }
}

Returns detailed object data: type, coordinates (RA/Dec), magnitude, angular size, surface brightness, Hubble type, cross-references, and (when location is provided) current altitude/azimuth with rise/transit/set times.

search_objects

Search and filter the catalog by type, constellation, magnitude range, angular size, or catalog membership.

{
  "name": "search_objects",
  "arguments": {
    "type": "PN",
    "constellation": "Lyr",
    "maxMagnitude": 12.0,
    "limit": 10
  }
}

Returns a formatted table of matching objects sorted by brightness. Supports filtering by object type (Galaxy, Planetary Nebula, Open Cluster, etc.), constellation, magnitude range, minimum angular size, and catalog (Messier, Caldwell, NGC, IC).

plan_session

Generate an observing session plan for a given location and date. Returns the best objects to observe grouped by time window.

{
  "name": "plan_session",
  "arguments": {
    "latitude": 40.7,
    "longitude": -74.0,
    "date": "2025-03-20",
    "minAltitude": 20,
    "maxMagnitude": 10.0,
    "types": ["G", "PN", "GCl"]
  }
}

Returns objects grouped into three windows (evening, midnight, pre-dawn), scored by observability based on altitude, magnitude, and angular size.

Data Sources

Source License Description
OpenNGC CC-BY-SA 4.0 NGC/IC/Messier catalog with coordinates, magnitudes, dimensions, and cross-references

The OpenNGC data is included under the Creative Commons Attribution-ShareAlike 4.0 International License. See the OpenNGC repository for full attribution.

Development

# Run tests
npm test

# Build
npm run build

# Run in development mode (tsx)
npm run dev

# Open MCP Inspector
npm run inspect

License

MIT for code. CC-BY-SA 4.0 for OpenNGC data.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured