Skip to main content
Glama
hlucent

safemap-uv-index-mcp

by hlucent

safemap-uv-index-mcp

行政安全部 生活安全地図(safemap.go.kr)が提供する紫外線指数情報照会サービス(気象庁の生活気象指数のうち紫外線指数を市郡区単位でまとめた資料)を照会するMCPサーバー。

提供データ

単一データセット構成であり、別途のDataset Registry表は不要である。

  • データセット名(画面表示): 紫外線指数

  • 提供機関: 気象庁 (管理部署: 気象融合サービス課)

  • 提供プラットフォーム: 行政安全部 生活安全地図(safemap.go.kr)

  • 元API: 紫外線指数情報照会サービス (IF_0113)

Related MCP server: korea_weather

ツール

get_uv_index

市道/市郡区基準で紫外線指数を照会する。

パラメータ

名前

必須

説明

sido

string

任意

市道名でフィルタリング (例: "ソウル", "京畿"). クライアントサイド部分一致

sigungu

string

任意

市郡区名でフィルタリング (例: "江南区"). クライアントサイド部分一致

page_no

int

任意 (デフォルト1)

地域フィルタなしで全体をページング照会する際に使用

num_of_rows

int

任意 (デフォルト300)

一度に取得する結果数 (全国合計269件のため300なら1ページに全体が含まれる)

返却フィールド

フィールド

説明

ctprvn_nm

市道名 (例: "ソウル", "慶南", "江原特別自治道")

signgu_nm

市郡区名。市道全体を代表する項目は空文字列("")で返る

emd_nm

邑面洞名。実測結果常に空文字列であることを確認

ulvry_index

紫外線指数値。整数(int)で返す (実測結果0~9範囲の純粋な数字であることを確認、等級文字列ではない)

occrrnc_dt

発生日時。実測フォーマット: YYYYMMDDHH (10桁、例: "2026072106" = 2026-07-21 06時)

既知の制約事項 (実測完了)

元仕様書がExcel/XMLサンプルではなく画面キャプチャ2枚+Javaサンプルコードのみで提供されており、実測が必要だった項目の実際の確認結果は次のとおりである (2026-08-22実測):

  • returnTypeデフォルト値: returnTypeを省略しても実際にJSONが返る(案内文 "Default: JSON"が正しい)。ただし安全のため毎リクエストにreturnType=jsonを明示的に含める。

  • 地域フィルタパラメータ: sidoNmなどの地域フィルタパラメータを試したが、サーバーが無視して 全データをそのまま返す — API自体の地域フィルタは非対応。このサーバーは 全国データを全体照会した後、sido/sigunguパラメータでクライアントサイド フィルタリングを実行する。

  • 紫外線指数(ulvry_index): 実測結果"0", "1", "2", "7", "9"などの純粋な 数字文字列であることを確認 ("低い/普通/高い"のような等級文字列ではない)。サーバーはこれを整数に 安全変換して返す。

  • 発生日時(occrrnc_dt)フォーマット: YYYYMMDDHH (時(hour)単位まで、分なし)。例: "2026072106"

  • totalCount / 全国市郡区数: numOfRows=1000, pageNo=1で呼び出し時totalCount=269、 実際の返却件数も269件で一致。市道17個全体が含まれ、各市道ごとに"市郡区全体"を 代表する項目(signgu_nm="")と個別市郡区項目が一緒に返る。

  • エラーコード: 正常応答はresultCode="00", resultMsg="NORMAL_SERVICE"。誤った サービスキーで呼び出し時resultCode="30", resultMsg="SERVICE_KEY_IS_NOT_REGISTERED_ERROR" (HTTPステータスコードは500であることを確認)。

  • 邑面洞名(emd_nm): 実測範囲内では常に空文字列であることを確認。

  • エンドポイント: http://safemap.go.kr/openapi2/IF_0113で呼び出し時https://www.safemap.go.kr/...へ リダイレクトされる(自動https転換、httpx follow_redirects=Trueで処理)。

インストールおよび実行

pip install -r requirements.txt
cp .env.example .env  # SAFEMAP_API_KEY 값 입력
python server.py

環境変数

変数名

説明

SAFEMAP_API_KEY

行政安全部 生活安全地図(safemap.go.kr)で発行された認証キー

PORT

サーバーポート (デフォルト8080)

デプロイ (fly.io)

fly launch --no-deploy
fly secrets set SAFEMAP_API_KEY=발급받은키
flyctl deploy

デプロイ後、Claude.aiコネクタ接続時は必ず/mcpパスを付ける:

https://safemap-uv-index-mcp.fly.dev/mcp

Rate Limit

APIキー認証なしでURLのみでコネクタ接続が可能な公開サーバーのため、IP基準のスライディングウィンドウ方式のrate limitが適用される:

  • 60秒以内に30回超過時429 (Fly-Client-IPヘッダー優先、なければX-Forwarded-Forの最初の値を使用)

  • CORS preflight(OPTIONS)リクエストはカウントから除外

ライセンス

MIT License。データ自体の著作権は公共ヌリ(行政安全部 生活安全地図)の利用条件に従う。

出典

行政安全部 生活安全地図(safemap.go.kr)、気象庁(気象融合サービス課)提供「紫外線指数情報照会サービス(IF_0113)」

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    MCP server that provides Korean weather information using grid coordinates and the Korea Meteorological Administration API, allowing users to query current weather conditions and forecasts for specific locations in Korea.
    2
    7
    Apache 2.0
  • F
    license
    A
    quality
    D
    maintenance
    An MCP server that provides Korean weather information from the Korea Meteorological Administration's short-term forecast API, enabling natural language queries about weather conditions such as current weather, rain forecasts, and suitability for outdoor activities.
    3
    12
  • F
    license
    Not graded
    quality
    B
    maintenance
    A read-only MCP server providing access to various Korean public data such as subway arrivals, weather, fine dust, bike availability, real estate, and more.
  • F
    license
    Not graded
    quality
    C
    maintenance
    This MCP server integrates South Korea's national law information, building registers from MOLIT, and KOSIS statistics for housing development research. It enables searching laws, retrieving building details, and accessing statistical data through natural language.

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hlucent/safemap-uv-index-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server