Google Search MCP Server

by renoscriptdev
Verified

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.

Integrations

  • Uses environment variables to securely store and load Google API credentials and Custom Search Engine IDs for authentication.

  • Provides Google Custom Search functionality, allowing AI agents to search the web through Google's search engine API and retrieve search results programmatically.

  • Integrates with Google Cloud's Custom Search API, enabling access to customized search experiences with specific search engine configurations.

Google 検索 MCP サーバー

Google カスタム検索機能を提供するモデル コンテキスト プロトコル (MCP) サーバー。

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の google-search-mcp-server を自動的にインストールするには:

npx -y @smithery/cli install @gradusnikov/google-search-mcp-server --client claude

手動インストール

  1. リポジトリをクローンします。
git clone https://github.com/gradusnikov/google-search-mpc-server.git cd google-search-mpc-server
  1. 依存関係をインストールします:
pip install fastmcp google-api-python-client python-dotenv

構成

次の変数を含む.envファイルをプロジェクト ルートに作成します。

GOOGLE_API_KEY=your_google_api_key GOOGLE_CSE_ID=your_custom_search_engine_id

これらの資格情報を取得するには:

  1. Google Cloud プロジェクトを作成し、カスタム検索 API を有効にする
  2. Google Cloud Console から API キーを生成する
  3. https://cse.google.com/cse/allでカスタム検索エンジンを作成し、ID を取得します。

使用法

MCP を使用してサーバーを起動します。

mcp run google_search_mcp_server.py

または、Claude DesktopアプリのCLAUDE_DIRECTORY/claude_desktop_config.jsonにサーバーを追加します。例えば、Windows Subsystem for Linux(WSL)を使用している場合は、以下のようになります。

"google-search": { "command": "wsl.exe", "args": [ "bash", "-c", "source /home/[user]/anaconda3/etc/profile.d/conda.sh && conda activate mcp && /home/[user]/anaconda3/bin/mcp run /home/[user]/google-search-mpc-server/google_search_mcp_server.py" ] },
-
security - not tested
F
license - not found
-
quality - not tested

Claude が Google の検索 API に接続して Google カスタム検索操作を実行できるようにするモデル コンテキスト プロトコル サーバー。

  1. Installation
    1. Installing via Smithery
    2. Manual Installation
  2. Configuration
    1. Usage
      ID: zu75yt6gng