DQ

djalal/quran-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

73 stars 13 forks 품질 60 트렌드 0MIT

djalal/quran-mcp-server는 MCP 서버 후보가 https://github.com/djalal/quran-mcp-server.에서 수입되었습니다

개요

djalal/quran-mcp-server는 MCP 서버 후보가 https://github.com/djalal/quran-mcp-server.에서 수입되었습니다

개요(AI 번역)

MCP 서버는 공식 REST API v4를 통해 Quran.com corpus와 상호 작용합니다.

개요

OpenAPI 사양에서 생성된 Model Context Protocol (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 - 모든 juzs의 목록을 가져옵니다

검색

  • GET /search - 특정 조건에 대한 Quran 검색

번역

  • 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": [] } } }