About Weather MCP Server
Weather MCP Server provides weather information through the National Weather Service (NWS) API for MCP clients. It offers state-based alerts and forecasts based on geographic coordinates.
Key features
- 01Look up alerts by state code
- 02Get forecasts by latitude and longitude
- 03Support GeoJSON format
- 04Define interfaces with TypeScript
Use cases
- 01Check weather alerts for a state
- 02Retrieve a forecast for a location
MCP support
The MCP server exposes `get-alerts` and `get-forecast` tools to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEWeather MCP Server
Un serveur MCP (Model Context Protocol) qui fournit des informations météorologiques via l'API National Weather Service (NWS).
Fonctionnalités
- Récupération des alertes météorologiques par état
- Prévisions météorologiques par coordonnées géographiques
- Support des formats GeoJSON
- Interface TypeScript pour une meilleure maintenabilité
Prérequis
- Node.js (v16 ou supérieur)
- npm ou yarn
- TypeScript
- ts-node (pour l'exécution en développement)
Installation
- Clonez le dépôt :
git clone [URL_DU_REPO]
cd weather
- Installez les dépendances :
npm install
- Compilez le projet :
npm run build
Configuration
Le serveur est configuré pour se connecter à l'API NWS. Aucune configuration supplémentaire n'est nécessaire.
Utilisation
Le serveur expose deux outils principaux :
-
get-alerts: Récupère les alertes météorologiques pour un état- Paramètre :
state(code à deux lettres, ex: "CA", "NY")
- Paramètre :
-
get-forecast: Récupère les prévisions météorologiques pour une localisation- Paramètres :
latitude(nombre entre -90 et 90)longitude(nombre entre -180 et 180)
- Paramètres :
Structure du Projet
weather/
├── src/
│ ├── interfaces/ # Définitions des types TypeScript
│ │ └── weather.ts # Interfaces pour les données météo
│ └── index.ts # Point d'entrée du serveur
├── build/ # Fichiers compilés
└── package.json # Configuration du projet
Développement
Pour lancer le serveur en mode développement :
npm run dev
Pour compiler le projet :
npm run build
Licence
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.