Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Provides tools for searching and downloading images using Google Image Search API.

README.md

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

Installation

  1. Clone the repository
  2. Install uv _(just once, if needed)_
  3. Create a virtual environment: _(just once)_
   uv venv
  1. Activate the virtual environment:

Linux/macOS:

source .venv/bin/activate

Windows:

.venv\Scripts\activate
  1. Install dependencies:

Linux/macOS:

uv pip install -r requirements.txt

Windows:

uv pip install -r requirements.txt
  1. Create a .env file 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:

  1. search_images_tool: Search for images using Google Image Search
  • Parameters:
  • query: The search query for finding images
  • limit: Maximum number of results to return (default: 10)
  1. download_image_tool: Download an image to a local directory
  • Parameters:
  • image_url: URL of the image to download
  • output_path: Directory path where the image should be saved
  • filename: 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

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.