npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

naver-datalab-mcp-server

v1.1.2

Published

네이버 데이터랩 API MCP 서버 구현

Readme

네이버 데이터랩 MCP 서버

이 프로젝트는 네이버 데이터랩 API를 Model Context Protocol(MCP) 인터페이스로 제공하는 서버입니다.

기능

검색어 트렌드

  • 네이버 데이터랩 통합 검색어 트렌드 API 제공
  • 검색어 그룹별 트렌드 조회 (최대 5개 그룹, 그룹당 최대 5개 검색어)
  • 기간, 성별, 연령대, 디바이스 기준 필터링 지원

쇼핑인사이트

  • 쇼핑 분야별 트렌드 조회 기능 (최대 3개 분야)
  • 특정 쇼핑 분야 내 키워드별 트렌드 조회 기능 (최대 3개 키워드)
  • 기간, 성별, 연령대, 디바이스 기준 필터링 지원

설치

npm을 통한 설치

npm install -g naver-datalab-mcp-server

소스코드로 설치

# 저장소 클론
git clone https://github.com/sonhyeonho/naver-data-lab-mcp-server.git
cd naver-data-lab-mcp-server

# 의존성 설치 및 빌드
npm install
npm run build

개발 환경 설정

환경 변수 설정

.env 파일을 생성하고 다음 내용을 추가합니다:

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

# .env 파일을 열고 다음 내용을 수정
NAVER_CLIENT_ID=your_naver_client_id_here
NAVER_CLIENT_SECRET=your_naver_client_secret_here

개발 서버 실행

# 개발 모드로 실행
npm run dev

# 빌드
npm run build

# 실행
npm start

API 사용 방법

검색어 트렌드 조회

{
  startDate: "2024-01-01",    // YYYY-MM-DD 형식
  endDate: "2024-01-31",      // YYYY-MM-DD 형식
  timeUnit: "date",           // "date" | "week" | "month"
  keywordGroups: [            // 최대 5개 그룹
    {
      groupName: "그룹1",
      keywords: ["검색어1", "검색어2"]  // 그룹당 최대 5개
    }
  ],
  device: "pc",              // 선택사항: "pc" | "mo" | ""
  gender: "f",               // 선택사항: "f" | "m" | ""
  ages: ["20", "30"]         // 선택사항: ["1"~"11"]
}

쇼핑인사이트 분야별 트렌드 조회

{
  startDate: "2024-01-01",
  endDate: "2024-01-31",
  timeUnit: "date",
  category: [                 // 최대 3개 분야
    {
      name: "패션의류",
      param: ["50000000"]     // 네이버 쇼핑 카테고리 코드
    }
  ],
  device: "pc",              // 선택사항
  gender: "f",               // 선택사항
  ages: ["20", "30"]         // 선택사항
}

쇼핑인사이트 키워드별 트렌드 조회

{
  startDate: "2024-01-01",
  endDate: "2024-01-31",
  timeUnit: "date",
  category: "50000000",      // 쇼핑 분야 코드
  keyword: [                 // 최대 3개 키워드
    {
      name: "키워드1",
      param: ["검색어1", "검색어2"]  // 최대 5개
    }
  ],
  device: "pc",              // 선택사항
  gender: "f",               // 선택사항
  ages: ["20", "30"]         // 선택사항
}

연령대 코드

  • "1": 0-12세
  • "2": 13-18세
  • "3": 19-24세
  • "4": 25-29세
  • "5": 30-34세
  • "6": 35-39세
  • "7": 40-44세
  • "8": 45-49세
  • "9": 50-54세
  • "10": 55-59세
  • "11": 60세 이상

API 참고 자료

MCP 서버 설정

MCP 서버 실행

npx -y naver-datalab-mcp-server

MCP 설정 예시

{
  "naver-datalab": {
    "command": "npx",
    "args": [
      "-y",
      "naver-datalab-mcp-server"
    ],
    "env": {
      "NAVER_CLIENT_ID": "your_naver_client_id_here",
      "NAVER_CLIENT_SECRET": "your_naver_client_secret_here"
    }
  }
}

시스템 요구사항

  • Node.js >= 18.0.0

라이선스

MIT