Developers

Everything on Moonlora is computed, not scraped — and the engine is open through a free JSON API, a remote MCP server for AI assistants, and an embeddable widget. No API key, no rate-limit dance. One rule: attribute Moonlora with a link when you show the data.

JSON API

Base URL https://moonlora.com/api/v1 · CORS enabled · all times UTC (ISO 8601) · range 1900–2100.

Current or any date — GET /phase

curl "https://moonlora.com/api/v1/phase?date=1969-07-20"
{
  "date": "1969-07-20T12:00:00.000Z",
  "phase": "first-quarter",
  "illumination": 0.33,
  "moonAgeDays": 6.55,
  "moonSign": "Libra",
  "nextFullMoon": "1969-07-29T02:45:12.000Z",
  "nextNewMoon": "1969-08-13T05:16:42.000Z"
}

Add &lat=59.33&lon=18.07 for moonrise/moonset (UTC day). Omit date for now. Prefer a cached snapshot? /api/v1/today.json is static and CDN-served.

Year lists

curl "https://moonlora.com/api/v1/full-moons/2026"
curl "https://moonlora.com/api/v1/new-moons/2026"

Full spec: OpenAPI 3.1 — drop it straight into a GPT Action or any client generator.

MCP server (for AI assistants)

Moonlora runs a remote Model Context Protocol server — add it and your assistant can answer any moon question with live, exact data. No install, no key.

https://moonlora.com/api/mcp

Claude Desktop / Claude Code / Cursor config:

{
  "mcpServers": {
    "moonlora": { "url": "https://moonlora.com/api/mcp" }
  }
}

Tools: get_moon_phase (any date, optional coordinates → moonrise/set),list_full_moons, list_new_moons. Stateless Streamable HTTP — works from serverless agents too.

Embeddable widget

Tonight's moon on your site — always current, ~2 KB of markup, themes and 4 languages.

<script src="https://moonlora.com/widget.js"
  data-lang="en" data-theme="dark" data-width="320" defer></script>

Or a plain iframe (add the credit link yourself — it's the license):

<iframe src="https://moonlora.com/widget?lang=en&theme=dark"
  width="320" height="110" style="border:0"></iframe>
<p>🌙 <a href="https://moonlora.com/full-moon">Moonlora</a></p>

Preview: dark · light · languages: en, de, es, sv.

License & attribution

Data and widget are free for commercial and non-commercial use. Required attribution: a visible link to moonlora.com (the widget's built-in credit satisfies this). Accuracy: Meeus phase algorithm, ±5 minutes; moonrise/set ±2 minutes. No warranty — don't land a spacecraft with it.