LM

limklister/mcp-google-custom-search-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

47 stars 17 forks 품질 66 트렌드 13MIT

limklister/mcp-google-custom-search-server는 MCP 서버 후보자로 https://github.com/limklister/mcp-google-custom-search-server.]에서 가져온

개요

limklister/mcp-google-custom-search-server는 MCP 서버 후보자로 https://github.com/limklister/mcp-google-custom-search-server.]에서 가져온

개요(AI 번역)

Google의 Custom Search API를 통해 웹 검색 기능을 제공하는 Model Context Protocol (MCP) 서버. 이 서버는 표준화 된 인터페이스를 사용하여 웹 검색을 수행하는 언어 학습 모델 (LLMs)을 가능하게합니다.

의 특징

  • Google Custom Search API와 원활한 통합
  • 모델 Context Protocol (MCP) 호환 서버 구현
  • TypeScript를 이용한 Type-safe 구현
  • 환경변수 구성
  • Zod를 이용한 입력 검증
  • 구성 가능한 검색 결과 (최대 10 쿼리 당)
  • 제목, URL 및 설명을 포함한 검색 결과 포맷
  • 오류 처리 및 검증
  • Claude 데스크톱 및 기타 MCP 클라이언트와 호환

Pre Pre

시작하기 전에 다음을 수행하십시오.

  1. 사용자 정의 검색 API가있는 Google Cloud Project 활성화
  • Google Cloud 콘솔 방문
  • 사용자 정의 검색 API 사용
  • API 인증 생성
  1. 주문 검색 엔진 ID
  • 방문 풀그릴 수색 엔진
  • 새로운 검색 엔진 만들기
  • 검색 엔진 ID 받기
  1. 국부적으로 발달 필요조건:
  • Node.js (v18 이상)
  • npm ( Node.js와 함께 사용)

⭐ 빠른 시작

  1. 저장소를 복제:

  2. 의존성 설치:

  3. .env 파일을 만듭니다:

  4. 명세.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Google Custom Search Server

A Model Context Protocol (MCP) server that provides web search capabilities through Google’s Custom Search API. This server enables Language Learning Models (LLMs) to perform web searches using a standardized interface.

🌟 Features

  • Seamless integration with Google Custom Search API
  • Model Context Protocol (MCP) compliant server implementation
  • Type-safe implementation using TypeScript
  • Environment variable configuration
  • Input validation using Zod
  • Configurable search results (up to 10 per query)
  • Formatted search results including titles, URLs, and descriptions
  • Error handling and validation
  • Compatible with Claude Desktop and other MCP clients

📋 Prerequisites

Before you begin, ensure you have:

  1. A Google Cloud Project with Custom Search API enabled

  2. A Custom Search Engine ID

  3. Local development requirements:

    • Node.js (v18 or higher)
    • npm (comes with Node.js)

🚀 Quick Start

  1. Clone the repository:

    git clone https://github.com/limklister/mcp-google-custom-search-server.git
    cd mcp-google-custom-search-server
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file:

    GOOGLE_API_KEY=your-api-key
    GOOGLE_SEARCH_ENGINE_ID=your-search-engine-id
    
  4. Build the server:

    npm run build
    
  5. Start the server:

    npm start
    

🔧 Configuration

Environment Variables

Variable Description Required
GOOGLE_API_KEY Your Google Custom Search API key Yes
GOOGLE_SEARCH_ENGINE_ID Your Custom Search Engine ID Yes

Claude Desktop Integration

Add this configuration to your Claude Desktop config file (typically located at ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "google-search": {
      "command": "node",
      "args": [
        "/absolute/path/to/mcp-google-custom-search-server/build/index.js"
      ],
      "env": {
        "GOOGLE_API_KEY": "your-api-key",
        "GOOGLE_SEARCH_ENGINE_ID": "your-search-engine-id"
      }
    }
  }
}

📖 API Reference

Available Tools

Performs a web search using Google Custom Search API.

Parameters:

  • query (string, required): The search query to execute
  • numResults (number, optional): Number of results to return
    • Default: 5
    • Maximum: 10

Example Response:

Result 1:
Title: Example Search Result
URL: https://example.com
Description: This is an example search result description
---

Result 2:
...
GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector node build/index.js
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "google-search": { "command": "node", "args": [ "/absolute/path/to/mcp-google-custom-search-server/build/index.js" ], "env": { "GOOGLE_API_KEY": "your-api-key", "GOOGLE_SEARCH_ENGINE_ID": "your-search-engine-id" } } } }