# Sunrise & Sunset Times

> Sunrise & Sunset Times is a free MCP server for maps and travel. Sunrise, sunset, twilight, golden hour and moon times for any coordinates. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API
- **Website:** https://sunrise-sunset.org/mcp
- **Repository:** https://github.com/sunrise-sunset-org/mcp
- **MCP Registry name:** org.sunrise-sunset/sun-times
- **Categories:** maps and travel, analytics and data
- **Listing updated:** 2026-11-15

## About

Polar regions are handled explicitly: each day is marked normal, midnight sun or polar night, and any event that does not occur comes back as null rather than a made-up time. Times are returned in ISO 8601 in the local time zone of the place.

Two read-only tools do the work. One returns a single day for a latitude and longitude, accepting today, tomorrow or a date; the other returns up to 366 consecutive days in one call, which suits calendars and seasonal comparisons. A range can come back with fewer days than asked when a calendar day never existed in that zone, so entries should be matched on their date field.

Each day includes sunrise, sunset, solar noon, day length, three kinds of twilight, golden and blue hour, sun azimuth and altitude, plus moonrise, moonset, moon phase and illumination. The server is remote, needs no key, and requires crediting sunrise-sunset.org where the data is shown.

## Features

- **Single-day lookup:** Full sun and moon data for one place and date.
- **Range up to 366 days:** One call covers a year of days for calendars or comparisons.
- **Polar day and night:** Each day carries a status, and missing events are null.
- **Typed output:** Both tools declare an output schema so clients know every field.
- **No key or sign-up:** Remote Streamable HTTP server with no authentication.

## Good for

- Plan photography around golden hour
- See how much daylight a city loses in winter
- Find the darkest nights for stargazing
- Build a sunrise calendar for a trip

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http sun-times https://api.sunrise-sunset.org/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://api.sunrise-sunset.org/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "sun-times": {
      "url": "https://api.sunrise-sunset.org/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "sun-times": {
      "type": "http",
      "url": "https://api.sunrise-sunset.org/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "sun-times": {
      "serverUrl": "https://api.sunrise-sunset.org/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "sun-times": {
      "type": "http",
      "url": "https://api.sunrise-sunset.org/mcp"
    }
  }
}
```

## Tools

- `get_sun_times`: Returns sun and moon data for one place on one day.
- `get_sun_times_range`: Returns the same data for up to 366 consecutive days.

## FAQ

### Does it need an API key?

No. It is free with no key or sign-up.

### Which clients can use it?

Claude, Claude Code, ChatGPT, Codex, Cursor and VS Code are documented; any remote MCP client works.

### Is attribution required?

Yes, credit sunrise-sunset.org wherever people can see where the data comes from.

### How many days in one call?

Up to 366 consecutive days with the range tool.

### Is Sunrise & Sunset Times free?

Yes. Sunrise & Sunset Times is free to use.

### How do I add Sunrise & Sunset Times to Claude Code?

Run this command in your terminal: claude mcp add --transport http sun-times https://api.sunrise-sunset.org/mcp

### What are the best alternatives to Sunrise & Sunset Times?

The closest alternatives to Sunrise & Sunset Times are Agent-Native Analytics, Google Ads + Meta Ads + SEO/GEO MCP, Tapetide - Indian Stock Market MCP, World Monitor and CompanyData.

## Alternatives

- [Agent-Native Analytics](https://ai-powered.com/mcp/agent-native-analytics): Agent-Native Analytics is an open-source MCP server for analytics and data.
- [Google Ads + Meta Ads + SEO/GEO MCP](https://ai-powered.com/mcp/google-ads-meta-ads-seo-geo-mcp): Google Ads + Meta Ads + SEO/GEO MCP is a freemium MCP server for marketing and seo.
- [Tapetide - Indian Stock Market MCP](https://ai-powered.com/mcp/tapetide-indian-stock-market-mcp): Tapetide - Indian Stock Market MCP is a freemium MCP server for finance and payments.
- [World Monitor](https://ai-powered.com/mcp/world-monitor): World Monitor is a freemium MCP server for analytics and data.
- [CompanyData](https://ai-powered.com/mcp/companydata): CompanyData is a paid MCP server for analytics and data.
- [Tutu eSIM](https://ai-powered.com/mcp/tutu-esim): Tutu eSIM is a paid MCP server for maps and travel.
- [ChartAnt](https://ai-powered.com/mcp/chartant): ChartAnt is a freemium MCP server for design and media.
- [Quantivex Research](https://ai-powered.com/mcp/quantivex-research): Quantivex Research is a free MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/sunrise-and-sunset-times
