Back to MCP directory
publicPublicdnsLocal runtime

prayer-time-mcp-server

一个提供穆斯林祈祷时间的MCP服务器,可根据日期和地理位置计算每日祈祷时间

article

README

🚀 神圣祈祷时间 MCP 服务器

这是一个专门用于获取特定日期和地点的穆斯林礼拜(即 Salah)时间的 MCP 服务器,为相关需求提供了精准的时间数据服务。

🚀 快速开始

本服务器能够为用户提供特定日期和地点的穆斯林礼拜时间,通过调用相应工具,输入准确的经纬度和日期,即可获取所需的礼拜时间。

✨ 主要特性

工具

  • get_daily_prayer_times - 用于获取特定位置的每日礼拜时间。
    • 该工具需要接受 纬度 (数字)、经度 (数字) 和 日期 (字符串,格式为 YYYY-MM-DD) 作为必需参数。
    • 会返回给定日期和地点计算出的礼拜时间。

📦 安装指南

开发环境安装

安装依赖:

npm install

构建服务器:

npm run build

带有自动重建功能的开发:

npm run watch

与 Claude Desktop 配合使用的安装

要与 Claude Desktop 一起使用,请添加服务器配置:

  • 在 MacOS 上:配置文件路径为 ~/Library/Application Support/Claude/claude_desktop_config.json
  • 在 Windows 上:配置文件路径为 %APPDATA%/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "prayer_time": {
      "command": "/path/to/prayer_time/build/index.js"
    }
  }
}

调试

由于 MCP 服务器通过 stdio 进行通信,调试可能具有挑战性。我们推荐使用 MCP Inspector,它作为包脚本可用:

npm run inspector

Inspector 将提供一个访问浏览器中的调试工具的 URL。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client