Skip to main content
Glama

Google Search MCP Server

バージョン2.0が登場!!

ニュース - 新しい「KiCAD MCP サーバー」が登場しました。この「Google Search MCP サーバー」と組み合わせると強力なコンビになります。

https://github.com/mixelpixx/KiCAD-MCP-Server

Google 検索 MCP サーバー

Google検索機能とウェブページコンテンツ分析ツールを提供するMCP(Model Context Protocol)サーバー。このサーバーにより、AIモデルはGoogle検索を実行し、ウェブページコンテンツをプログラムで分析できるようになります。

特徴

  • Googleカスタム検索の統合
  • 高度な検索機能(フィルター、並べ替え、ページ区切り、分類)
  • 複数の形式(マークダウン、HTML、プレーンテキスト)でのウェブページコンテンツ分析
  • バッチウェブページ分析
  • 結果の分類と分類
  • コンテンツの要約
  • 最適化された、人間が読める応答
  • MCP準拠インターフェース

前提条件

  • Node.js (v16 以上)
  • Google Cloud Platform アカウント
  • カスタム検索エンジンID
  • Google APIキー

インストール

  1. リポジトリをクローンする
  2. Node.js の依存関係をインストールします。
npm install
  1. TypeScript コードをビルドします。
npm run build

構成

  1. Google API 認証情報の環境変数を設定します。

これらをシステム環境変数として設定するか、MCP 設定ファイルで構成することができます。

必要な環境変数:

  • GOOGLE_API_KEY : Google APIキー
  • GOOGLE_SEARCH_ENGINE_ID : カスタム検索エンジンID
  1. サーバー構成を MCP 設定ファイル (通常は%APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonにあります) に追加します。
{ "mcpServers": { "google-search": { "autoApprove": [ "google_search", "extract_webpage_content", "extract_multiple_webpages" ], "disabled": false, "timeout": 60, "command": "node", "args": [ "/path/to/google-search-mcp-server/dist/google-search.js" ], "env": { "GOOGLE_API_KEY": "your-google-api-key", "GOOGLE_SEARCH_ENGINE_ID": "your-custom-search-engine-id" }, "transportType": "stdio" } } }

ランニング

MCP サーバーを起動します。

npm run start

利用可能なツール

Googleで検索し、ウェブから関連する結果を返します。このツールは、Googleの検索エンジンを使用して、特定のトピックに関するウェブページ、記事、情報を検索します。

