Skip to main content
Glama
jikime

Naver Search MCP Server

search_cafe_article

Search for Naver cafe articles using keywords, with options to navigate pages and sort by relevance or date.

Instructions

Searches for cafe articles on Naver using the given keyword. The page parameter allows for page navigation and sort='sim'/'date' is supported.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
displayNo
pageNo
sortNosim

Implementation Reference

  • The async function implementing the search_cafe_article tool logic, which calculates pagination parameters, prepares API params, and delegates the API call and response formatting to the shared _make_api_call helper.
    async def search_cafe_article(query: str, display: int = 10, page: int = 1, sort: str = "sim") -> str: """ Searches for cafe articles on Naver using the given keyword. The page parameter allows for page navigation and sort='sim'/'date' is supported. Args: query (str): The keyword to search for display (int, optional): The number of results to display. Default is 10. page (int, optional): The starting page number. Default is 1. sort (str, optional): The sorting criteria. Default is "sim" (similarity). """ start = calculate_start(page, display) display = min(display, 100) params = {"query": query, "display": display, "start": start, "sort": sort} return await _make_api_call("cafearticle.json", params, CafeArticleResult, "Cafe Article")
  • server.py:454-457 (registration)
    The @mcp.tool decorator that registers the search_cafe_article tool with MCP, specifying its name and description.
    @mcp.tool( name="search_cafe_article", description="Searches for cafe articles on Naver using the given keyword. The page parameter allows for page navigation and sort='sim'/'date' is supported." )
  • Output schema definition: Pydantic-style model for parsing the Naver Cafe Article search API response, inheriting from SearchResultBase and containing a list of CafeArticleItem objects.
    class CafeArticleResult(SearchResultBase): items: List[CafeArticleItem]
  • Item schema for cafe articles: Extends DescriptionItem (which likely includes title, link, description) with cafe-specific fields cafename and cafeurl.
    class CafeArticleItem(DescriptionItem): cafename: Optional[str] = None cafeurl: Optional[str] = None

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/jikime/py-mcp-naver-search'

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