Skip to main content
Glama
addressSearchByPlaceName.ts777 B
import { z } from "zod"; import dotenv from "dotenv"; import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; dotenv.config(); export const addressSearchByPlaceNameSchema = { placeName: z.string(), }; export const addressSearchByPlaceNameHandler = async ({ placeName }: { placeName: string }): Promise<CallToolResult> => { const response = await fetch( `https://dapi.kakao.com/v2/local/search/keyword?query=${placeName}`, { method: "GET", headers: { "Content-Type": "application/json", Authorization: `KakaoAK ${process.env.KAKAO_REST_API_KEY}`, }, } ); const data = await response.json(); return { content: [{ type: "text", text: JSON.stringify(data), }], isError: false, }; };

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/CaChiJ/kakao-navigation-mcp-server'

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