Google Image Search
БесплатноНе проверенProvides tools for searching and downloading images using Google Image Search API.
Описание
Provides tools for searching and downloading images using Google Image Search API.
README
A Python-based MCP (Model Context Protocol) server that provides tools for searching and downloading images using Google Image Search.
Features
- Search for images using Google Image Search API
- Download images to local storage
Installation
- Clone the repository
- Install uv (just once, if needed)
- Create a virtual environment: (just once)
uv venv - Activate the virtual environment:
Linux/macOS:
source .venv/bin/activate
Windows:
.venv\Scripts\activate
- Install dependencies:
Linux/macOS:
uv pip install -r requirements.txt
Windows:
uv pip install -r requirements.txt
- Create a
.envfile with your SerpAPI key: (Get your key here: https://serpapi.com/dashboard)SERP_API_KEY=your_api_key_here
Usage
You can either run the server:
uv run main.py
or test the MCP server with inspector:
npx @modelcontextprotocol/inspector uv run main.py
Run the server:
uv run main.py
In VSCode, add this MCP server configuration to your mcp-servers.json file:
{
"servers": {
"search-images": {
"command": "uv",
"args": [
"--directory",
"C:\\Users\\YOURUSERNAME\\google-image-search-mcp-python",
"run",
"main.py"
]
}
}
}
The server provides the following tools:
search_images_tool: Search for images using Google Image Search- Parameters:
query: The search query for finding imageslimit: Maximum number of results to return (default: 10)
- Parameters:
download_image_tool: Download an image to a local directory- Parameters:
image_url: URL of the image to downloadoutput_path: Directory path where the image should be savedfilename: Filename for the downloaded image (including extension)
- Parameters:
Examples
Prompt:
use your search images tool to search for 5 images about "cute cats" and download the best one in ./gatitos/
Code
# Search for images
results = await search_images_tool("cute puppies", limit=5)
# Download an image
saved_path = await download_image_tool(
image_url="https://example.com/image.jpg",
output_path="./images",
filename="puppy.jpg"
)
Error Handling
The tools provide detailed error messages when something goes wrong. All errors are logged to stderr and returned in a structured format with an isError flag.
Dependencies
- mcp-server: For MCP server functionality
- python-dotenv: For environment variable management
- aiohttp: For async HTTP requests
Установка Google Image Search
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/juananpe/google-image-search-mcp-pythonFAQ
Google Image Search MCP бесплатный?
Да, Google Image Search MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Google Image Search?
Нет, Google Image Search работает без API-ключей и переменных окружения.
Google Image Search — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Google Image Search в Claude Desktop, Claude Code или Cursor?
Открой Google Image Search на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Omni Video
An MCP server that transforms LLM-enabled IDEs into professional video editors by pre-processing footage into text proxies, generating motion graphics via HTML/
автор: buildwithtazaARA
Generate images, video and audio from any AI agent — one connector.
автор: ARAYouTube
Transcripts, channel stats, search
автор: YouTubeEverArt
AI image generation using various models.
автор: modelcontextprotocolCompare Google Image Search with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории media
