Image Comparison API MCP Server
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., "@Image Comparison API MCP ServerCompare two images for similarity."
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.
Image Comparison API: Score Image Similarity and Find Duplicate Images
Compare images by visual similarity and catch exact and near-duplicates, over a plain HTTP API. Give it one source image and a list of targets, and it returns one row per comparison with a similarity score, a duplicate verdict, and perceptual hash distances.
Runs on the Image Similarity API Actor on Apify. This repo shows two ways to call it: a Python quick start, and MCP install steps for five clients.

Text walkthrough
This image comparison API answers one question: how alike are these two pictures? You pass a sourceImage URL and a targetImages list, and every target comes back with a similarityScore between 0 and 1, an isSimilar flag measured against your threshold, and a plain-language verdict. Under the hood it runs two independent methods: a CLIP vision embedding, which understands content and still matches a photo that has been cropped, recoloured, or re-encoded, and perceptual hashing (pHash and dHash), which is cheap and catches byte-level near-duplicates. Set comparisonMode to embedding, phash, or both depending on which signal you want to pay for. The duplicate-detection path is what most people come for: point it at a list of URLs to find duplicate images online without downloading anything yourself. It is also the fastest way to compare two images for similarity when you need a number rather than an eyeball judgement, for example to compare screenshots against a baseline and flag a layout change.
Related MCP server: Vision MCP Server
Quick start
uv sync
cp .env.example .env # paste your Apify token into .env
uv run image-similarity-api-example.pyGet a free Apify API token at https://apify.com?fpr=9n7kx3 (Console, then Settings, then API & Integrations).
The example keeps every run small, one source against two or three targets, so your first run costs almost nothing. The Actor accepts up to 500 targets per run.
Recipes
Each of these is a published, ready-to-run example on the Apify Store. Open one, press Start, and read the output before you write any code.
The first three are implemented as functions in image-similarity-api-example.py, so you can run them locally as well.
Schedule tip: to watch for reuse of your own photography, save a run as a task with your image as sourceImage, then schedule it. Each run appends fresh comparison rows, so you get a dated trail rather than a single snapshot.
Input parameters
Parameter | Type | What it does |
| string | URL of the image everything is compared against. |
| array | Upload a source image instead of linking one. |
| array | The image URLs to compare against the source, up to 500. |
| string |
|
| number | Score above which |
| integer | Maximum hash distance still counted as a near-duplicate. |
| string | Your own identifier for the source, echoed back on every row. |
| string | Free-form label echoed on every row, handy for batch jobs. |
| object | Extra request headers, for images behind a referer check. |
| object | Proxy settings for hosts that block datacentre traffic. |
Output fields
One row per comparison.
Field | What it holds |
| Row kind, so you can separate comparisons from errors. |
| Position of this target in your input list. |
| The two images compared. |
| Your identifiers, echoed back. |
| Embedding similarity, 0 to 1. |
| Whether the score cleared your |
| Perceptual hash distances, lower is closer. |
| Whether hash distance cleared |
| Plain-language summary of the match. |
| Which signals ran, and the model used. |
| Why a target could not be compared. |
| Timestamp for the comparison. |
Install in Claude Cowork Desktop

Cowork is the desktop app's automation mode. To give it the image comparison API as a tool, add the Apify MCP server as a connector.
Open the Claude desktop app and go to Settings > Connectors (or Settings > Developer > Edit Config to edit
claude_desktop_config.jsondirectly).macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Add the Apify MCP server, preloaded with only this Actor:
{
"mcpServers": {
"apify": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-api"
]
}
}
}Restart the app. When Cowork first calls the tool, complete the OAuth prompt in your browser, or add your Apify API token in the connector settings to skip OAuth.
In a Cowork chat, confirm the tool is available and ask it to run the image comparison API.
Download the desktop app and start a free trial: https://claude.ai/referral/uIlpa7nPLg More help: https://docs.apify.com/platform/integrations/claude-desktop
Install in Claude Code

Claude Code is the command-line tool. Add the Actor's MCP server with one command:
claude mcp add --transport http apify \
"https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-api"To use a token instead of browser OAuth:
claude mcp add --transport http apify \
"https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-api" \
--header "Authorization: Bearer YOUR_APIFY_TOKEN"Then verify with claude mcp list, or run /mcp inside a session. Ask Claude Code to call the image comparison API.
Try Claude Code free: https://claude.ai/referral/uIlpa7nPLg Claude Code MCP docs: https://code.claude.com/docs/en/mcp
Install in Claude (website)

On claude.ai you add Apify as a connector, then enable just this Actor's tool.
Go to Settings > Connectors > Browse connectors and search for Apify MCP server. Install it (enable or update if prompted).
When connecting, authenticate with your Apify API token, and enable the tool
johnvc/image-similarity-api.In any chat, open + > Connectors and turn on Apify.
Alternatively, choose Add custom connector and paste the full MCP URL
https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-api, using OAuth when prompted.Ask Claude to run the image comparison API.
Open Claude on the web: https://claude.ai
Install in Cursor

