Skip to main content
Glama
daegu-transit-mcp

daegu-transit-mcp

by wlstmd

daegu-transit-mcp

대구광역시 실시간 교통 오픈데이터를 MCP(Model Context Protocol) 도구로 감싼 서버입니다.

구성

영역

제공기관

데이터셋

버스 도착예정/위치

대구광역시 (data.go.kr)

대구버스정보시스템

도로 구간 소통정보

대구광역시 (data.go.kr)

교통소통정보(신)

주차장 실시간 여유/혼잡

대구광역시 통합주차정보시스템

pis.daegu.go.kr

Related MCP server: realestate-mcp

사전 준비

  1. data.go.kr 회원가입 → 아래 2개 데이터셋 활용신청 (개발계정 자동승인, 즉시 발급)

  2. pis.daegu.go.kr 개발자 등록 → 실시간주차혼잡도 조회 API 키 발급 (관리자 검토 후 승인) → DAEGU_PARKING_API_KEY

설치

git clone https://github.com/wlstmd/daegu-transit-mcp && cd daegu-transit-mcp
npm install && npm run build

claude mcp add daegu-transit \
  -e DATA_GO_KR_KEY=YOUR_KEY \
  -e DAEGU_PARKING_API_KEY=YOUR_KEY \
  --scope user \
  -- node $(pwd)/dist/index.js

/mcp로 6개 도구가 로드됐는지 확인 후 "동대구역 버스 언제 와?" 같은 질문으로 테스트하세요.

로컬 개발 시 .env.example을 .env로 복사해 키를 채우면 npm run dev로 바로 실행됩니다.

도구 목록

도구

설명

search_bus_stop

정류소 이름 → bsId 검색

search_bus_route

버스 번호 → routeId 검색

get_bus_arrivals

정류소 실시간 도착예정 버스

get_bus_location

노선 실시간 버스 위치

get_road_traffic

도로 구간별 실시간 속도/소통상황

get_parking

주차장 실시간 여유/혼잡 + 상세정보

참고 사항

  • apis.data.go.kr 계열 API는 Accept-Language 헤더가 없으면 영문으로 응답합니다. 클라이언트(src/client/dataGoKr.ts, daeguParking.ts)가 ko-KR,ko;q=0.9를 항상 보냅니다.

  • get_road_traffic은 API에 위치 필터가 없어 넓은 풀(500건)을 가져와 클라이언트에서 도로명/구간명으로 걸러냅니다. 아주 드문 지명은 안 잡힐 수 있습니다.

  • get_parking은 통합주차정보시스템에 등록된 주차장(주로 공영)만 커버합니다. 건물 부설주차장 전체 목록(data.go.kr 15108762)은 실시간 데이터가 없고 ID 체계도 달라 제외했습니다.

Available Tools

6 tools
get_bus_arrivals정류소 실시간 버스 도착예정A

정류소 ID(bsId) 기준 실시간 도착예정 버스 목록을 가져온다. bsId는 search_bus_stop으로 먼저 찾는다. 버스 운영 시간이 아니면 데이터가 없을 수 있다.

Inputs: bsId (required), routeNo.

get_bus_location노선 실시간 버스 위치A

노선 ID(routeId) 기준 그 노선을 운행 중인 버스들의 실시간 위치를 가져온다. routeId는 search_bus_route로 먼저 찾는다.

Inputs: routeId (required).

get_parking대구 주차장 실시간 여유/혼잡 조회A

대구시 통합주차정보시스템에 등록된 주차장의 위치·요금 등 상세정보와 실시간 여유/혼잡 상태, 잔여 주차면수를 가져온다. 구(gu) 이름과 주차장 이름 키워드로 좁힐 수 있다. 실시간정보(hasRealtime=true)가 없는 주차장은 정적 정보만 나온다.

Inputs: gu, name, limit.

get_road_traffic대구 도로 구간별 실시간 소통정보A

표준노드링크 기준 도로 구간의 실시간 속도/소통상황(소통원활·서행·정체)을 가져온다. keyword로 도로명·구간명·지점명을 부분 검색한다 (예: '동대구로', '달구벌대로'). 이 API는 서버 측 위치 필터가 없어 넓은 풀을 가져와 클라이언트에서 걸러내므로, 너무 드문 지명은 안 잡힐 수 있다.

Inputs: limit, keyword.

search_bus_route대구 버스노선 검색A

버스 번호로 노선 ID(routeId)를 찾는다. get_bus_location을 쓰기 전에 먼저 호출해서 routeId를 확보한다. 예: '급행1', '805' 같은 노선번호로 검색.

Inputs: query (required), limit.

search_bus_stop대구 버스정류소 검색A

정류소 이름으로 정류소 ID(bsId)를 찾는다. get_bus_arrivals를 쓰기 전에 먼저 호출해서 bsId를 확보한다. 예: '동대구역', '반월당' 같은 키워드로 검색.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: bus stop search, route search, arrivals, bus locations, road traffic, and parking. There is no meaningful overlap or ambiguity between them.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern, with search_ prefix for ID lookups and get_ prefix for data retrieval. The naming is predictable and easy to navigate.

    Tool Count5/5

    Six tools is a well-scoped count for a city transit information server. Each tool covers a necessary part of the domain without redundancy or bloat.

    Completeness4/5

    The tool set covers the main real-time transit and mobility workflows: finding stops and routes, arrivals, live bus locations, road traffic, and parking. Minor gaps like route stop-list or schedule details exist, but core use cases are well supported.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Bridges 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 PyPI
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      Provides 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.
      8
      MIT
    • F
      license
      A
      quality
      C
      maintenance
      Provides South Korea tourist congestion and concentration forecasts, quiet-area recommendations, and attraction/festival search via MCP clients using a public data portal key.
      8
      -