DQ

djalal/quran-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

73 stars 13 forks 品質 60 トレンド 0MIT

djalal/quran-mcp-server は [https://github.com/djalal/quran-mcp-server.] からインポートされた MCP サーバー候補です

概要

djalal/quran-mcp-server は [https://github.com/djalal/quran-mcp-server.] からインポートされた MCP サーバー候補です

概要(AI 翻訳)

MCP サーバーは、公式 REST API v4 経由で Quran.com の corpus とやり取りします。

概要

OpenAPI 仕様から生成されるモデルコンテキストプロトコル(MCP)サーバーです。

エンドポイント

API の次のエンドポイントは、LLM が互換性のあるクライアントで使用できるツールとして利用できます。

チャプター

  • GET /chapters - リストの章
  • GET /chapters/{id} - チャプターを取得する
  • GET /chapters/{chapter id}/info - チャプター情報の取得

ルール

  • GET /verses/by chapter/{chapter number} - チャプター/ Surah 番号で区切る
  • GET /verses/by page/{page number} - 特定のMadani Mushafページのすべてのパスを取得する
  • GET /verses/by juz/{juz number} - Juz 番号でパスを取得する
  • GET /verses/by hizb/{hizb number} - Hizb 番号で区切る
  • GET /verses/by rub/{rub el hizb number} - Rub el Hizb 番号でバースを取得する
  • GET /verses/by key/{verse key} - パスをキーで取得
  • GET /verses/random - ランダムな境界を取得する

ジューズ

  • GET /juzs - すべてのジューツのリストを取得する

################################################################################################################################################################################################################################################################

  • GET /search - 特定の用語のクランを検索する

翻訳

  • GET /resources/translations - 利用可能な翻訳のリストを取得する

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Server for Quran.com API

MCP server to interact with Quran.com corpus via the official REST API v4.

Overview

This is a Model Context Protocol (MCP) server generated from the OpenAPI specification.

Endpoints

The following endpoints from the API have been made available as tools, that LLMs can use via compatible clients.

Chapters

  • GET /chapters - List Chapters
  • GET /chapters/{id} - Get Chapter
  • GET /chapters/{chapter_id}/info - Get Chapter Info

Verses

  • GET /verses/by_chapter/{chapter_number} - Get verses by Chapter / Surah number
  • GET /verses/by_page/{page_number} - Get all verses of a specific Madani Mushaf page
  • GET /verses/by_juz/{juz_number} - Get verses by Juz number
  • GET /verses/by_hizb/{hizb_number} - Get verses by Hizb number
  • GET /verses/by_rub/{rub_el_hizb_number} - Get verses by Rub el Hizb number
  • GET /verses/by_key/{verse_key} - Get verse by key
  • GET /verses/random - Get a random verse

Juzs

  • GET /juzs - Get list of all juzs
  • GET /search - Search the Quran for specific terms

Translations

  • GET /resources/translations - Get list of available translations
  • GET /resources/translations/{translation_id}/info - Get information of a specific translation

Tafsirs

  • GET /resources/tafsirs - Get list of available tafsirs
  • GET /resources/tafsirs/{tafsir_id}/info - Get the information of a specific tafsir
  • GET /quran/tafsirs/{tafsir_id} - Get a single tafsir

Audio

  • GET /resources/chapter_reciters - List of Chapter Reciters
  • GET /resources/recitation_styles - Get the available recitation styles

Languages

  • GET /resources/languages - Get all languages

Setup

Requirements

  • Node.js 22+
  • Docker

Building the Docker Image

Before using the Docker-based production mode, you need to build the Docker image:

# Build the Docker image
docker build -t quran-mcp-server .

Claude Desktop Integration

To use this MCP server with Claude Desktop, add the following configuration to your claude_desktop_config.json file (typically located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):

Docker-based Production Mode

{
  "mcpServers": {
    "quran-api": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "--init", "-e", "API_KEY=your_api_key_if_needed", "-e", "VERBOSE_MODE=true", "quran-mcp-server"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

Production Mode (Node.js)

{
  "mcpServers": {
    "quran-api": {
      "command": "node",
      "args": ["/path/to/quran-mcp-server/dist/src/server.js"],
      "env": {
        "API_KEY": "your_api_key_if_needed",
        "VERBOSE_MODE": "true" // Set to "true" to enable verbose logging
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Development Mode

GitHub で README 全文を見る

インストール

docker run -i --rm --init -e API_KEY=your_api_key_if_needed -e VERBOSE_MODE=true quran-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "quran-api": { "command": "docker", "args": ["run", "-i", "--rm", "--init", "-e", "API_KEY=your_api_key_if_needed", "-e", "VERBOSE_MODE=true", "quran-mcp-server"], "disabled": false, "autoApprove": [] } } }