• DATA
  • VISUAL
  • LOGIC
  • HUMAN

How to fetch astronomy data by location with your AI

Connect IPGeolocation to your AI client to pull real-time celestial data. Once linked, your agent handles the coordinate lookups and astronomical calculations for you.

Ask AI about this page

Short answer

How can I get sunrise and moon phase info using my AI?

Your AI uses the get_astronomy tool to pull specific celestial data based on geographic coordinates. You provide the location, and the agent returns the exact times for sunrise, sunset, and current moon phases. This breakdown shows how the data flows from the tool to your chat.

The outcomes

Where your data lands

Depending on what you ask, your AI produces different outputs.

DATA

Celestial timestamps

The AI pulls specific times for sunrise and sunset. You get clean, usable data for your planning or scripts.

VISUAL

Moon phase details

The agent identifies the current moon phase. This helps you understand lighting conditions for any given coordinate.

LOGIC

Coordinate mapping

The AI processes the latitude and longitude you provide. It translates raw numbers into meaningful astronomical events.

HUMAN

Manual verification

You decide if the astronomical data fits your specific needs. The AI provides the facts, but you make the final call on how to use them.

The workflow

What your AI does when the request arrives.

The AI acts as the bridge between your prompt and the astronomical data.

  1. Receive coordinates

    Your agent identifies the latitude and longitude from your natural language prompt.

    get_astronomy
  2. Execute lookup

    The AI calls the tool to fetch the specific astronomical data for those coordinates.

    get_astronomy
  3. Parse celestial data

    The agent extracts the sunrise, sunset, and moon phase information from the tool response.

    get_astronomy
  4. Deliver answer

    The AI presents the times and phases in a clear format within your chat window.

    get_astronomy

Try it

Copy these to start.

Use these prompts to trigger the astronomy tool immediately.

Starting points

Swap the bracketed locations for the specific coordinates or cities you want to check.

IPGeolocation Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_zgOsd32pBj8x0EIu4pzi9sVtlFMzJhp4Hbpkeoak/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — IPGeolocation capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "ipgeolocation-ip-intelligence-time-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_zgOsd32pBj8x0EIu4pzi9sVtlFMzJhp4Hbpkeoak/mcp"
    }
  }
}
Copy into chat04
  • What are the sunrise and sunset times for [latitude, longitude]?

  • Tell me the current moon phase at [latitude, longitude].

  • When is the next sunset in [latitude, longitude]?

  • Check the moon phase for these coordinates: [latitude, longitude].

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect IPGeolocation once, then ask.

Click the link to connect the MCP to your client. Your credentials stay encrypted, and you can start asking for data immediately.

Connect IPGeolocation to your AI

FAQ

How this task behaves

  • 01

    Can the AI change the actual astronomical data?

    No. The AI only retrieves data from the tool; it cannot alter the physical properties of the moon or sun.

  • 02

    Does the AI provide weather forecasts too?

    No. This specific tool is limited to astronomical data like sunrise, sunset, and moon phases.

  • 03

    Do I need to provide exact coordinates?

    Yes. The tool requires specific latitude and longitude to return accurate results.

  • 04

    Can the AI save this data to a file for me?

    The AI can format the data for you to copy, but it cannot directly write files to your local hard drive.

  • 05

    Will the AI automatically update the data every hour?

    No. The AI only fetches the data when you specifically ask it to via a prompt.

  • More questions about IPGeolocation? The Connector page answers them. See everything the IPGeolocation Connector can do

Connect IPGeolocation to Claude, Cursor, ChatGPT & more