VG

virul360/google-image-search-mcp

API development

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

20 stars 5 forks 品質 46 トレンド 23ISC

An MCP server for Google Image Search integration

概要

This MCP (Model Context Protocol) server provides Google Image Search functionality through the SerpAPI. It allows AI assistants to search for images and analyze the results to find the most relevant ones based on specific criteria. - Search for images with Google Image Search - Download images to a local directory - Analyze search results based on relevance criteria Create a .env file with your SerpAPI key (you can copy from .env.example): You can get a SerpAPI key by signing up at serpapi.com. Search for images using Google Image Search. - query (string): The search query for finding images - limit (number, optional): Maximum number of results to return (default: 10) - imageUrl (string): URL of the image to download - outputPath (string): Directory path where the image should be saved - filename (string): Filename for the downloaded image (including extension) Analyze image search results to find the most relevant ones.

README

Google Image Search MCP Server

This MCP (Model Context Protocol) server provides Google Image Search functionality through the SerpAPI. It allows AI assistants to search for images and analyze the results to find the most relevant ones based on specific criteria.

Features

  • Search for images with Google Image Search
  • Download images to a local directory
  • Analyze search results based on relevance criteria

Installation

npm install

Configuration

Create a .env file with your SerpAPI key (you can copy from .env.example):

SERP_API_KEY=your_serp_api_key_here

You can get a SerpAPI key by signing up at serpapi.com.

Usage

Building

npm run build

Running

npm start

Development

npm run dev

Available Tools

search_images

Search for images using Google Image Search.

Parameters:

  • query (string): The search query for finding images
  • limit (number, optional): Maximum number of results to return (default: 10)

download_image

Download an image to a local directory.

Parameters:

  • imageUrl (string): URL of the image to download
  • outputPath (string): Directory path where the image should be saved
  • filename (string): Filename for the downloaded image (including extension)

analyze_images

Analyze image search results to find the most relevant ones.

Parameters:

  • searchResults (array): Array of image search results to analyze
  • criteria (string): Criteria for selecting the best images (e.g., ‘professional’, ‘colorful’, etc.)

License

ISC

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →