Google Image Search MCP
Allows searching and downloading images using Google Image Search via SerpAPI.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Google Image Search MCP
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
Related MCP server: google-image-search-mcp
Installation
Clone the repository
Install uv (just once, if needed)
Create a virtual environment: (just once)
uv venvActivate the virtual environment:
Linux/macOS:
source .venv/bin/activateWindows:
.venv\Scripts\activateInstall dependencies:
Linux/macOS:
uv pip install -r requirements.txtWindows:
uv pip install -r requirements.txtCreate 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.pyor test the MCP server with inspector:
npx @modelcontextprotocol/inspector uv run main.pyRun the server:
uv run main.pyIn 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 SearchParameters:
query: The search query for finding imageslimit: Maximum number of results to return (default: 10)
download_image_tool: Download an image to a local directoryParameters:
image_url: URL of the image to downloadoutput_path: Directory path where the image should be savedfilename: Filename for the downloaded image (including extension)
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Google Images for any search: full-size image URL, width, height, file size, thumbnail, title and source page, with size, color, type, time and Creative Commons filters. Runs on Apify, $0.25 per 1,000 images.
Google Images results with source pages, thumbnails and full-resolution URLs, as JSON.
Download all images from any web page or extract image URLs, with sizes, formats and alt text.
Google Images results in bulk: image URLs, sizes, thumbnails, and source pages, via hosted MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides tools for web, image, generative search, and Wordstat keyword statistics via Yandex Search API.713 npm1MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to search, download, and analyze Google images via SerpAPI.34 npm20ISC
- AlicenseBqualityDmaintenanceEnables searching Google Custom Search Engine for images and saving them directly to the user's project directory.26 npm1MIT
- FlicenseAqualityBmaintenanceEnables AI agents to search for reference images using natural language queries, aggregate results from multiple image sources, and interactively select, refine, and download images through tool calls.4-