Skip to main content
Glama

subway-mcp — 수원역 지하철 실시간 도착정보 MCP 서버

수원역의 1호선 / 수인분당선 실시간 도착정보를, Claude 같은 MCP 클라이언트가 조회할 수 있게 해주는 로컬 stdio MCP 서버입니다. 첫 MCP 서버 학습용 프로젝트.

구조

파일

역할

server.py

FastMCP 서버 + @mcp.tool 정의만 (얇게 유지)

subway_api.py

도착정보 API 호출/파싱 (도메인 로직 격리)

.env

SUBWAY_SERVICE_KEY=... (git 커밋 금지)

.env.example

키 이름만 적어둔 템플릿

Related MCP server: ShippingTracker

개발 환경 준비 (uv)

cd C:\Users\admin\HJ\subway-mcp
uv sync                       # 의존성 설치 + 가상환경 생성

실행 / 디버깅 (MCP Inspector)

uv run fastmcp dev server.py  # 브라우저로 Inspector 가 열리고 툴을 직접 호출 가능

진행 상태 (마일스톤)

  • M1 — 빈 서버 + hello 더미 툴

  • M2 — 데이터 소스 검증 → TOPIS 확정 (역명은 "수원"으로 조회)

  • M3get_subway_arrivals (전체 도착정보)

  • M4get_line_arrivals (호선/방향 필터)

  • M5 — Claude Code / Desktop 연결

  • M6 — 에러 처리·한국어 포맷 (역명 오류/노선 오류/타임아웃/키 없음)

Claude 연결

Claude Code (모든 프로젝트에서 사용):

claude mcp add --scope user subway-info -- uv run --directory C:\Users\admin\HJ\subway-mcp python server.py

Claude Desktop: %APPDATA%\Claude\claude_desktop_config.jsonmcpServers 에 등록 후 앱 재시작.

{
  "mcpServers": {
    "subway-info": {
      "command": "C:\\Users\\admin\\.local\\bin\\uv.exe",
      "args": ["run", "--directory", "C:\\Users\\admin\\HJ\\subway-mcp", "python", "server.py"]
    }
  }
}

키 발급

.env.example.env 로 복사한 뒤 발급받은 서비스키를 넣으세요.

Install Server
F
license - not found
B
quality
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
    F
    maintenance
    An MCP server that provides access to the Koleo API for Polish train timetables, including station information, departures, and arrivals. It allows users to search for connections, view train routes, and access real-time timetable data and seat occupancy statistics.
    14
    6
  • F
    license
    Not graded
    quality
    B
    maintenance
    This MCP server provides accessibility risk assessment for Seoul subway trips, considering wheelchair, stroller, and other mobility constraints. It offers tools to check station facilities, elevator status, and calculates risk scores for routes based on a deterministic engine.

View all related MCP servers

Related MCP Connectors

  • SEPTA MCP — Philadelphia SEPTA real-time transit (www3.septa.org/api, keyless)

  • BART MCP — San Francisco Bay Area Rapid Transit real-time data (api.bart.gov)

  • MBTA MCP — Boston real-time transit via the MBTA v3 API (api-v3.mbta.com)

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/Sungsanmerrygoround/subway-mcp'

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