mcp-google-reverse-image
Integrates with Google Cloud Vision's Web Detection API to perform reverse image search from a local image file or public HTTPS image URL, returning pages containing the image, exact and partial matches, visually similar images, best-guess label, and detected web entities.
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.
mcp-google-reverse-image
MCP server for reverse image search via Google Cloud Vision's Web Detection API. Give it a local image file or a public HTTPS image URL; get back the pages on the web where the image appears, exact and partial matches, visually similar images, Google's best-guess label, and detected web entities — all from Google's live image index.
This is the real thing, not text-matching on URLs: Vision's Web Detection is the same backend that powers Google Images' reverse search UI, exposed as a REST API.
Prerequisites
Node.js 18+
Google Cloud account with billing enabled (required even for the free tier)
Related MCP server: AI Vision MCP Server
Google Cloud API key setup
Go to console.cloud.google.com and create or select a project.
Enable billing on the project: Billing → link a billing account. This is required even to use the free tier.
Enable the Cloud Vision API: APIs & Services → Library → search "Cloud Vision API" → Enable.
Create an API key: APIs & Services → Credentials → Create credentials → API key.
Restrict the key (recommended): click the key → API restrictions → Restrict key → select Cloud Vision API only.
Leave Application restrictions at None or IP addresses. Do NOT use HTTP referrers — stdio MCP servers send no referrer and your calls will be rejected.
Copy the
AIza…string and set it asGOOGLE_VISION_API_KEYin your MCP client config.
Pricing
Free tier: 1000 Web Detection calls per month, every month.
Beyond that: $3.50 per 1000 calls.
See Cloud Vision pricing for the full breakdown.
Billing must still be enabled on the project even if you stay entirely within the free tier.
Installation
1. Set your API key in the environment
The server reads GOOGLE_VISION_API_KEY from the process environment. Set it once in your shell/OS so every MCP client inherits it automatically.
Windows (PowerShell, persistent):
[Environment]::SetEnvironmentVariable("GOOGLE_VISION_API_KEY", "AIza...", "User")Then restart your terminal (and your MCP client) so the new variable is picked up.
Windows (cmd, persistent):
setx GOOGLE_VISION_API_KEY "AIza..."macOS / Linux (bash/zsh):
echo 'export GOOGLE_VISION_API_KEY="AIza..."' >> ~/.bashrc # or ~/.zshrc
source ~/.bashrc2. Add to your MCP client config
{
"mcpServers": {
"google-reverse-image": {
"command": "npx",
"args": ["-y", "github:lawriec/mcp-google-reverse-image"]
}
}
}No env block is needed — the server inherits GOOGLE_VISION_API_KEY from the parent process. If you'd rather scope the key per-project instead of globally, you can still pass it explicitly via an env entry.
The prepare script builds the TypeScript on install, so the first launch is slightly slower while tsc runs. Subsequent launches are instant.
Tool reference
reverse_image_search
Parameter | Type | Required | Description |
| string | one of | Absolute path to a local image file. Max 7 MB. |
| string | one of | Public HTTPS URL of an image. Google fetches it server-side. |
| number | no | Max items shown per result section. Default 20, range 1-50. |
Exactly one of file_path or image_url must be provided.
Example output:
Reverse image search results for: Mona_Lisa.jpg
Best guess: "Mona Lisa"
Summary: 4 exact match(es), 18 partial match(es), 52 page(s), 20 similar, 12 entities.
Pages containing this image (showing 20 of 52):
- https://en.wikipedia.org/wiki/Mona_Lisa — "Mona Lisa - Wikipedia"
- https://www.louvre.fr/en/explore/the-palace/mona-lisa — "Mona Lisa | Louvre Museum"
...
Exact matches (4):
- https://upload.wikimedia.org/.../Mona_Lisa.jpg
...
Web entities (12):
- Mona Lisa (0.95)
- Leonardo da Vinci (0.87)
- Louvre (0.82)
...Supported formats
Format | Supported | Notes |
JPEG | ✓ | |
PNG | ✓ | |
GIF | ✓ | Vision uses the first frame of animated GIFs |
BMP | ✓ | |
WebP | ✓ | |
TIFF | ✓ | |
ICO | ✓ | |
SVG | ✗ | Pre-rejected. Convert to PNG or JPEG first. |
HEIC / HEIF | ✗ | Pre-rejected. Convert to JPEG first. |
Size limit
Local files must be ≤ 7 MB. Vision's JSON payload ceiling is 10 MB, and base64 encoding adds ~33% overhead. Larger files are rejected with a clear error and a resize hint.
Resize quickly with one of:
# ffmpeg (any format → JPEG, max 2000px wide)
ffmpeg -i input.jpg -vf scale=2000:-1 resized.jpg
# ImageMagick
magick input.jpg -resize 2000x2000 resized.jpgThe image_url path has no size limit on your side — Google fetches the image directly, subject to its own limits.
Environment variables
Variable | Required | Default | Description |
| yes | — | Your Cloud Vision API key. |
| no |
| Request timeout in milliseconds. |
Troubleshooting
Symptom | Cause | Fix |
| Env var not set | Set it in your MCP client config under |
HTTP 403, "API key rejected" | Key wrong, API not enabled, or HTTP-referrer restriction | Verify key, enable Cloud Vision API, remove HTTP-referrer restrictions |
HTTP 403, "quota exceeded" | Used your 1000 free calls | Wait until next month, or confirm billing is enabled |
| Google couldn't fetch the URL | Verify the URL returns an image directly (no login, redirects, or CORS) |
| iPhone photos | Convert to JPEG first |
| Local file too large | Resize with |
License
MIT
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
Run AI-powered analysis on images including moderation, captioning, tagging, and more.
Google Web Search: Google Web Search API. Search the world’s information, including webpages.
Analyze images and videos with Gemini to get fast, reliable visual insights. Handle content from U…
Search over 1.85 million captioned images using text, a reference image, or both. Upload a JPEG, PNG, or WebP image as base64, or provide a public HTTPS image URL. Find similar images from a Lightdrift asset ID and retrieve hosted file URLs, source licenses, and attribution. Connect with OAuth or an API key. Searches cost $0.005 ($5 per 1,000); image details are free. Setup: https://docs.lightdrift.ai/guides/images-mcp
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides AI-powered image analysis and OCR capabilities using the Kolosal Vision API. Supports analyzing images from URLs, local files, or base64 data with natural language queries for object detection, scene description, text extraction, and visual assessment.16 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI-powered image and video analysis using Google Gemini and Vertex AI models. Supports analyzing single or multiple images, detecting objects with bounding boxes, and video content analysis through natural language prompts.662 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables reverse image search using Yandex via Apify, returning structured JSON with matching pages, similar images, and more.1-
- FlicenseNot gradedqualityAmaintenanceEnables users to perform AI-powered web searches and analyze images from URLs or local files through MCP clients, returning structured search results and image insights for coding workflows.-