
Google Lens
io.github.johnisanerd由 GitHub 帳號 johnisanerd 發布v1.0.0更新於 Nov 4, 2026
Google Lens reverse image and visual product search, with similar and exact matches, hosted MCP.
概覽
託管於 Apify 的 Google Lens 反向圖片搜尋 MCP 伺服器,可回傳相似圖片、可購買商品比對與完全相同圖片的頁面。
- 可以做什麼
- 以圖片網址或 base64 編碼的本機檔案發起反向圖片搜尋
- 選擇搜尋類型:相似圖片、含價格與庫存的商品清單,或同一檔案的完全比對
- 依國家與語言限定結果,並限制回傳的比對筆數
- 回傳每筆比對的標題、來源網站、目標網址、縮圖與圖片連結
- 適用情境
- 適合需要讓助理辨識圖片內容、查出某張照片在網路上出現的位置以進行署名或授權查核,或把商品照片轉成含價格的可購買商品清單的情境。
- 執行需求
- 遠端 Apify MCP 端點,無需本機套件。需要 Apify 帳號,透過 OAuth 授權,或以 bearer Authorization 標頭傳入 Apify API 權杖。Apify 依結果計費,免費帳號含每月平台額度。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Google Lens,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.github.johnisanerd%2Fgoogle-lens/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"google-lens": {
"type": "http",
"url": "https://mcp.apify.com/?tools=johnvc/google-lens-api"
}
}
}README
🔍 Google Lens API: reverse image search from Python and MCP
Actor: johnvc/google-lens-api · Input schema
This repo shows two ways to use the Google Lens API on Apify: a Python quick start and MCP installs for five AI clients. Send an image straight from your computer, base64 from code, or any public image URL, and get back visually similar results, shoppable product matches with prices, or every page carrying the exact same image, which is the bulk reverse image search photographers use for attribution checks. Most reverse image tools demand a public URL; this one does not.
Video Walkthrough
Text walkthrough
The google lens api takes an image (a local file via image_base64 or the console upload field, or a public image_url) plus a search_type. visual_matches is the general reverse image search and returns about 59 rows per lookup with title, source, url, thumbnail and the full image link. products returns shoppable listings with price, currency and inStock. exact_matches returns up to 400 pages carrying the identical file, which powers the stolen-photo check recipe in this repo. Exact-match coverage varies run to run at the source, so an empty result finishes clean rather than erroring; retry or switch type.
Quick Start
You need Python 3.11+ and a free Apify API key: sign up at apify.com, then copy your token from Console Settings.
Run a specific recipe:
Search by a local file, no public URL needed
The repo bundles sample-image.jpg, so this works out of the box:
Under the hood the file is base64-encoded and sent as image_base64; the API stages it privately behind a signed link and runs the lookup. Batch up to 10 images per run by passing more entries (about 6 MB of images per run on the base64 path; the console's Upload images field takes files up to 20 MB each, 30 MB per run).
Why use this API
- Upload local files or send base64, no public URL needed, up to 10 images per run
- Three search types behind one input: visual matches, products, exact matches
- Real destination URLs with source site names for every match
- Product matches carry price, currency and stock where the retailer publishes them
- Up to 400 exact-match rows per lookup for attribution and licensing sweeps
- Country and language targeting when you need regional results
Recipes
The example script ships ready-made recipes that mirror this API's main use cases:
- Search by a local file (
--example upload): Base64-encodes an image from your disk and looks it up, no public URL needed. - Check if a photo is being reused (
--example stolen_check): Runs exact matches over one image and lists every page carrying it. - Visual product search (
--example product_match): Turns a product photo into shoppable listings with prices.
Schedule tip: save any of these inputs as a task in the Apify Console and attach a schedule. A daily or weekly run turns a one-off pull into a pipeline with zero manual work.
Usage Examples
Basic input:
Advanced input:
Input Parameters
Output Format
One row from a real run:
n8n integration
Available as an n8n community node, n8n-nodes-google-lens-api. In n8n: Settings, Community Nodes, install n8n-nodes-google-lens-api, then use it in any workflow (it also works as an AI Agent tool).
🤖 Ask an AI assistant about this Actor
Open a ready-to-send prompt about the Google Lens API in the AI of your choice:
- 💬 ChatGPT
- 🧠 Claude
- 🔍 Perplexity
- 🅒 Copilot
People also search for
Is this a reverse image search API with a free tier?
Yes: pay per result on Apify, and an Apify free account includes monthly platform credit, so small lookups cost nothing out of pocket.
How do I reverse image search in Python?
Run the quick start here: uv sync, set your token, pass an image URL. Three lines of client code, JSON back.
Can I do a bulk reverse image search?
Loop the client over a URL list, or point an AI agent at the MCP server below and hand it the list. Each image is one lookup.
Why is the image field empty on exact matches?
The source returns only a thumbnail plus pixel dimensions for exact matches. Visual and product matches carry the full image link.
Install in Claude Cowork Desktop
[Install in Claude Cowork Desktop]
Cowork is the desktop app's automation mode. To give it the Google Lens 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.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Add the Apify MCP server, preloaded with only this Actor:
- 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 Google Lens 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:
To use a token instead of browser OAuth:
Then verify with claude mcp list, or run /mcp inside a session. Ask Claude Code to call the Google Lens 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/google-lens-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/google-lens-api, using OAuth when prompted. - Ask Claude to run the Google Lens 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:
- If you prefer token auth over browser OAuth, add a header:
- Open Cursor -> Settings -> MCP and confirm the apify server is connected (green dot).
- In Composer or Chat, ask Cursor to call the Google Lens 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/google-lens-api - Authentication: 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
Made with care by johnvc on Apify. This example repo is part of Alpha OSINT, toolset of financial and operations data sources and APIs.
Last Updated: 2026.10.27
來源:README.md,提交 b9c0ae3
工具
0版本歷史
1- v1.0.0最新Nov 4, 2026
評分
已滿足適用檢查項的 75%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。