safemap-uv-index-mcp
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条可在一页内包含全部) |
返回字段
字段 | 说明 |
ctprvn_nm | 市道名称(例如:"首尔"、"庆南"、"江原特别自治道") |
signgu_nm | 市郡区名称。代表整个市道的项目以空字符串("")返回 |
emd_nm | 邑面洞名称。实测结果始终为空字符串 |
ulvry_index | 紫外线指数值。以整数(int)返回(实测结果为0~9范围内的纯数字,非等级字符串) |
occrrnc_dt | 发生日期时间。实测格式: |
已知限制事项(实测完成)
原始规格书仅以2张画面截图+Java示例代码提供(而非Excel/XML示例),因此 需要实测的项目实际确认结果如下(2026-08-22实测):
returnType默认值:省略
returnType时实际也会返回JSON(提示文字 "Default: JSON"正确)。但为安全起见,每次请求均显式包含returnType=json。地区过滤参数:尝试了
sidoNm等地区过滤参数,但服务器忽略并 原样返回全部数据——API本身不支持地区过滤。本服务器在 全量查询全国数据后,通过sido/sigungu参数执行客户端侧过滤。紫外线指数(ulvry_index):实测确认为
"0"、"1"、"2"、"7"、"9"等纯 数字字符串(非"低/普通/高"等等级字符串)。服务器将其安全转换为整数后返回。发生日期时间(occrrnc_dt)格式:
YYYYMMDDHH(精确到小时,无分钟)。例如:"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转换,通过httpxfollow_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/mcpRate Limit
由于是无API密钥认证、仅凭URL即可连接连接器的公开服务器,因此适用基于IP的 滑动窗口方式rate limit:
60秒内超过30次时返回429(优先使用
Fly-Client-IP头,若无则使用X-Forwarded-For第一个值)CORS预检(OPTIONS)请求不计入次数
许可证
MIT License。数据本身的版权遵循公共누리(行政安全部生活安全地图)使用条件。
来源
行政安全部生活安全地图(safemap.go.kr),气象厅(气象融合服务科)提供 「紫外线指数信息查询服务(IF_0113)」
This server cannot be installed
Maintenance
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
- AlicenseBqualityDmaintenanceMCP 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.27Apache 2.0
- FlicenseAqualityDmaintenanceAn 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.312
- FlicenseNot gradedqualityBmaintenanceA read-only MCP server providing access to various Korean public data such as subway arrivals, weather, fine dust, bike availability, real estate, and more.
- FlicenseNot gradedqualityCmaintenanceThis 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.
Related MCP Connectors
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
MCP server for live, sourced Brazilian public data from the official IBGE APIs.
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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