visual-hunt-mcp
Opens Google Maps visual search in a connected Chrome browser for visual inspiration; images are not downloaded by design.
Opens Instagram visual search in a connected Chrome browser to surface image candidates from visible posts (requires login).
Allows searching for images from NASA's image library as a configurable source for wallpaper candidates.
Allows searching for open-licensed images from Openverse as a configurable source.
Searches for and retrieves high-quality stock images from Pexels for visual inspiration.
Opens Pinterest visual search in a connected Chrome browser (requires login) to extract image candidates.
Searches for and retrieves high-quality stock images from Pixabay for visual inspiration.
Searches for and retrieves high-quality editorial photography from Unsplash for poster and wallpaper candidates.
Searches for public-domain and freely licensed images from Wikimedia Commons.
Extracts images from Wikipedia pages via generic URL-based image extraction.
Opens Xiaohongshu visual search in a connected Chrome browser to extract image candidates from travel/design topics (requires login).
Click on "Deploy 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., "@visual-hunt-mcp find me HD wallpaper images of mountains"
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.
visual-hunt-mcp
visual-hunt-mcp is a local TypeScript MCP server for macOS that connects to your existing Chrome session over CDP and helps Codex / Claude find visually strong image candidates for posters, wallpapers, and inspiration boards.
v0.4.0 · 11 tools · audited end-to-end · 15/15 behavioural tests pass · 108 images downloaded in a real-world 10-topic stress test · ships with eval suite and full-test harness.
It is designed to:
use the official
@modelcontextprotocol/sdkwithMcpServerandregisterToolconnect to a local Chrome instance via
chromium.connectOverCDP(...)reuse your local logged-in browser profile when you choose to do manual-assisted review
avoid bypassing paywalls, login walls, CAPTCHA, or platform controls
return candidate metadata and optionally download image files into a project folder created under the MCP server's current working directory
Why CDP
This project uses Chrome DevTools Protocol instead of launching a fresh automation browser so the MCP server can reuse a local Chrome profile you control. That makes Instagram and Xiaohongshu workflows more practical because the browser session can already be logged in, while the MCP server still stays local on your Mac.
Related MCP server: unsplash-mcp
Why Instagram / Xiaohongshu Are Manual-Assisted
Instagram and Xiaohongshu often require login, can change layout frequently, and may gate content behind platform controls. This MCP deliberately opens those pages in your connected local Chrome and only extracts visible public image candidates when available. It does not try to bypass login, rate limits, or access restrictions.
Download Scope
This project can now download image files for sources such as Unsplash, Pexels, Pixabay, wallpaper sites, and visible image URLs surfaced from manual-assisted social browsing when your connected Chrome session has access. A few guardrails still apply:
Google-hosted previews and Google Maps imagery stay blocked
Instagram and Xiaohongshu still depend on your connected Chrome login state and whatever visible image URLs the page actually exposes
you are still responsible for checking licensing before reuse
save_candidates_jsonremains metadata-only, whiledownload_candidate_imageswrites image files plus a download manifest
Features
MCP tools (11)
Tool | Reliability | Notes |
| ★★★★★ | Flagship. Curated 6-source set (Unsplash, Pexels, Pixabay, Wikimedia, Wallhaven, Alpha Coders). 100% topic coverage in stress tests. |
| ★★★★★ | Flagship for travel/design topics. 100% topic coverage. |
| ★★★ | Manual-assisted. Most images correctly blocked from download by design — use for visual inspiration. |
| ★★ | Manual-assisted. Pinterest serves a login modal on most searches; log in via Chrome, then call |
| ★★ | Manual-assisted. Same login-wall pattern as Pinterest. |
| ★★ | Inconsistent due to Google's lazy-loaded |
| ★★★★ | Generic extractor. Works on Wikipedia, blogs, brand pages. |
| ★★★★★ | Re-extract after manual scroll/login on a held page. |
| ★★★★★ | Cleanup. Idempotent. |
| ★★★★★ | Metadata-only persistence. |
| ★★★★★ | Download with referer + user-agent from connected Chrome. Google-hosted previews are blocked by design. |
Default source set (v0.4.0 curated)
The default search_wallpaper_sites source list was trimmed in v0.4.0 from 13 sources to the 6 that returned downloadable candidates on >80% of topics in real-world stress testing:
Unsplash — modern editorial photography
Pexels — modern editorial photography
Pixabay — modern editorial photography
Wikimedia Commons — landmarks, architecture, public-domain
Wallhaven — top free 4K/8K wallpapers
Alpha Coders / Wallpaper Abyss — top free 4K/8K wallpapers
Adapters for the dropped sources still ship — pass them explicitly when you need them: sites: ["openverse.org", "loc.gov", "images.nasa.gov", "rawpixel.com", "publicdomainpictures.net", "wallpaperscraft.com", "hdqwalls.com"].
Candidate scoring
Each candidate gets a lightweight scoreHint based on:
image size
aspect ratio closeness to common poster / wallpaper ratios
title or alt text keywords such as
poster,cinematic,wallpaper,4k,8k,travel,film, andlandscape
Install
cd /Users/lanston/Desktop/Codex/visual-hunt-mcp
npm installStart Chrome For MCP
npm run chrome:debugThis helper binds Chrome remote debugging to 127.0.0.1 only. It does not expose the CDP port publicly.
If you prefer the raw script:
chmod +x scripts/start-chrome-mcp.sh
./scripts/start-chrome-mcp.shValidation Workflow
Run the deterministic MCP smoke test after Chrome is up:
npm run smokeFor a comprehensive behavioural sweep covering all 11 tools (schema coercion, query optimization, manual-page lifecycle, login-wall suppression, false-positive filters, security guards):
node scripts/full-test.mjs # 15 cases including live Chrome paths
node scripts/full-test.mjs --skip-live # 10 cases, fast, no browser depsWhat npm run smoke validates:
the local MCP server starts over stdio from the current
dist/outputtools/listexposes the expected tool setopen_url_and_extract_imagescan extract visible candidates from a local fixture pageextract_manual_page_candidatesandclose_manual_pageare exposed for manual-assisted follow-up flowssave_candidates_jsonwrites candidate metadata to a temporary output rootdownload_candidate_imagesdownloads an allowed local image and skips a blocked Google-hosted candidate with a clear reason
The smoke test uses a temporary VISUAL_HUNT_OUTPUT_ROOT and cleans it up on success. To keep the artifacts for inspection:
npm run smoke -- --keep-outputFor a higher-confidence pass that also hits live Google Images and wallpaper search flows through your connected Chrome session:
npm run smoke:liveUse npm run validate as the stable default validation command. It now runs npm run build first and then the deterministic smoke test.
Run MCP Locally
npm run devFor production-style use:
npm run build
node dist/index.jsClaude Desktop Config
{
"mcpServers": {
"visual-hunt": {
"command": "node",
"args": [
"/Users/lanston/Desktop/Codex/visual-hunt-mcp/dist/index.js"
],
"env": {
"CHROME_CDP_ENDPOINT": "http://127.0.0.1:9222"
}
}
}
}Example Prompts
Use visual-hunt to search_google_images for "cinematic Oahu Hawaii sunset travel poster 8k", limit 10.Use visual-hunt to search_wallpaper_sites for "dark luxury black gold abstract 8k wallpaper", limit 15.Use visual-hunt to open_xiaohongshu_visual_search for "夏威夷 绝美 海报 壁纸 旅行 摄影", limit 10.Use visual-hunt to download_candidate_images for project "oahu-poster-board" using the candidates from the last search, limit 5.Use visual-hunt to extract_manual_page_candidates for the manualPageId from the Xiaohongshu search after I log in or scroll more.Notes
Logs are written to
stderronly so MCP JSON-RPC onstdoutstays clean.Chrome must already be running with remote debugging enabled.
Output folders are created under the MCP server's current working directory by default. Example:
/path/to/visual-hunt-mcp/<project>/images.Override the output root with
VISUAL_HUNT_OUTPUT_ROOTif you want downloads somewhere else.save_candidates_jsonwrites metadata to<output-root>/<project>/candidates.json.download_candidate_imageswrites image files to<output-root>/<project>/imagesand a manifest to<output-root>/<project>/downloads.json.scripts/smoke-test.mjsis the quickest way to validate the MCP contract end-to-end against a local server process.scripts/smoke-test.mjsvalidates the local server through the currentdist/output and uses a temporary output root for artifacts.The server does not store credentials.
The server does not execute arbitrary shell commands.
Environment variables
Var | Default | Effect |
|
| Chrome remote-debugging endpoint |
|
| Root directory for downloaded images and manifests |
|
| Per-page navigation/extraction timeout |
|
| TTL for entries in the manual-page registry; |
|
| Hard cap on manual-page registry size; oldest evicted first |
| unset | Set to |
Manual Checks Beyond Smoke
When you want to sanity-check the live/manual-assisted parts of the product, these are the highest-value follow-ups after npm run smoke:
npm run smoke:liveopen_instagram_visual_searchwith the same Chrome profile you plan to use day-to-dayopen_xiaohongshu_visual_searchwith that same profile if login is requiredopen_google_maps_visual_searchto confirm the manual-review note and non-bypass behavior still look right
Exact Mac Commands
cd /Users/lanston/Desktop/Codex/visual-hunt-mcp
npm install
npm run chrome:debug
npm run smoke
npm run smoke:liveAvailable Tools
11 toolsclose_manual_pageClose Manual PageADestructiveIdempotent
Close a previously opened manual-assisted page and remove it from the in-memory registry. Returns {closed:false} if the manualPageId was unknown (already closed or expired); not an error.
Inputs: manualPageId (required).
download_candidate_imagesDownload Candidate ImagesA
Download candidate images into a project folder under the current MCP working directory, using the connected browser session for cookies and referer when needed. Google-hosted previews and Google Maps imagery are blocked. candidates accepts either an array or a JSON-array string.
Inputs: projectName (required), candidates (required), limit.
extract_manual_page_candidatesExtract Manual Page CandidatesARead-only
Re-extract visible image candidates from a previously opened manual-assisted page after you log in, scroll, or dismiss overlays. The manualPageId comes from a prior open_*_visual_search call. Each access refreshes the TTL.
Inputs: manualPageId (required), limit.
open_google_maps_visual_searchOpen Google Maps Visual SearchARead-only
Open Google Maps in the connected local Chrome session for safe, manual-assisted visual inspiration review. Map tile URLs (maps/vt/...) are filtered out automatically; remaining Google-hosted preview URLs cannot be downloaded by this MCP.
Inputs: query (required), limit.
open_instagram_visual_searchOpen Instagram Visual SearchARead-only
Open Instagram in the connected local Chrome session for manual-assisted visual review and extract only visible images. When pageState.status is login_required or blocked, candidates is intentionally empty — log in via the connected Chrome window and re-extract with extract_manual_page_candidates.
Inputs: query (required), limit.
open_pinterest_visual_searchOpen Pinterest Visual SearchARead-only
Open Pinterest pin search results in the connected local Chrome session and extract visible image candidates. Pinterest occasionally serves a login wall — log in via the connected Chrome window and call extract_manual_page_candidates to re-extract.
Inputs: query (required), limit.
open_url_and_extract_imagesOpen URL And Extract ImagesARead-only
Open any http or https URL in the connected local Chrome session and extract visible image candidates. javascript:, file:, and other schemes are rejected.
Inputs: url (required), limit.
open_xiaohongshu_visual_searchOpen Xiaohongshu Visual SearchARead-only
Open Xiaohongshu search results in the connected local Chrome session and extract visible images. Best path for Chinese-language queries. When pageState reports a login wall, candidates is empty — log in via Chrome and call extract_manual_page_candidates.
Inputs: query (required), limit.
save_candidates_jsonSave Candidates JSONA
Save candidate metadata under the current MCP working directory without downloading image files. candidates accepts either an array or a JSON-array string.
Inputs: projectName (required), candidates (required).
search_google_imagesSearch Google ImagesARead-only
Search Google Images (udm=2) for visually strong poster and wallpaper candidates using the connected local Chrome session. Default quality is 'normal' — pass 'cinematic' or 'poster' only when you actually want a stylistic suffix appended to the query (verbose suffixes can push Google to zero-results pages).
Inputs: query (required), limit, quality.
search_wallpaper_sitesSearch Wallpaper SitesARead-only
Search supported wallpaper, photography, archive, and open-license image sources using direct site adapters with Google fallback. Pass sites as either an array of strings or a JSON-array string. Default quality suffix is 'cinematic' (kept for backwards-compat); reduce to 'normal' for noisy queries.
Inputs: query (required), limit, sites.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool targets a distinct action or platform: opening specific sites (Google Maps, Instagram, Pinterest, Xiaohongshu, generic URL), extracting or re-extracting candidates, downloading or saving images, and searching via Google or wallpaper sites. No two tools have overlapping purposes, and descriptions clarify their unique roles.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., 'close_manual_page', 'download_candidate_images', 'open_google_maps_visual_search'). There are no deviations or mixed styles, ensuring predictability for agents.
With 11 tools, the server is well-scoped for its purpose of visual hunting. Each tool serves a clear function without redundancy, and the count is neither too thin nor too heavy for the domain.
The tool set covers the full workflow: opening visual sources (platform-specific and generic), extracting and re-extracting candidates, downloading images, and saving metadata. There are no obvious missing operations like a 'list downloads' tool, but the core lifecycle is complete and agents can accomplish tasks without dead ends.
Maintenance
Related MCP Connectors
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
MCP server exposing the YourImageShare upload API (upload/list/delete) as tools for AI agents.
Real-time YouTube transcripts, comments, channels & video search MCP. Local npx or hosted OAuth.
Unified 15-tool SEO, SERP, clean Markdown & GEO (LLM citation Share-of-Voice) MCP server.
Related MCP Servers
- AlicenseBqualityBmaintenanceMCP server to search and download stock images from Pexels, Unsplash, and Pixabay21,127 npm5MIT
- AlicenseAqualityDmaintenanceAn MCP server for searching and retrieving photos from Unsplash with proper attribution, designed for LLMs building content pages.338MIT
- AlicenseAqualityDmaintenanceMCP server that enables searching and downloading Unsplash photos and collections.4MIT
- AlicenseAqualityCmaintenanceProduction-ready Model Context Protocol (MCP) server for the Unsplash API — search photos, fetch details, and stay compliant with Unsplash attribution & download-tracking guidelines. Unofficial; not affiliated with or endorsed by Unsplash.2985 npm3MIT