Azan MCPのロゴ

Azan MCP

コミュニティ
ahmedeltaher

Azan + Prayer Time + MCP + AI Agents + Islamic + Salah + A lightweight MCP library to calculate prayer times and trigger Azan with a single tool call. If you’re building an AI agent or prayer application, there’s no need to deal with astronomical calculations, timezones, or edge cases again.

公開者ahmedeltaher
リポジトリazan-mcp
言語Python
フォーク
108
スター
380
利用可能なツール
0
通信方式stdio
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Azan MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには380件のスターと108件のフォークがあります。

Azan-MCP

License Python MCP Tools Tests PyPI Hijri Methods

Azan-MCP is an open-source Model Context Protocol (MCP) server that brings a comprehensive suite of Islamic utilities directly into AI assistants such as Claude Desktop. It enables any LLM client that supports MCP to answer Islamic questions with accuracy, proper sourcing, and full awareness of the user's location, timezone, and madhab.

What it does

  • Prayer Times — Calculates the five daily prayers (Fajr, Dhuhr, Asr, Maghrib, Isha) plus Sunrise for any location on Earth using the full Meeus solar algorithm. Supports 10 internationally recognised calculation methods and both Hanafi and Shafi madhab for Asr. Also computes Qibla direction, monthly calendars, and Sunnah prayer windows (Duha, Awwabin, Tahajjud).

  • Azan & Iqama — Returns the full Azan text in Arabic and transliteration (with the Fajr Tatwidh variant), calculates Iqama times based on configurable per-prayer offsets, and provides a complete daily Azan schedule.

  • Islamic Calendar — Converts dates between Gregorian and Hijri calendars, lists named Islamic events with their Gregorian equivalents, and identifies recommended voluntary fasting days (Mondays/Thursdays, Ayyam al-Beed, 6 days of Shawwal, Day of Arafah).

  • Du'a & Dhikr — Provides sourced morning and evening adhkar, du'a collections across 15 topics (travel, eating, anxiety, protection, and more), and du'as for every position in salah. Every entry is traced to its hadith reference with a confidence rating.

  • Zakat & Islamic Calculators — Calculates Zakat due on cash, gold, silver, and trade goods; determines Nisab thresholds; computes Suhoor/Iftar times for Ramadan date ranges; and distributes inheritance according to Faraid (Quran 4:11-12) using exact fractional arithmetic with Aul handling.

  • 99 Names of Allah — The complete Asma ul-Husna with Arabic text, transliteration, meaning, and explanation for all 99 names, fully searchable.


MCP Architecture

Design principles

PrincipleHow it is applied
AccuracyPrayer engine implements the full Meeus astronomical algorithm (±2 min vs IslamicFinder). Hijri conversion uses the hijridate library.
AuthenticityEvery Du'a and Dhikr entry carries a hadith source reference and a confidence level (high = Bukhari/Muslim, medium = Sunan books).
TransparencyAll tool responses include a meta block stating the calculation method, madhab, source, and confidence used.
DiscoverabilityTools like list_dua_topics and list_calculation_methods prevent the LLM from guessing invalid inputs.
SafetyZakat, Faraid, and calendar tools include a "consult a qualified scholar" disclaimer in every response.
Zero frictionInstallable with a single uvx azan-mcp command — no npm, no Docker, no manual setup.

Tech Stack

Built with Python 3.12+ and FastMCP (the official Anthropic MCP SDK). The prayer time engine is vendored directly from the Meeus algorithm using Python's standard library only (math, datetime, zoneinfo) — no stale third-party astronomical dependency. The Hijri calendar uses the actively maintained hijridate package.

Folder Structure

src/azan_mcp/
├── server.py          # FastMCP entry point — 34 tools across 6 modules
├── config.py          # UserConfig dataclass (location, timezone, method, madhab)
├── prayer_engine.py   # Vendored Meeus solar algorithm
├── tools/             # One module per epic: prayer_times, azan, calendar,
│                      #   dua_dhikr, calculators, asma
└── data/              # adhkar.json · duas.json · asma_ul_husna.json

Supported Calculation Methods

IDNameFajr°Isha
umm_al_quraUmm al-Qura, Makkah18.590 min after Maghrib
mwlMuslim World League1817°
isnaISNA1515°
egyptEgyptian General Authority19.517.5°
karachiUniv. of Islamic Sciences, Karachi1818°
tehranUniv. of Tehran17.714°
kuwaitKuwait1817.5°
uoifUOIF (France)1212°
ithna_ashariIthna Ashari1614°
muhammadiyahMuhammadiyah2018°

Tools

