Skip to main content
Glama
README.md
# JMA Data MCP

気象庁のAMeDAS観測・過去データと天気予報を検索するMCPサーバーです。全国1,286観測所のスナップショットを同梱し、地点名・座標から観測所を検索できます。

## 実行

Python 3.10+ と [`uv`](https://docs.astral.sh/uv/) が必要です。

```bash
uvx --from git+https://github.com/koizumikento/jma-data-mcp.git@master jma-data-mcp
```

MCPクライアント設定例:

```json
{
  "mcpServers": {
    "jma-data": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/koizumikento/jma-data-mcp.git@master",
        "jma-data-mcp"
      ]
    }
  }
}
```

引数なし、または `serve` でMCPサーバーを起動します。`station`、`weather`、`forecast`、`history` サブコマンドからCLIとしても利用できます。

## 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`

過去データは気象庁側で提供される直近約1〜2週間、時系列は最大168時間を対象とします。

## データ出典・利用条件

出典: [気象庁ホームページ](https://www.jma.go.jp/)

- [AMeDAS観測所・観測データ](https://www.jma.go.jp/bosai/amedas/)
- [天気予報](https://www.jma.go.jp/bosai/forecast/)
- [気象庁ホームページ利用規約](https://www.jma.go.jp/jma/kishou/info/coment.html)

同梱する観測所表は気象庁公開データを本ソフトウェア用に加工しています。取得データを利用・再配布する際は、気象庁の利用規約と気象業務法上の制約を確認してください。本ソフトウェアは独自の予報を生成しません。

## 開発

```bash
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
```

観測所スナップショットの差分チェックは週次でも実行されます。

## License

[MIT](LICENSE)

TDQS

A3.6/5.0

Scored across 11 tools

Disambiguation4/5

Most tools have distinct purposes, but get_current_weather and get_weather_by_location both return current observations, differing only in how the station is specified, which could cause confusion. Similarly, get_historical_weather and get_weather_time_series overlap slightly. Descriptions help clarify, but some ambiguity remains.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern with underscores (e.g., get_current_weather, list_prefectures, search_stations). Verbs are appropriate (get, list, search), and there is no mixing of naming conventions.

Tool Count5/5

With 11 tools, the server covers station information, current weather, forecasts, historical data, and search capabilities. This is well-scoped for a weather data server, neither too many nor too few.

Completeness4/5

The tool surface covers station queries, current weather, forecasts by prefecture, historical data, and time series. Minor gaps include lack of forecast for specific coordinates (only prefecture) and absence of weather alerts/warnings, but core workflows are supported.

Maintenance

ActivitySlowing
ResponsivenessNo issues