Google Image Search MCP
Allows searching and downloading images using Google Image Search via SerpAPI.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Google Image Search MCPsearch for 5 images of golden retriever puppies"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: mcp-server-pexels
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/juananpe/google-image-search-mcp-python'
If you have feedback or need assistance with the MCP directory API, please join our Discord server