Skip to main content
Glama
sthossan

Weather & Prayer Times MCP Server

by sthossan
server.ts1.05 kB
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; // Import features import { registerWeatherTool } from "./tools/weather.js"; import { registerPrayerTimesTool } from "./tools/prayerTime.js"; import { registerWeatherSummaryPrompt } from "./prompts/weatherSummary.js"; import { registerAboutResource } from "./resources/about.js"; const server = new McpServer({ name: "weather-prayer-server", version: "1.0.0", capabilities: { resources: {}, tools: {}, prompts: {}, }, }); // Register all features registerWeatherTool(server); registerPrayerTimesTool(server); registerWeatherSummaryPrompt(server); registerAboutResource(server); async function main() { const transport = new StdioServerTransport(); await server.connect(transport); console.error("MCP Weather & Prayer Server running on stdio"); } main().catch((error) => { console.error("Server error:", error); process.exit(1); });

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