JMA Data MCP
This MCP server exposes JMA/AMeDAS station and weather-data capabilities.
Look up station info by code and search stations by name, coordinates, type, or paginated list.
Get current weather by station or nearest station to coordinates.
Get prefecture forecasts and list prefecture codes.
Retrieve recent historical weather and time-series observations (up to ~168 hours).
The README additionally documents climate normals/anomalies and weather-warning report history, though those tools are absent from the supplied schema.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@JMA Data MCP what's the current temperature in Tokyo?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
JMA Data MCP
気象庁の観測・天気予報・気候統計を調べ、直近に配信された気象警報・注意報を確認できるMCPサーバーです。全国1,286観測所のスナップショットを同梱し、地点名や座標からAMeDAS観測所を検索できます。
MCP登録 · CLI · Pythonライブラリ
MCPクライアントに登録する
Python 3.11以上、uv と Git が必要です。APIキーは不要です。
Codex
codex mcp add jma-data -- uvx --python 3.12 --from git+https://github.com/koizumikento/jma-data-mcp.git@master jma-data-mcp
codex mcp list新しいセッションの /mcp で接続を確認します。デスクトップ版では設定の「MCP servers」でSTDIOを選び、下のJSONと同じコマンド・引数を入力して保存し、再起動します。 OpenAI公式のMCP設定
Claude Desktop / Cursor
Claude Desktop(Windows)
%APPDATA%/Claude/claude_desktop_config.jsonClaude Desktop(macOS)
~/Library/Application Support/Claude/claude_desktop_config.jsonCursor
.cursor/mcp.json(プロジェクト内)
既存の mcpServers に項目を追加し、保存後にクライアントを再起動します。uvx が見つからない場合は command に実行ファイルの絶対パスを指定してください。
{
"mcpServers": {
"jma-data": {
"command": "uvx",
"args": [
"--python",
"3.12",
"--from",
"git+https://github.com/koizumikento/jma-data-mcp.git@master",
"jma-data-mcp"
]
}
}
}Related MCP server: Japanese Weather MCP
CLIで使う
クローンせずに実行できます。結果は標準出力に出ます。
uvx --python 3.12 --from git+https://github.com/koizumikento/jma-data-mcp.git@master jma-data-mcp station get --code 44132
uvx --python 3.12 --from git+https://github.com/koizumikento/jma-data-mcp.git@master jma-data-mcp climate normals --station-code 44132 --month 8
uvx --python 3.12 --from git+https://github.com/koizumikento/jma-data-mcp.git@master jma-data-mcp climate anomalies --metric temperature --start-year 2000
uvx --python 3.12 --from git+https://github.com/koizumikento/jma-data-mcp.git@master jma-data-mcp warnings list --office 松山 --limit 5Pythonライブラリとして使う
自分のPythonプロジェクト(pyproject.toml があるディレクトリ)で依存関係に追加します。
uv add "git+https://github.com/koizumikento/jma-data-mcp.git@master"次のコードを example.py に保存し、同じディレクトリで uv run python example.py を実行します。
jma_data_mcp.api の非同期関数を使います。
import asyncio
from jma_data_mcp.api import get_climate_normals
print(asyncio.run(get_climate_normals("44132", month=8)))MCP tools
観測所:
get_station_info、search_stations、search_nearby_stations、get_stations_of_type、list_stations観測・予報:
get_current_weather、get_weather_by_location、get_forecast、list_prefectures過去・時系列:
get_historical_weather、get_weather_time_series気候統計:
get_climate_normals、get_japan_climate_anomalies警報・注意報の配信履歴:
list_weather_warning_reports
調べたいこと | 取得できる範囲 |
最近の観測 | 気象庁が配信している直近の観測。時系列は最大168時間。観測所ごとの長期記録は、地点・期間・項目を選んで 気象庁の公式画面 からCSVをダウンロードできます。 |
観測所の平年値 | 気象庁が公開している1991〜2020年平年値のうち、平均気温、日最高・最低気温の平均、風速、日照時間、降水量、積雪深、降雪量の月・年別統計。統計に用いた年数・期間と気象庁のリマーク番号を返します。欠測は |
日本の長期気候統計 | 1898年から公開済みの最新年までの年平均気温・年降水量の偏差。基準は1991〜2020年平均で、全国の観測地点から気象庁が集計した値です。 |
直近の警報・注意報の電文 | 数日分を掲載する気象庁の毎時更新のAtomフィードから、VPWW53〜VPWW61の電文の発表官署・配信日時・概要・原文URLを返します。解除電文も含まれます。発表中の情報は 気象庁の警報・注意報ページ で確認できます。 |
実行中のプロセスでは、平年値のZIPを1時間、警報・注意報の配信履歴を1分キャッシュします。
Sitesでの実行
sites/ に認証付き POST /mcp Worker ESM adapterとbuild設定があります。
全14ツールはPythonバックエンドで実行します。Sitesとは別にHTTPS接続可能なPythonホストが必要です。
stdio・CLI・Python libraryはそのまま利用できます。設定、secret名、再現手順、検証範囲は上記手順を参照してください。
データ出典・利用条件
出典: 気象庁ホームページ
同梱する観測所表は気象庁公開データを本ソフトウェア用に加工しています。取得データを利用・再配布する際は、気象庁の利用規約と気象業務法上の制約を確認してください。本ソフトウェアは独自の予報を生成しません。
開発
uv sync --frozen
uv run ruff check .
uv run mypy jma_data_mcp
uv run pytest -m "not integration"
uv run python scripts/check_amedas_snapshot.py
uv build
npm --prefix sites test
npm --prefix sites run build
npm --prefix sites run validateSites契約検証にはNode 22+も必要です。テストではJMA取得をfixtureで置き換え、使用したloopbackサーバーを停止します。
観測所スナップショットの差分チェックは週次でも実行されます。
License
Available Tools
11 toolsget_current_weatherGet Current WeatherARead-onlyIdempotent
Get current weather observation data from AMeDAS stations.
Inputs: station_code. Returns: object
get_forecastGet ForecastBRead-onlyIdempotent
Get weather forecast for a prefecture.
Inputs: prefecture (required). Returns: object
get_historical_weatherGet Historical WeatherARead-onlyIdempotent
Get historical weather data for a specific date and time.
Data is available for approximately the past 1-2 weeks.
Inputs: station_code (required), target_datetime (required). Returns: object
get_station_infoGet Station InfoARead-onlyIdempotent
Get AMeDAS station information by station code.
Inputs: code (required). Returns: object
get_stations_of_typeGet Stations Of TypeCRead-onlyIdempotent
Get all AMeDAS stations of a specific type.
Inputs: station_type (required). Returns: object
get_weather_by_locationGet Weather By LocationARead-onlyIdempotent
Get current weather from the nearest AMeDAS station to given coordinates.
Inputs: lat (required), lon (required). Returns: object
get_weather_time_seriesGet Weather Time SeriesARead-onlyIdempotent
Get time series weather data for a station.
Useful for analyzing weather trends over hours or days.
Inputs: station_code (required), hours, interval_minutes. Returns: object
list_prefecturesList PrefecturesARead-onlyIdempotent
List all available prefecture codes for weather forecast.
Inputs: no named parameters. Returns: object
list_stationsList StationsARead-onlyIdempotent
List all AMeDAS stations (1286 stations) with pagination.
Inputs: limit, offset. Returns: object
search_nearby_stationsSearch Nearby StationsCRead-onlyIdempotent
Search AMeDAS stations within a radius from given coordinates.
Inputs: lat (required), lon (required), radius_km. Returns: object
search_stationsSearch StationsARead-onlyIdempotent
Search AMeDAS stations by name (Japanese, Kana, or English).
Inputs: name (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Station lookup tools are split by clear query mode (code, name, coordinates, type, list-all), and weather tools are separated by temporal scope and access pattern (current, location-based, forecast, historical, time series). No two tools appear to do the same thing.
All names use snake_case with a predictable verb_noun structure (get_, search_, list_), including compound names like search_nearby_stations and get_weather_by_location. The convention is consistent throughout.
11 tools is well-scoped for a station-and-weather data server. Each tool covers a distinct retrieval mode without excessive granularity.
The surface covers station discovery thoroughly and weather retrieval across current, forecast, historical, and time-series modes. Minor gaps exist, such as forecast retrieval by coordinates rather than only prefecture, but core workflows are supported.
Maintenance
Related MCP Connectors
Nationwide JMA AMeDAS temperature, humidity and precipitation observations.
JMA (Japan Meteorological Agency) MCP — keyless weather forecasts, warnings, and earthquake data…
Global weather via Open-Meteo: forecast, historical, marine, air quality, geocoding, elevation.
Official JMA short-term forecasts by prefecture.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides comprehensive access to real-time weather data, forecasts, historical data, and weather alerts from the WeatherXM decentralized weather network worldwide.ISC
- AlicenseNot gradedqualityDmaintenanceProvides weather information for 110 cities across Japan with natural language support for location names in kanji, hiragana, and katakana. Retrieves current weather conditions and forecasts using OpenMeteo API through MCP-compliant tools.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables retrieval of weather information for major cities across Japan using the Japan Meteorological Agency API. Supports weather overviews, precipitation probability, and wind speed data with both local and remote OAuth 2.0 authenticated deployment options.9 npmMIT
- FlicenseNot gradedqualityDmaintenanceMCP server providing weather forecast, warnings, AMeDAS observations, and area search from Japan Meteorological Agency JSON APIs. It normalizes responses and supports Japanese place names.-