SGIS MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
SGIS MCP Server
통계지리정보서비스(SGIS OpenAPI3, https://sgis.mods.go.kr)를 위한 Model Context Protocol (MCP) 서버입니다.
별도의 HTTP 서버를 띄울 필요 없이 MCP 호스트(Claude Desktop, OpenCode, Cursor, Antigravity 등)가 stdio 전송 방식으로 자동 실행합니다.
주요 기능
37개 MCP 도구 제공: 인구·가구·주택·사업체·농림어업 총조사, 지오코딩/좌표변환, 행정·집계구 경계 GeoJSON, 생활업종(상권) 분석 API 지원
전체 OpenAPI3 범용 호출 (
sgis_generic_call): 통계주제도, 지방의 변화, 도시화 분석, 격자 경계, 성씨 분포, 기술업종 등 모든 OpenAPI3 엔드포인트 패스스루 지원로컬 코드표 및 카탈로그 (
sgis_reference& MCP Resources): 네트워크 호출 없이 공식 코드표(연령, 주택유형, 좌표계, 시도, 테마 등)와 전체 엔드포인트 카탈로그 조회자동 인증 및 토큰 갱신:
accessToken을 메모리에 캐싱하고 만료 전 자동 갱신 및-401오류 시 1회 자동 재시도컨텍스트 절약 직렬화: 대용량 응답(>4KB)이나 GeoJSON(
FeatureCollection)은 컴팩트 JSON으로 반환
Related MCP server: MCPortal
사전 준비 (SGIS API 키 발급)
SGIS 개발자 센터에서 서비스 등록 후 **서비스 ID (
consumer_key)**와 **보안 Key (consumer_secret)**를 발급받습니다.Node.js
>= 18환경이 필요합니다.
설치 및 빌드
git clone https://github.com/kmsrepo/sgis-mcp.git
cd sgis-mcp
npm install
npm run build빌드가 완료되면 dist/index.js가 생성됩니다.
MCP 클라이언트 설정
Claude Desktop / Cursor / Antigravity (mcp.json)
{
"mcpServers": {
"sgis": {
"command": "node",
"args": ["/path/to/sgis-mcp/dist/index.js"],
"env": {
"SGIS_CONSUMER_KEY": "YOUR_SGIS_CONSUMER_KEY",
"SGIS_CONSUMER_SECRET": "YOUR_SGIS_CONSUMER_SECRET"
}
}
}
}Windows 환경에서는 경로를
"C:\\path\\to\\sgis-mcp\\dist\\index.js"형태로 지정하세요.
OpenCode (opencode.json)
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"sgis": {
"type": "local",
"command": ["node", "/path/to/sgis-mcp/dist/index.js"],
"environment": {
"SGIS_CONSUMER_KEY": "YOUR_SGIS_CONSUMER_KEY",
"SGIS_CONSUMER_SECRET": "YOUR_SGIS_CONSUMER_SECRET"
},
"enabled": true,
"timeout": 30000
}
}
}MCP Inspector로 테스트
SGIS_CONSUMER_KEY=your_key SGIS_CONSUMER_SECRET=your_secret npm run inspect환경 변수
변수명 | 필수 여부 | 기본값 | 설명 |
| 필수 | - | SGIS 서비스 ID ( |
| 필수 | - | SGIS 보안 Key ( |
| 선택 |
| API Base URL 재정의 |
| 선택 |
| HTTP 요청 타임아웃 (ms) |
제공 도구 (37개)
탐색 · 레퍼런스 · 인증
도구 | SGIS 엔드포인트 | 설명 |
| 임의의 OpenAPI3 경로 | 전용 도구가 없는 모든 엔드포인트 범용 호출 |
| 로컬 (네트워크 없음) | 공식 코드표 및 전체 엔드포인트 카탈로그 조회 |
|
| 인증 확인 및 토큰 수동 갱신 |
|
| 인구·사업체·농림어업·경계 제공 기준연도 목록 |
인구 · 가구 · 주택 · 사업체 · 농림어업 총조사
도구 | SGIS 엔드포인트 | 설명 |
|
| 총조사 주요지표 (인구·가구·주택·사업체) |
|
| 성별·연령별 인구 조건검색 |
|
| 세대구성·점유형태별 가구통계 |
|
| 주택유형·건축연도·면적별 주택통계 |
|
| 산업분류·테마별 사업체/종사자 통계 |
|
| 차수별 한국표준산업분류 코드 조회 |
|
| 농가통계 |
|
| 임가통계 |
|
| 어가통계 (내수면/해수면) |
|
| 농·임·어가 가구원 통계 |
주소 · 지오코딩 · 좌표변환 · 경계 GeoJSON · 검색
도구 | SGIS 엔드포인트 | 설명 |
|
| 단계별 행정구역 주소 조회 (시도→시군구→읍면동) |
|
| 주소 → UTM-K ( |
|
| 주소 → WGS84 ( |
|
| UTM-K 좌표 → 주소 |
|
| WGS84 경위도 → 주소 |
|
| 좌표계 변환 ( |
|
| 연도별 행정구역 경계 GeoJSON ( |
|
| 8자리 행정동 기준 집계구 경계 GeoJSON |
|
| 사각 영역(UTM-K BBOX) 내 경계 조회 |
|
| UTM-K 좌표로 행정동·집계구 코드 조회 |
|
| 연관어 검색 |
|
| SGIS 통계 항목 검색 |
생활업종 (상권 분석)
도구 | SGIS 엔드포인트 | 설명 |
|
| 조건별 생활업종 후보지 검색 |
|
| 연령대별 거주인구 요약 |
|
| 성별 인구 비율 요약 |
|
| 거처종류 비율 요약 |
|
| 업종별 사업체 분포 요약 |
|
| 연도별 업종 사업체 증감 |
|
| 지역 종합지표 (거주/직장인구·가구 등) |
|
| 시도별 생활업종 순위 |
|
| 시도별 생활업종 정보 |
|
| 시도별 대분류 테마 세부 업종 속성 |
|
| 시군구별 테마 사업체수 |
|
| 시군구별 테마 상세 정보 |
MCP Resources
MCP 호스트가 리소스를 지원하는 경우 다음 URI를 직접 읽을 수 있습니다.
sgis://catalog— 전체 SGIS OpenAPI3 엔드포인트 카탈로그sgis://codes— 공식 코드표 요약sgis://codes/{table}— 개별 코드표 (coord,age_type,household_type,family_type,house_type,house_area_cd,house_use_prid_cd,const_year,sido,theme)
사용 팁
최신 기준연도 확인: 인구·사업체·경계 API 호출 전
sgis_year_data로 제공 연도를 확인하세요.좌표계: SGIS 경계·집계구·기본 지오코딩 좌표계는 **UTM-K (
EPSG:5179, 미터 단위)**입니다. GPS/웹지도용 경위도는sgis_geocode_wgs84또는sgis_transcoord를 사용하세요.전국 시도 조회:
adm_cd/cd파라미터를 생략하면 전국 시도 단위로 조회됩니다 ("non"문자열은 전달하지 않아도 됩니다).
라이선스
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Seoul Open Data MCP — city data for Seoul via the Seoul Open Data Plaza API (openapi.seoul.go.kr).…
Korean national statistics (KOSIS) — browse, search and pull time series from Statistics Korea's…
Query U.S. Census Bureau data, variables, and geography via MCP.
Unofficial Regrid MCP — wraps the Regrid Parcel API v2 (regrid.com)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables users to query Korean demographic statistics (population, households, housing) and view them as choropleth maps via MCP tools.-
- AlicenseNot gradedqualityCmaintenanceBridges Korean public data APIs (data.go.kr) into MCP with automatic OpenAPI normalization, quota management, caching, and backoff. Enables natural language interaction with Korean government data through MCP.38 PyPIApache 2.0
- AlicenseAqualityDmaintenanceProvides South Korean real estate transaction price lookup (sales and rent) for apartments, row houses, single-family homes, and officetels via MCP tools using public data from data.go.kr.8MIT
- AlicenseAqualityCmaintenanceEnables MCP clients such as Claude to look up Korean statutes, individual articles, annexes, amendment history, precedents, and interpretive rulings from the Ministry of Government Legislation's national law information open API, and to run guided research scenarios, citation audits, contract risk scans, and citation tracing — all read-only. Supports both a hosted HTTP endpoint with per-user tokens and a local stdio installation using your own API key.121MIT