Uses the .ENV system for configuration management, specifically for storing and accessing Naver API credentials securely.
Integrates with Naver's encyclopedia search API, allowing users to search for information in Naver's encyclopedia database with support for pagination and customizable result display.
Includes test suite integration with pytest for verifying the functionality of both the Naver API client and the MCP server components.
네이버 백과사전 검색 MCP 서버
네이버 백과사전 검색 API를 MCP(Model Context Protocol) 서버로 래핑한 프로젝트입니다.
기능
네이버 백과사전 검색 API 연동
stdin/stdout 모드 지원
HTTP 모드 지원
에러 처리 및 로깅
테스트 코드 포함
Related MCP server: Naver MCP Server
설치
1. 의존성 설치
2. 환경 변수 설정
.env 파일을 편집하여 네이버 API 키를 설정하세요:
사용법
쉬운 실행 방법 (권장)
직접 실행 방법
API 키 발급
네이버 개발자 센터에 접속
애플리케이션 등록
검색 API 사용 권한 설정
클라이언트 아이디와 시크릿 발급
테스트
프로젝트 구조
MCP 함수
search_encyclopedia
네이버 백과사전에서 검색어로 관련 정보를 검색합니다.
파라미터:
query(string, 필수): 검색할 키워드display(integer, 선택): 한 번에 표시할 검색 결과 개수 (기본값: 10, 최대: 100)start(integer, 선택): 검색 시작 위치 (기본값: 1, 최대: 1000)
응답:
오류 처리
서버는 다음과 같은 오류 상황을 처리합니다:
네이버 API 오류 (SE01, SE02, SE03 등)
네트워크 오류
설정 오류 (API 키 미설정)
예상치 못한 오류
오류 응답 형식:
라이선스
MIT License