Cursor reads MCP servers from a project file at .cursor/mcp.json.
In your project, create
.cursor/mcp.json:
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-api"
}
}
}If you prefer token auth over browser OAuth, add a header:
{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-api",
"headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" }
}
}
}Open Cursor > Settings > MCP and confirm the apify server is connected (green dot).
In Composer or Chat, ask Cursor to call the image comparison API.
New to Cursor? Get it here: https://cursor.com/referral?code=XQP4VBLI3NNX
Install in ChatGPT

ChatGPT connects to the Apify MCP server through Developer mode (available on ChatGPT Pro, Plus, Business, Enterprise, and Education plans).
Click your profile icon, then go to Settings > Apps. If you do not see a Create app button, open Advanced settings and enable Developer mode.
Click Create app and fill out the form:
Name: Apify
MCP Server URL:
https://mcp.apify.com/?tools=actors,docs,johnvc/image-similarity-apiAuthentication: OAuth
Click Create and authorize the connection with Apify.
To use the app in a conversation, click + in the chat, choose Developer mode, and select Apify.
More help: https://docs.apify.com/platform/integrations/mcp
FAQ
How do I compare two images for similarity?
Pass one sourceImage and one entry in targetImages, then read similarityScore. It is a number between 0 and 1, so 0.97 means the pair is almost certainly the same picture. Set threshold to the cut-off you want and the Actor sets isSimilar for you.
What is the difference between the embedding score and pHash?
The embedding is a CLIP vision model: it compares what is in the picture, so it still matches after a crop, a resize, a recolour, or a re-encode. Perceptual hashing compares the visual fingerprint of the pixels and is very cheap, but a heavy edit will break it. Running both gives you a semantic score and a duplicate distance in the same row.
How do I find duplicate images online across a list of URLs?
Put the image you care about in sourceImage, put the candidates in targetImages, and run in both mode. Rows where isNearDuplicate is true are byte-level copies; rows with a high similarityScore but a large hash distance are edited or re-encoded copies.
Can I use this as an image copyright checker? You can use it for the matching half of that job. Give it your original photo and a list of pages where you suspect the image was reused, and it will tell you which of those images match and how closely. It does not make a legal determination, and it does not search the web for you; you supply the candidate URLs.
Does it work for comparing screenshots? Yes, and that is a common use. Keep a baseline screenshot as the source, compare each new capture against it, and alert when the score drops below your threshold. Hash distance is usually the more sensitive signal for small layout shifts.
What is perceptual hashing?
A perceptual hash reduces an image to a short fingerprint so that visually similar images produce similar fingerprints. You compare two hashes by counting how many bits differ, which is the distance this Actor returns as phashDistance and dhashDistance. Unlike a checksum, one changed pixel does not change the answer completely.
What happens if an image will not load?
That target comes back as its own row with an errorMessage, and the rest of the run continues. A dead URL never fails the whole job.
How much does a run cost? Pricing is on the Actor page and bills per comparison, so ten targets is ten units. Hash-only mode is the cheaper path when you do not need the model score. Check live pricing there rather than a number copied into a README.
People also search for
image comparison api, image similarity api, find duplicate images, duplicate image finder, compare two images for similarity, phash, perceptual hashing, image copyright checker, compare screenshots, image deduplication, ai image comparison, find duplicate photos, image hash check, visual similarity search
More
Actor on the Apify Store: https://apify.com/johnvc/image-similarity-api?fpr=9n7kx3
Free Apify account: https://apify.com?fpr=9n7kx3
Apify Python client docs: https://docs.apify.com/api/client/python/
Apify MCP docs: https://docs.apify.com/platform/integrations/mcp
Last Updated: 2026.08.18
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.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables pixel-perfect image comparison and visual regression testing via tools to compare local images, screenshots, and URLs with detailed diff statistics.3423MIT
- AlicenseAqualityDmaintenanceEnables AI agents to analyze images, extract text, compare images, and analyze video through any OpenAI-compatible vision model.455019MIT
- AlicenseAqualityCmaintenanceLocal image processing MCP server providing background removal, stock media search, resize, format conversion, and collage creation.5MIT
- AlicenseCqualityDmaintenanceEnables AI-powered image editing such as upscaling, background removal, restoration, colorization, denoising, and compression through a simple API.920MIT
Related MCP Connectors
Image/video analysis: NSFW detection, object detection, thumbnails
Image risk scoring, EXIF, reverse-image backlinks, and image content detection via PicDefense.io.
Image + screenshot API for agents: HTML/CSS to images or PDF, screenshot any URL, verify text.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/johnisanerd/Apify-Image-Similarity-API'
If you have feedback or need assistance with the MCP directory API, please join our Discord server