#ToolCategoryDescription
1get_server_infoCoreActive config: location, timezone, calculation method, madhab
2list_calculation_methodsCoreAll 10 method IDs with Fajr/Isha angles
3get_prayer_timesPrayer TimesAll 5 prayers + Sunrise for a date and location
4get_next_prayerPrayer TimesName and time of the next upcoming prayer
5get_time_until_next_prayerPrayer TimesMinutes until next prayer + human-readable countdown
6get_qibla_directionPrayer TimesBearing in degrees + 16-point cardinal toward Makkah
7get_monthly_prayer_calendarPrayer TimesFull month prayer schedule (28–31 days)
8get_sunnah_prayer_timesPrayer TimesDuha, Awwabin, and Tahajjud time windows
9get_azan_textAzan & IqamaFull Azan text in Arabic and/or transliteration (Fajr variant included)
10get_iqama_timeAzan & IqamaIqama time = adhan + configured offset
11set_iqama_offsetAzan & IqamaUpdate iqama delay (minutes after adhan) per prayer
12get_daily_azan_scheduleAzan & IqamaAll 5 adhan + iqama times for today
13get_hijri_dateIslamic CalendarToday's or a given date's Hijri equivalent
14convert_gregorian_to_hijriIslamic CalendarGregorian → Hijri conversion
15convert_hijri_to_gregorianIslamic CalendarHijri → Gregorian conversion
16get_islamic_eventsIslamic CalendarNamed Islamic events for a Hijri year/month with Gregorian dates
17get_ramadan_datesIslamic CalendarGregorian start and end dates of Ramadan for a given year
18get_eid_datesIslamic CalendarEid al-Fitr and Eid al-Adha dates for a given year
19get_voluntary_fasting_datesIslamic CalendarMondays/Thursdays, Ayyam al-Beed, 6 Shawwal, Day of Arafah
20get_morning_adhkarDu'a & DhikrComplete morning adhkar with Arabic, transliteration, source
21get_evening_adhkarDu'a & DhikrComplete evening adhkar with Arabic, transliteration, source
22list_dua_topicsDu'a & DhikrAll available topic slugs (travel, eating, anxiety, …)
23get_dua_by_topicDu'a & DhikrAll du'as for a given topic
24search_duaDu'a & DhikrFull-text search across Arabic, transliteration, translation
25get_counter_recommendationDu'a & DhikrRecommended repetition count and virtues for a dhikr
26get_prayer_duaDu'a & DhikrDu'as for ruku, sujood, tashahhud, and after salah
27calculate_zakatZakat & Calculators2.5% Zakat due on cash, gold, silver, or trade goods above nisab
28calculate_gold_nisabZakat & CalculatorsNisab threshold = 85g × gold price per gram
29calculate_silver_nisabZakat & CalculatorsNisab threshold = 595g × silver price per gram
30calculate_fasting_timesZakat & CalculatorsSuhoor (Fajr) and Iftar (Maghrib) for a date range (max 31 days)
31calculate_inheritance_basicZakat & CalculatorsFaraid fixed shares with Aul handling (Quran 4:11-12)
32get_asma_ul_husna99 NamesAll 99 Names of Allah with Arabic, transliteration, and meaning
33get_name_of_allah99 NamesLook up a name by number (1–99) or transliteration
34search_asma_ul_husna99 NamesSearch names by meaning, transliteration, or Arabic text

Quickstart

bash
uvx azan-mcp

Or with a config file:

bash
AZAN_CONFIG=/path/to/azan-config.json uvx azan-mcp

Claude Desktop Setup

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "azan": {
      "command": "uvx",
      "args": ["azan-mcp"],
      "env": {
        "AZAN_CONFIG": "/path/to/your/azan-config.json"
      }
    }
  }
}

Configuration

Create an azan-config.json file (see examples/azan-config.example.json):

json
{
  "latitude": 21.3891,
  "longitude": 39.8579,
  "timezone": "Asia/Riyadh",
  "calculation_method": "umm_al_qura",
  "madhab": "shafi",
  "iqama_offsets": {
    "fajr": 20, "dhuhr": 10, "asr": 10, "maghrib": 5, "isha": 15
  }
}

Development

bash
uv sync
uv run pytest tests/ -v --ignore=tests/test_integration.py

License

This project is licensed under the MIT License — see the LICENSE file for details.

MIT License

Copyright (c) 2026 Azan-MCP Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Azan MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Azan MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Azan MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Azan MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "azan-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてAzan MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Azan MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Azan MCPを使ってこのタスクを手伝ってもらえますか?
Azan MCP
はい、読みました。
Azan MCPで調べた結果をお伝えします。

よくある質問

Azan MCP MCPサーバーは何に使いますか?

Azan MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでAzan MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでAzan MCPを利用できます。

TypingMindでAzan MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Azan MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Azan MCP MCPをTypingMindに接続するにはどうすればよいですか?

Azan MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでAzan MCP MCPのどのようなツールを利用できますか?

Azan MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Azan MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Azan MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