本项目是一个基于模型上下文协议(MCP)的马来西亚祈祷时间服务器。该服务器借助 waktusolat.app 提供的 API 获取官方祈祷时间数据,并与 Claude Desktop 实现集成,为用户提供准确的祈祷时间信息。
本项目是一个基于模型上下文协议(MCP)的马来西亚祈祷时间服务器。它通过 waktusolat.app 提供的 API 获取官方祈祷时间数据,并与 Claude Desktop 集成。
git clone https://github.com/yourusername/mcp-server-malaysia-prayer-times.git
cd mcp-server-malaysia-prayer-times
python -m venv .venv
source .venv/bin/activate # 对于 macOS 和 Linux
# 或者
.venv\Scripts\activate # 对于 Windows
pip install -r requirements.txt
config.json 文件。{
"api_key": "your_api_key_from_waktusolat",
"debug_mode": true,
"logging": {
"level": "INFO",
"file_path": "server.log"
}
}
NODE_ENV 为 production 或保留默认。client/config.js 中添加:export const API_BASE_URL = 'http://localhost:5000';
export const TIMEOUT = 5000;
const response = await fetch(`${API_BASE_URL}/prayer-times?city=Kuala%20Lumpur&country=Malaysia`);
const response = await fetch(`${API_BASE_URL}/coordinates?lat=3.14&lon=101.69`);
/prayer-times
city (必填):城市名称country (必填):国家名称,默认为马来西亚date (可选):日期,格式为 YYYY-MM-DD 或 "today"/coordinates
lat (必填):纬度lon (必填):经度date (可选):日期,格式为 YYYY-MM-DD 或 "today"{
"imsak": "05:30",
"fajr": "06:00",
"sunrise": "07:00",
"dhuhr": "12:00",
"asr": "15:00",
"maghrib": "18:00",
"isha": "19:30"
}
# macOS/Linux
tail -f ~/Library/Logs/Claude/mcp*.log
# Windows
type %APPDATA%\Claude\Logs\mcp*.log
cd /path/to/mcp-server-malaysia-prayer-times
python main.py
欢迎贡献!
git checkout -b feature/amazing-feature。git commit -m "添加了新功能"。本项目遵循麻省理工学院许可协议。
logging 模块。