Skip to main content
Glama
Youth Activity Information MCP Server

Youth Activity Information MCP Server

by hyunhoonj

청소년 활동 정보 MCP 서버

공공데이터포털의 청소년 활동 정보 API를 활용한 MCP (Model Context Protocol) 서버입니다.

개요

이 프로젝트는 여성가족부의 청소년 활동 정보 서비스를 MCP 프로토콜을 통해 Claude AI와 연동할 수 있도록 구현한 서버입니다. MCP SDK를 사용하여 처음부터 구현했으며, Tools, Resources, Prompts를 모두 제공합니다.

주요 기능

🔧 Tools (도구)

청소년 활동 API 도구

  1. get_sido_list - 시도(광역자치단체) 목록 조회

  2. get_sigungu_list - 시군구(기초자치단체) 목록 조회

  3. search_youth_activities - 청소년 활동 정보 검색

    • 지역별 검색 (시도, 시군구)

    • 키워드 검색

    • 페이징 지원

유틸리티 도구

  1. echo - 메시지 에코 (테스트용)

  2. get_time - 현재 시간 조회

📦 Resources (리소스)

  1. youth://info - 서버 정보

  2. youth://api-guide - API 사용 가이드

  3. youth://sido-codes - 시도 코드 참조표

💬 Prompts (프롬프트)

  1. search-guide - 청소년 활동 검색 방법 안내

  2. region-guide - 지역 코드 조회 방법 안내

빠른 설치 (권장)

Wrapper 방식으로 클론 없이 바로 설치:

# NPM으로 GitHub에서 직접 설치
npm install -g git+https://github.com/hyunhoonj/mcp-server-youth-activity.git

이 명령어로 자동으로:

  • ✅ 다운로드 및 의존성 설치

  • ✅ TypeScript 빌드

  • ✅ 전역 명령어 등록 완료

API 키 설정:

# macOS/Linux
export YOUTH_API_SERVICE_KEY="your_api_key_here"

# Windows PowerShell
$env:YOUTH_API_SERVICE_KEY="your_api_key_here"

Claude Desktop 설정:

{
  "mcpServers": {
    "youth-activity": {
      "command": "youth-activity-mcp",
      "env": {
        "YOUTH_API_SERVICE_KEY": "your_api_key_here"
      }
    }
  }
}

📖 자세한 설치 가이드: INSTALL.md


개발자를 위한 설치 (소스 빌드)

1. 저장소 클론

git clone https://github.com/hyunhoonj/mcp-server-youth-activity.git
cd mcp-server-youth-activity

2. 패키지 설치

npm install

3. API 키 발급

  1. 공공데이터포털 회원가입

  2. 청소년 활동 정보 서비스 API 신청

  3. 발급받은 서비스 키 확인

4. 환경 변수 설정

.env 파일을 생성하고 API 키를 설정합니다:

# .env.example을 복사하여 .env 파일 생성
cp .env.example .env

.env 파일 내용:

YOUTH_API_SERVICE_KEY=your_service_key_here

5. 빌드

npm run build

사용 방법

NPM 전역 설치 후 (권장)

설치만 하면 끝! Claude Desktop 설정에서 바로 사용:

{
  "mcpServers": {
    "youth-activity": {
      "command": "youth-activity-mcp",
      "env": {
        "YOUTH_API_SERVICE_KEY": "your_api_key_here"
      }
    }
  }
}

소스 빌드 후 직접 실행

# 개발 모드
npm run dev

# 또는 빌드 후 실행
npm run build
npm start

Claude Desktop 설정:

{
  "mcpServers": {
    "youth-activity": {
      "command": "node",
      "args": ["/절대/경로/mcp-server-youth-activity/build/index.js"],
      "env": {
        "YOUTH_API_SERVICE_KEY": "your_api_key_here"
      }
    }
  }
}

또는 .env 파일을 사용하는 경우:

{
  "mcpServers": {
    "youth-activity": {
      "command": "node",
      "args": ["/절대/경로/mcp-server-youth-activity/build/index.js"],
      "cwd": "/절대/경로/mcp-server-youth-activity"
    }
  }
}

Claude Desktop 설정 파일 위치

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

사용 예시

Claude와 대화하면서 다음과 같이 활용할 수 있습니다:

사용자: 서울시의 청소년 봉사활동을 찾아줘

Claude: (get_sido_list로 서울시 코드 확인 후)
        (search_youth_activities를 사용하여 검색)
        서울시의 청소년 봉사활동 목록을 찾았습니다...

프로젝트 구조

mcp-server-youth-activity/
├── src/
│   ├── index.ts              # MCP 서버 메인 코드
│   └── youthApiClient.ts     # 청소년 활동 API 클라이언트
├── build/                    # 컴파일된 JavaScript 파일
├── .env.example              # 환경 변수 예시
├── package.json              # 프로젝트 설정
├── tsconfig.json             # TypeScript 설정
└── readme.md                 # 이 파일

기술 스택

  • TypeScript - 타입 안전성

  • @modelcontextprotocol/sdk - MCP 프로토콜 구현

  • axios - HTTP 클라이언트

  • xml2js - XML 파싱

  • dotenv - 환경 변수 관리

  • Node.js - 런타임 환경

API 정보

  • 데이터 제공: 여성가족부

  • API 출처: 공공데이터포털

  • 서비스명: 청소년 활동 정보 서비스

라이선스

MIT

기여

이슈와 풀 리퀘스트를 환영합니다!

Available Tools

6 tools
echoB

입력받은 메시지를 그대로 반환합니다

Inputs: message (required).

get_facility_group_listC

청소년 시설 그룹 목록을 조회합니다. 시도, 기관명, 기관유형으로 필터링 가능합니다

Inputs: pageNo, numOfRows, sido, stName, +1 more.

get_sido_listC

청소년 활동 정보 시도(광역자치단체) 목록을 조회합니다

Inputs: pageNo, numOfRows.

get_sigungu_listC

특정 시도의 시군구(기초자치단체) 목록을 조회합니다

Inputs: sido (required), pageNo, numOfRows.

get_timeB

현재 시간을 반환합니다

Inputs: no named parameters.

search_youth_activitiesC

청소년 활동 프로그램을 검색합니다. 프로그램명, 기관명, 지역, 기간 등으로 필터링 가능합니다

Inputs: pageNo, numOfRows, atName, orgName, +3 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools have distinct purposes: get_facility_group_list, get_sido_list, get_sigungu_list, and search_youth_activities each target different data retrieval operations. However, echo and get_time are utility functions that don't directly relate to the youth activity domain and could be confused as overlapping in their generic nature.

    Naming Consistency4/5

    Four of the six tools follow a consistent get_* pattern (get_facility_group_list, get_sido_list, get_sigungu_list, get_time), which is clear and predictable. The remaining two tools (echo and search_youth_activities) deviate from this pattern, but the naming is still descriptive and readable.

    Tool Count4/5

    With 6 tools, the count is reasonable for a youth activity information server. It covers core data retrieval needs without being overwhelming. However, it feels slightly thin for a comprehensive domain, as it lacks update or management operations.

    Completeness3/5

    The toolset provides good read-only coverage for querying youth activities, facilities, and administrative regions, but it is incomplete. There are no tools for creating, updating, or deleting activities or facilities, which limits agents to retrieval-only workflows and may cause dead ends in more complex tasks.

    Related MCP Connectors