Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Weather Data Fetcher

FreeNot checked

Enables AI agents to retrieve live weather updates for any city via OpenWeatherMap, wrapped in MCP format.

GitHubEmbed

About

Enables AI agents to retrieve live weather updates for any city via OpenWeatherMap, wrapped in MCP format.

README

A simple yet powerful weather-fetching tool built using the Model Context Protocol (MCP). This service allows AI agents to retrieve live weather updates for any city via OpenWeatherMap, wrapped in an agent-friendly format using MCP standards.


🚀 Features

  • Real-time weather data via OpenWeatherMap API
  • MCP-compatible tool (getWeatherData)
  • Returns structured details: temperature, humidity, wind speed, and description
  • Agent-friendly response formatting
  • CLI-compatible using Stdio transport

🛠 Tech Stack

  • Node.js
  • MCP SDK (@modelcontextprotocol/sdk)
  • OpenWeatherMap API
  • zod (for input validation)
  • dotenv

📦 Setup

  1. Clone the repo & install dependencies:
git clone https://github.com/Ansh642/MCP-Server.git
cd mcp-weather-fetcher
npm install
  1. Create a .env file with your OpenWeatherMap API key:
OPENWEATHER_API_KEY=your_api_key_here
  1. Run the MCP server:
node index.js
  1. (Optional) Define the server in mcp.json:
{
  "mcpServers": {
    "weatherData": {
      "command": "node",
      "args": ["C:/Users/91995/Desktop/mcpServer/index.js"]
    }
  }
}

💬 Example Interaction

>> Call tool: getWeatherData with { "city": "Delhi" }

✅ Weather Report for Delhi:
- Temperature: 34.9°C
- Feels Like: 37.1°C
- Humidity: 45%
- Weather: Clear
- Description: clear sky
- Wind Speed: 3.6 m/s

👤 Author

Ansh Agarwal 📧 [email protected] 🔗 GitHub | LinkedIn



from github.com/Ansh642/MCP-Server

Installing Weather Data Fetcher

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/Ansh642/MCP-Server

FAQ

Is Weather Data Fetcher MCP free?

Yes, Weather Data Fetcher MCP is free — one-click install via Unyly at no cost.

Does Weather Data Fetcher need an API key?

No, Weather Data Fetcher runs without API keys or environment variables.

Is Weather Data Fetcher hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install Weather Data Fetcher in Claude Desktop, Claude Code or Cursor?

Open Weather Data Fetcher on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Weather Data Fetcher with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs