Skip to main content
Glama
Weather & Prayer Times MCP Server

Weather & Prayer Times MCP Server

by sthossan

🧠 Node MCP Local Server (TypeScript)

This is a Model Context Protocol (MCP) demo server implemented in Node.js + TypeScript, running via STDIO.

🚀 Features

  • Tools: Weather & Namaz times

  • Prompts: Motivation & Greeting

  • Resources: Example Readme

  • Sampling: Random quote

Related MCP server: OpenWeatherMap MCP Server

🧩 Run Locally

npm install
npm run start

API Keys

  • OpenWeatherMap:

    • Sign up for a free account at OpenWeatherMap.

    • Generate your API key.

    • Replace YOUR_OPENWEATHERMAP_API_KEY in your .env file with this key.

  • Aladhan API:

    • The Aladhan API for namaz timings generally does not require an API key for its public endpoints.

📦 Environment

Copy .env.example → .env and add any API keys (if needed).

## ⚙️ Configure your MCP client to spawn the server

For Claude Desktop Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "weather-prayer": {
      "command": "node",
      "args": ["/path/to/your/mcp-server/dist/server.js"],
      "env": {
        "API_KEY": "default-api-key"
      }
    }
  }
}

For Cursor Add to your Cursor MCP configuration:

{
  "mcpServers": {
    "weather-prayer": {
      "command": "node",
      "args": ["/path/to/your/mcp-server/dist/server.js"],
      "env": {
        "API_KEY": "default-api-key"
      }
    }
  }
}

For ChatGPT If using ChatGPT with MCP support, configure in your MCP settings:

{
  "servers": [
    {
      "name": "weather-prayer",
      "command": "node",
      "args": ["/path/to/your/mcp-server/dist/server.js"],
      "env": {
        "API_KEY": "default-api-key"
      }
    }
  ]
}

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides current weather conditions and 5-day forecasts for any location using the OpenWeatherMap API. Supports flexible location queries including city names, coordinates, and zip codes.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides weather data integration using the OpenWeatherMap API, enabling users to fetch current weather conditions, hourly and daily forecasts, weather alerts, and geocoding services for any location worldwide.
      65 npm
      MIT