mcpField
W
Weather MCP Server

Weather MCP Server

Local
github.com/julienlucasMedia & Design1Updated 78w ago

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

  1. 01Look up alerts by state code
  2. 02Get forecasts by latitude and longitude
  3. 03Support GeoJSON format
  4. 04Define interfaces with TypeScript

Use cases

  1. 01Check weather alerts for a state
  2. 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.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

Weather 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

  1. Clonez le dépôt :
git clone [URL_DU_REPO]
cd weather
  1. Installez les dépendances :
npm install
  1. 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 :

  1. get-alerts : Récupère les alertes météorologiques pour un état

    • Paramètre : state (code à deux lettres, ex: "CA", "NY")
  2. 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)

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

Markdown supported

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.