← Météo Maroc

API météo gratuite pour agents IA et chatbots

Gratuit — sans clé, sans inscription

Météo Maroc expose un serveur MCP (Model Context Protocol, JSON-RPC 2.0) que tout agent IA, chatbot ou assistant peut interroger librement. L'outil principal, get_meteo, renvoie la météo en direct et les prévisions 3 jours de n'importe quelle ville du monde, en français : température, ressenti, condition, vent, humidité, risque de pluie.

Point d'entrée

POST https://www.meteomaroc.fr/mcp.php
Content-Type: application/json

Exemple : météo d'une ville

curl -X POST https://www.meteomaroc.fr/mcp.php \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"get_meteo","arguments":{"ville":"Marrakech"}}}'

Réponse (extrait) :

{"ville":{"nom":"Marrakech","pays":"Morocco"},
 "actuel":{"temperature_c":32.2,"condition":"Ensoleillé","vent_kmh":9.4,"humidite_pct":34},
 "previsions_3_jours":[{"date":"2026-08-10","min_c":24.1,"max_c":39.2,
   "condition":"Ensoleillé","risque_pluie_pct":0}, "…"],
 "page_previsions_detaillees":"https://www.meteomaroc.fr/marrakech.php",
 "source":"Météo Maroc (meteomaroc.fr) — données weatherapi.com"}

Les 6 outils disponibles

La liste complète est retournée par tools/list, et la découverte automatique passe par /.well-known/mcp.json, la carte agent et llms.txt. Chaque page du site existe aussi en markdown : envoyez simplement Accept: text/markdown.

Conditions d'utilisation

In English

Météo Maroc offers a free MCP server (JSON-RPC 2.0, no API key): the get_meteo tool returns live weather and a 3-day forecast for any city worldwide, in French. Discovery: mcp.json, agent card, llms.txt. Please keep the source attribution and link users to the returned forecast page.