{ "name": "google_search", "arguments": { "query": "your search query", "num_results": 5, // optional, default: 5 "site": "example.com", // optional, limit results to specific website "language": "en", // optional, filter by language (ISO 639-1 code) "dateRestrict": "m6", // optional, filter by date (e.g., "m6" for last 6 months) "exactTerms": "exact phrase", // optional, search for exact phrase "resultType": "news", // optional, specify type (news, images, videos) "page": 2, // optional, page number for pagination (starts at 1) "resultsPerPage": 10, // optional, results per page (max: 10) "sort": "date" // optional, sort by "date" or "relevance" (default) } }

回答には以下が含まれます:

  • タイトル、リンク、スニペットを読みやすい形式で表示した検索結果
  • ページネーション情報(現在のページ、合計結果など)
  • 結果のカテゴリ(自動検出)
  • ページネーションのナビゲーションヒント

2. ウェブページのコンテンツを抽出する

ウェブページからコンテンツを抽出・分析し、読みやすいテキストに変換します。このツールは、広告、ナビゲーション要素、その他の不要な要素を削除しながら、メインコンテンツのみを取得します。

{ "name": "extract_webpage_content", "arguments": { "url": "https://example.com", "format": "markdown" // optional, format options: "markdown" (default), "html", or "text" } }

回答には以下が含まれます:

  • ウェブページのタイトルと説明
  • コンテンツ統計(単語数、文字数)
  • コンテンツの概要
  • コンテンツのプレビュー(最初の500文字)

3. 複数のウェブページを抽出する

複数のウェブページからコンテンツを抽出し、単一のリクエストで分析します。異なるソース間で情報を比較したり、特定のトピックに関する包括的な情報を収集したりするのに最適です。

{ "name": "extract_multiple_webpages", "arguments": { "urls": [ "https://example1.com", "https://example2.com" ], "format": "html" // optional, format options: "markdown" (default), "html", or "text" } }

回答には以下が含まれます:

  • 各ウェブページのタイトルと説明
  • 各ウェブページのコンテンツ統計
  • 各ウェブページのコンテンツ概要
  • 各ウェブページのコンテンツプレビュー(最初の150文字)

Google API認証情報の取得

  1. Google Cloud Consoleにアクセスします
  2. 新しいプロジェクトを作成するか、既存のプロジェクトを選択してください
  3. カスタム検索APIを有効にする
  4. API 認証情報 (API キー) を作成する
  5. カスタム検索エンジンのページに移動します
  6. 新しい検索エンジンを作成し、��索エンジンIDを取得します
  7. これらの資格情報をMCP設定ファイルに追加するか、環境変数として設定します。

エラー処理

サーバーは、次の詳細なエラー メッセージを提供します。

  • API 認証情報が見つからないか無効です
  • 失敗した検索リクエスト
  • 無効なウェブページのURL
  • ネットワーク接続の問題

建築

このサーバーはTypeScriptで構築されており、MCP SDKを使用して、AIモデルがGoogle検索やウェブページコンテンツ分析ツールと連携するための標準化されたインターフェースを提供します。このサーバーは、主に以下の2つのサービスで構成されています。

  1. GoogleSearchService : 検索機能のための Google API のやり取りを処理します
  2. ContentExtractor : ウェブページのコンテンツ分析と抽出を管理します

サーバーはキャッシュ メカニズムを使用してパフォーマンスを向上させ、API 呼び出しを削減します。

ビルド版の配布

このツールのソース コードではなくビルド バージョンのみを配布する場合は、次の手順に従ってください。

  1. TypeScript コードをビルドします。
npm run build
  1. 必要なファイルのみを含む配布パッケージを作成します。
# Create a distribution directory mkdir -p dist-package # Copy the compiled JavaScript files cp -r dist dist-package/ # Copy package files (without dev dependencies) cp package.json dist-package/ cp README.md dist-package/ # Create a simplified package.json for distribution node -e "const pkg = require('./package.json'); delete pkg.devDependencies; delete pkg.scripts.build; delete pkg.scripts.dev; pkg.scripts.start = 'node dist/google-search.js'; require('fs').writeFileSync('dist-package/package.json', JSON.stringify(pkg, null, 2));"
  1. ユーザーはビルドされたバージョンをインストールして実行できます。
# Install production dependencies only npm install --production # Start the server npm start

このアプローチにより、TypeScriptのソースコードを公開することなく、コンパイルされたJavaScriptファイルを配布できます。ただし、ユーザーは以下の手順を実行する必要があります。

  1. Google API 認証情報を環境変数として設定する
  2. サーバー構成をMCP設定ファイルに追加する
  3. 本番環境の依存関係をインストールする

配布版の package.json には、本番環境の依存関係と簡略化されたスクリプト セットのみが含まれることに注意してください。

ライセンス

マサチューセッツ工科大学

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Google検索機能とウェブページコンテンツ分析ツールを提供するMCP(Model Context Protocol)サーバー。このサーバーにより、AIモデルはGoogle検索を実行し、ウェブページコンテンツをプログラムで分析できるようになります。

  1. ニュース - 新しい「KiCAD MCP サーバー」が登場しました。この「Google Search MCP サーバー」と組み合わせると強力なコンビになります。
    1. Google 検索 MCP サーバー
      1. 特徴
      2. 前提条件
      3. インストール
      4. 構成
      5. ランニング
      6. 利用可能なツール
      7. Google API認証情報の取得
      8. エラー処理
      9. 建築
      10. ビルド版の配布
      11. ライセンス

    Related MCP Servers

    • -
      security
      F
      license
      -
      quality
      A specialized Model Context Protocol (MCP) server that integrates Google services (Gmail, Calendar, etc.) into your AI workflows. This server enables seamless access to Google services through MCP, allowing AI agents to interact with Gmail, Google Calendar, and other Google services.
      Last updated -
      10
      3
      TypeScript
    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol (MCP) based search API server that provides standardized access to Google Maps, Google Flights, Google Hotels and other services. This server enables AI assistants to access various search services through a unified interface.
      Last updated -
      57
      Python
      MIT License
      • Apple
    • -
      security
      A
      license
      -
      quality
      Model Context Protocol (MCP) server that provides AI assistants with advanced web research capabilities, including Google search integration, intelligent content extraction, and multi-source synthesis.
      Last updated -
      27
      2
      TypeScript
      MIT License
    • -
      security
      F
      license
      -
      quality
      An MCP Server that provides access to Google's Search Console API, allowing users to interact with website search performance data and manage search presence through natural language.
      Last updated -
      Python

    View all related MCP servers

    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/mixelpixx/Google-Search-MCP-Server'

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