Google Images Search logo

Google Images Search

Community
srigi

MCP server for searching images with Google

Publishersrigi
Repositorymcp-google-images-search
LanguageTypeScript
Forks
5
Stars
13
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Google Images Search exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    13 stars and 5 forks from the linked repository.

🖼️ Google Images Search MCP

Search. See. Save. – The only MCP that shows Google Images results directly in your chat as actual images, not just links!

Unlike other tools that return text descriptions or links, this MCP displays search results as actual images in your conversation. Works with Cline and Windsurf.

Perfect for getting visual inspiration, finding assets for projects, or quickly browsing images without leaving your IDE.

Demo

Demo

Usage & Requirements

Requirements

  • Node.js v20+
  • Google Cloud Platform account (free tier sufficient)
  • Compatible IDE: Cline or Windsurf

Setup Guide

Follow these steps to set up this MCP:

Step 1: create Google Custom search engine

  1. Go to Google Programmable Search Engine
  2. Click "Add" to create a new search engine
  3. In "Sites to search", enter * (asterisk) to search the entire web
  4. Give your search engine a name (e.g., "My Image Search")
  5. In the search engine settings, enable "Image search" option
  6. Click "Create"
  7. Copy the Search engine ID - you'll need this for configuration

Step 2: Get Google API Key

  1. Go to Google Cloud Console API Credentials
  2. If you don't have a project, create one
  3. Click "+ CREATE CREDENTIALS" → "API key"
  4. Copy the generated API key
  5. (Optional) Restrict the API key to "Custom Search API" for security

Step 3: Configure MCP in Your IDE

Add the following configuration to your MCP settings:

json
{
  "mcpServers": {
    "googleImagesSearch": {
      "command": "npx",
      "args": ["-y", "@srigi/mcp-google-images-search"],
      "env": {
        "API_KEY": "your-google-api-key-here",
        "SEARCH_ENGINE_ID": "your-search-engine-id-here"
      },
      "autoApprove": ["search_image", "persist_image"]
    }
  }
}

Replace your-google-api-key-here and your-search-engine-id-here with the values from steps 1 and 2.

Usage Example

Here's how to use the MCP once configured:

  1. Search for images: Ask your AI assistant to search for images

    Find 5 images of F-22
  2. Get more results: Request additional search results

    Find 5 more images
  3. Save an image: Ask to save a specific result to your project

    Save the 3rd image to the "assets" folder

The MCP will display the search results as actual images in your chat history, and you can easily save any of them to your local project directory.

🚀 Development

Want to contribute? Great! Quality contributions are welcomed.

Requirements: Node.js v20+, direnv, PNPM v10

Quick start:

  1. Copy .envrc (example) to .envrc and add your Google API credentials
  2. Run pnpm install && pnpm dev
  3. Update your MCP configuration for development:
json
{
  "mcpServers": {
    "googleImagesSearch": {
      "command": "node",
      "args": ["/absolute/path/to/project/src/index.js", "--debug", "--pretty-print"],
      "env": {
        "API_KEY": "your-google-api-key-here",
        "SEARCH_ENGINE_ID": "your-search-engine-id-here"
      },
      "autoApprove": ["search_image", "persist_image"]
    }
  }
}

Debug and logging options:

  • No --debug flag provided - logging is disabled
  • --debug without argument - enable logging into debug.log in current working directory the running MCP
  • --debug /absolute/path/to/debug.log - enable logging and write logs to the specified absolute path
  • --pretty-print - Format logs for better readability (formatted JSON output)

note: only absolute path is allowed when providing a path to --debug. Relative paths will cause the server to exit with an error!

Writing TypeScript code:

The pnpm dev auto-recompile all changes to .ts files. But you must reload your MCP server manually for changes to be reflected in your IDE.

Use pnpm dev:inspector for interactive testing in the browser.

🛠️ Available Tools

🔍 search_image - Find images using Google's vast database

  • query (required) - What you're looking for
  • count (1-10, default: 2) - How many results
  • safe ('off'/'medium'/'high') - Filter level
  • startIndex - For pagination

💾 persist_image - Download and save images to your project

  • url (required) - Image URL to download
  • targetPath (required) - Where to save it (folder or full path)

Security features: Path validation, MIME type checking, 10MB size limit, supports all major image formats (JPEG, PNG, GIF, WebP, SVG, etc.)


🔗 Links: GitHub • NPM • Issues

Use Google Images Search MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Google Images Search is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Google Images Search as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Google Images Search MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "mcp-google-images-search": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Google Images Search MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Google Images Search MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Google Images Search to help me with this task?
Google Images Search
Sure. I read it.
Here is what I found using Google Images Search.

Frequently asked questions

What is the Google Images Search MCP server used for?

Google Images Search is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Google Images Search MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Google Images Search with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Google Images Search MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Google Images Search connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Google Images Search MCP to TypingMind?

Google Images Search runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Google Images Search MCP provide in TypingMind?

Google Images Search exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Google Images Search MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Google Images Search requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