PP

pfldy2850/py-mcp-naver

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

115 stars 19 forks 质量 57 趋势 0MIT

pfldy2850/py-mcp-naver 是从 https://github.com/pfldy2850/py-mcp-naver. 导入的 MCP 服务器候选

概览

pfldy2850/py-mcp-naver 是从 https://github.com/pfldy2850/py-mcp-naver. 导入的 MCP 服务器候选

概述(AI 翻译)

使用 Model Context 协议(MCP)实现 Naver OpenAPI 的服务器。该项目提供与各种 Naver 服务交互的工具,如搜索博客、新闻、书籍等。

先修课

要使用 Naver MCP 服务器,你需要申请访问 Naver Open API。 您可以通过以下链接申请开放API访问:

https://developers.naver.com/apps/#/register=datalab

安装

来自 PyPi(Claude 桌面版)

用 (UV) 安装到 Claude 桌面:

通过以下方式安装到 Claude 桌面:

来自 PyPi(光标)

用 (uv) 安装到光标上:

来自源头

运行方式如下:

该工具会设置所有你需要的,以便与Naver OpenAPI集成创建MCP服务器。

特色

该服务器提供以下工具用于与 Naver OpenAPI 交互:

  • 博客搜索:在Naver上搜索博客文章。
  • 新闻搜索:在Naver上搜索新闻文章。
  • 图书搜索:搜索图书及高级图书信息。
  • 成人内容检查:检查搜索词是否为成人内容。
  • 百科全书检索:搜索百科全书条目。
  • 咖啡馆文章搜索:搜索Naver咖啡馆的文章。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Naver MCP Server

A server implementation for Naver OpenAPI using the Model Context Protocol (MCP). This project provides tools to interact with various Naver services, such as searching blogs, news, books, and more.

Pre-requisite

To use the Naver MCP server, you need to apply for access to the Naver Open API. You can apply for Open API access at the link below:

https://developers.naver.com/apps/#/register=datalab

Installation

from PyPi (Claude Desktop)

Install it to Claude Desktop with (uv):

uv pip install mcp-naver

uv run python -m mcp-naver.hosts.claude_desktop \
  -e NAVER_CLIENT_ID= \
  -e NAVER_CLIENT_SECRET=

Install it to Claude Desktop with:

pip install mcp-naver

python -m mcp-naver.hosts.claude_desktop \
  -e NAVER_CLIENT_ID= \
  -e NAVER_CLIENT_SECRET=

from PyPi (Cursor)

Install it to Cursor with (uv):

uv pip install mcp-naver

uv run python -m mcp-naver.hosts.cursor \
  -e NAVER_CLIENT_ID= \
  -e NAVER_CLIENT_SECRET=

from source

# Clone the repository
git clone https://github.com/pfldy2850/py-mcp-naver.git

# Navigate into the project directory
cd py-mcp-naver

# Synchronize dependencies
uv sync --dev --all-extras

Run it with:

# Start the server (Using FastMCP CLI)
fastmcp install mcp_naver/server.py -e NAVER_CLIENT_ID= -e NAVER_CLIENT_SECRET=

The tool sets up everything you need to create an MCP server integrated with Naver OpenAPI.

Features

This server provides the following tools for interacting with Naver OpenAPI:

  • Blog Search: Search blog posts on Naver.
  • News Search: Search news articles on Naver.
  • Book Search: Search books and advanced book information.
  • Adult Content Check: Check if a search term is adult content.
  • Encyclopedia Search: Search encyclopedia entries.
  • Cafe Article Search: Search articles in Naver cafes.
  • Q&A Search: Search questions and answers on Naver.
  • Local Search: Search local information.
  • Spelling Correction: Correct spelling errors in text.
  • Web Search: Search web pages.
  • Image Search: Search images with filters.
  • Shopping Search: Search shopping items with filters.
  • Document Search: Search documents.

The following tools are implemented in the server:

Search blog posts on Naver.

search_blog(query: str, display: int = 10, start: int = 1, sort: str = "sim")

Search news articles on Naver.

search_news(query: str, display: int = 10, start: int = 1, sort: str = "sim")

Search books on Naver.

search_book(query: str, display: int = 10, start: int = 1, sort: str = "sim")

Get detailed book information using title or ISBN.

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →