# Prayer times and sun times

> Prayer times and sun times is a free MCP server for religion. Prayer and sunrise/sunset times for 34,000 towns, served to AI agents over MCP. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, Web
- **Website:** https://prayer-times.at01.io
- **MCP Registry name:** dev.workers.mnpi.prayer-times/prayer-times
- **Categories:** [religion](https://ai-powered.com/categories/religion)
- **Listing updated:** 2026-11-19

## About

The server returns daily Islamic prayer times (fajr, dhuhr, asr, maghrib, isha) along with sunrise, sunset and twilight, in local time for a named town or a set of coordinates. Lookups can cover a single day or a whole month, and place names are accepted in English or Arabic.

The README and site describe three tools exposed over Streamable HTTP: prayer_times, sun_times and prayer_methods. The same data is available through a free REST JSON API with no key required. Calculation uses standard solar-position formulas, and users can pick from more than 20 methods; when none is chosen, the default follows the country, and the method used is named in each answer.

It suits developers building prayer apps, scheduling tools or assistants that need local timings, and agent builders who want a simple, keyless data source. The site notes that local mosques may differ by a few minutes from computed times, and that place data comes from GeoNames under CC BY 4.0.

## Features

- **Prayer times by place:** Returns all five daily prayer times plus sunrise for a town name or latitude and longitude.
- **Sunrise, sunset and twilight:** Provides sun times for a given place and date, in local time.
- **Multiple calculation methods:** Offers more than 20 methods, with the default chosen by country and named in each response.
- **Monthly and multi-day ranges:** Can return timings for one day, a week or a full month.
- **Keyless REST API:** A JSON API with an OpenAPI spec and llms.txt is available without an API key.
- **Arabic and English place names:** Lookups accept town names in either language across about 34,000 places.

## Good for

- Showing local prayer times in a mobile or web app
- Letting an AI assistant answer when Fajr or Maghrib is today
- Planning Ramadan schedules with monthly timetables
- Retrieving sunrise and sunset for a location in an agent workflow
- Comparing calculation methods for a given town

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http prayer-times https://prayer-times.at01.io/mcp
```

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

```sh
https://prayer-times.at01.io/mcp
```

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

```json
{
  "mcpServers": {
    "prayer-times": {
      "url": "https://prayer-times.at01.io/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "prayer-times": {
      "type": "http",
      "url": "https://prayer-times.at01.io/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "prayer-times": {
      "serverUrl": "https://prayer-times.at01.io/mcp"
    }
  }
}
```

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://prayer-times.at01.io/mcp
```

Enter a Name (for example "Prayer times and sun times"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

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

```json
{
  "mcpServers": {
    "prayer-times": {
      "type": "http",
      "url": "https://prayer-times.at01.io/mcp"
    }
  }
}
```

## Tools

All 3 tools say they're read-only. From the server's own tool annotations; not verified by us.

- `prayer_times` (says read-only): Prayer times (imsak, fajr, sunrise, dhuhr, asr, maghrib, isha, midnight) for a town, city or coordinates, in local time, for one day or a timetable of up to 31 days. Covers 34,000 towns worldwide (names in English or Arabic). Calculation method defaults to the usual one for the country (Umm al-Qura in Saudi Arabia, Egyptian in Egypt, Karachi in Pakistan, ISNA in North America, MWL elsewhere) and i
- `sun_times` (says read-only): Sunrise, sunset, solar noon, day length, and civil, nautical and astronomical dawn and dusk for a town, city or coordinates on a date, in local time.
- `prayer_methods` (says read-only): The calculation methods available (fajr and isha angles), and the countries where each is the default.

## FAQ

### Does it require an API key?

The site describes the service as free with no key needed for the REST API and the MCP endpoint.

### Which tools does the MCP server expose?

The site lists three tools: prayer_times, sun_times and prayer_methods.

### How are the times calculated?

The site says it uses standard solar-position formulas, with sun angles set by the chosen method, and that local mosques may differ by a few minutes.

### Where do the place names come from?

The site credits GeoNames (CC BY 4.0), with a snapshot dated 2026-11-19.

### Is Prayer times and sun times free?

Yes. Prayer times and sun times is free to use.

### How do I add Prayer times and sun times to Claude Code?

Run this command in your terminal: claude mcp add --transport http prayer-times https://prayer-times.at01.io/mcp

### What are the best alternatives to Prayer times and sun times?

The closest alternatives to Prayer times and sun times are Iqamah prayer times, Muslim Prayer Reminder MCP, SalahTable, Qadir and Messe Oggi.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 20 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Iqamah prayer times](https://ai-powered.com/mcp/iqamah-prayer-times): Iqamah prayer times is a free MCP server for religion.
- [Muslim Prayer Reminder MCP](https://ai-powered.com/mcp/muslim-prayer-reminder-mcp): Muslim Prayer Reminder MCP is a free MCP server for religion.
- [SalahTable](https://ai-powered.com/mcp/salahtable): SalahTable is a free MCP server for religion.
- [Qadir](https://ai-powered.com/mcp/qadir): Qadir is a free MCP server for religion.
- [Messe Oggi](https://ai-powered.com/mcp/messe-oggi): Messe Oggi is an MCP server for religion.
- [Salah Flow](https://ai-powered.com/mcp/salah-flow): Salah Flow is a free MCP server for religion.
- [The Living Bread](https://ai-powered.com/mcp/the-living-bread): The Living Bread is a free MCP server for religion.

---
Source: https://ai-powered.com/mcp/prayer-times-and-sun-times
