Skip to main content
Glama
sthossan

Weather & Prayer Times MCP Server

by sthossan
about.ts2.42 kB
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; export function registerAboutResource(server: McpServer) { server.resource( "about", "about://weather-prayer", async (uri) => { const aboutContent = ` # 🌤️ Weather & Prayer Times MCP Server ## About This Server This MCP server provides real-time weather information and prayer times for cities around the world. ## Available Features ### 🛠️ Tools 1. **Weather Information** - Get current weather conditions - Temperature, wind speed, and weather conditions - Uses Open-Meteo API 2. **Prayer Times** - Get Islamic prayer times for any city - Multiple calculation methods supported - Uses Aladhan API ### 💬 Prompts - **Weather Summary**: Get detailed analysis and comparisons for multiple cities ### 📚 Resources - **About**: This information resource ### 🎯 Sampling - **Random City**: Get information about random cities for exploration ## APIs Used - 🌐 **Geocoding**: Open-Meteo Geocoding API - ⛅ **Weather**: Open-Meteo Weather API - 🕌 **Prayer Times**: Aladhan API ## Supported Cities Any city worldwide with available geographic data. ## Calculation Methods for Prayer Times Multiple Islamic calculation methods available (0-99), with default method 1 (University of Islamic Sciences, Karachi). --- *Server Version: 1.0.0* *Built with MCP SDK for Node.js* `.trim(); return { contents: [ { uri: uri.href, mimeType: "text/markdown", text: aboutContent } ] }; } ); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sthossan/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server