Skip to main content
Glama
sthossan

Weather & Prayer Times MCP Server

by sthossan
weatherSummary.ts1.5 kB
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; export function registerWeatherSummaryPrompt(server: McpServer) { server.prompt( "weather_summary", "Get a detailed weather summary and analysis for multiple cities", async () => { const promptText = `Provide a comprehensive weather analysis for major cities worldwide. Please include: 1. Current weather conditions for each city 2. Temperature trends and variations 3. Any notable weather patterns or warnings 4. Seasonal context for each location 5. Comparative analysis between different cities 6. Practical recommendations based on the weather conditions (clothing, activities, etc.) Use emojis where appropriate to make the summary more engaging and easy to scan. Focus on cities like Dhaka, New York, London, Tokyo, Dubai, and other major global cities.`; return { messages: [ { role: "user", content: { type: "text", text: promptText } } ] }; } ); }

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