Weather MCP Server
Enables users to get real-time weather data for any city and generate broadcast-style weather news reports. Uses the OpenMeteo API to provide current weather conditions including temperature, humidity, and weather descriptions.
README
weather-mcp-server
A Model Context Protocol (MCP) server providing real-time weather data and news reports via OpenMeteo API.
Table of Contents
Overview
weather-mcp-server is a Node.js/TypeScript server implementing the Model Context Protocol (MCP). It fetches weather data for any city using the OpenMeteo API and delivers concise, engaging weather news reports. The server exposes tools and prompts for integration with MCP clients.
Features
- Real-time weather data retrieval for any city
- Weather news reporting in broadcast style
- MCP-compliant server with Express transport
- Type-safe API using Zod validation
- Modular codebase for easy extension
Installation
git clone https://github.com/your-org/weather-mcp-server.git
cd weather-mcp-server
cp .env.example .env # Set your PORT if needed
npm install
npm run build
Usage
Development mode (auto-reload):
npm run start:dev
The MCP server will run on the port specified in .env (default: 3000).
Docker Build & Debug (Taskfile)
This project uses Taskfile for Docker image build and debug automation.
Build Docker Image
task build:image
Builds the Docker image using buildx and tags it with both the version and latest.
Debug Docker Image
task debug:image
Runs the Docker image in interactive mode with Bash, loads environment variables from .env, and adds host.docker.internal:host-gateway for easy host-container communication.
Requirements:
- Docker
- Taskfile CLI
API
Tools
get-current-weather- Description: Get the weather of a city.
- Input:
{ city: string } - Output: Weather details (temperature, humidity, dew point, description).
Prompts
weather-news-report- Description: Returns a concise, broadcast-style weather news report for a given message.
HTTP Endpoints
POST /mcp— Main MCP endpoint for requestsGET /mcpandDELETE /mcp— Not supported (returns 405)
Contributing
Pull requests and issues are welcome! Please follow conventional TypeScript/Node.js best practices.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.