Photo MCP
Enables photo discovery on Pinterest through keyword search, photo-based search, and finding similar Pins, with pagination and optional session-based login for authenticated access.
Enables photo search on Unsplash with paginated results, image links, and available attribution, plus optional session-based login for authenticated access.
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., "@Photo MCPSearch Pinterest for minimalist interiors"
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.
Photo MCP
Photo discovery for Pinterest and Unsplash, built with Bun. Uses website endpoints—not official developer APIs.
Install
Requires Bun 1.4+.
git clone https://github.com/amirrezasalimi/photo-mcp.git
cd photo-mcp
bun install
bunx playwright install chromiumRelated MCP server: pinterest-mcp
Connect your MCP client
Add this server to your client's MCP configuration. Replace /absolute/path/photo-mcp with your clone's path. If your client cannot find Bun, use the output of which bun as command.
{
"mcpServers": {
"photos": {
"command": "bun",
"args": ["run", "/absolute/path/photo-mcp/src/index.ts"],
"cwd": "/absolute/path/photo-mcp"
}
}
}OMP: merge it into ~/.omp/agent/mcp.json, then run /mcp reload.
Use it
Ask your assistant:
“Search Pinterest for minimalist interiors.”
“Search Unsplash for mountain photography.”
“Search Pinterest using this photo: https://example.com/photo.jpg.”
“Find similar photos to this Pinterest Pin: https://www.pinterest.com/pin/123456789/.”
Log in when needed
Ask “Log in to Pinterest” or “Log in to Unsplash.”
Log in yourself in the dedicated browser window. Leave it open.
Ask “Finish Pinterest login” or “Finish Unsplash login.”
Saved cookies are reused with plain fetch first. A headless browser is used only for authentication/challenge responses. No passwords go through chat. Ask for session_status to inspect local state, or logout to delete a site's saved profile.
Tools
Tool | Inputs |
|
|
|
|
| Public HTTPS |
| Numeric Pin ID or canonical Pin URL as |
| None |
|
|
Searches return image links, available attribution, and nextCursor. For another page, pass it as cursor with the same tool, query/seed and limit. Limits: 1–25 per request, default 20; sites may return fewer. Similar results are recommendations, not guaranteed visual duplicates. Anonymous Pinterest e1 IDs cannot seed similar_pinterest. Photo search accepts URLs, not local uploads.
Optional SOCKS5
Add to the server configuration:
"env": { "PHOTO_PROXY_URL": "socks5h://127.0.0.1:1080" }socks5h uses proxy-side DNS. Direct HTTP also supports socks5://user:password@host:1080; browser login/fallback requires an unauthenticated SOCKS proxy. Failed proxy connections never silently fall back to a direct connection.
Privacy and limitations
Sessions stay in
~/.photo-discovery-mcp/sessions/. Treat these files as account credentials; never commit or share them. Override withPHOTO_SESSION_DIRif needed. Only one MCP process can own a browser profile at a time.Logging out deletes the dedicated local profile, not remote sessions or manually configured cookies. Advanced direct HTTP setup can use
PINTEREST_COOKIE/UNSPLASH_COOKIEenvironment variables.Login needs a visible browser and user interaction. Normal searches are fetch-first; fallback browsers close after 60 idle seconds. Login windows expire after 10 idle minutes.
Private endpoints can change, rate-limit, or deny access. No CAPTCHA solving or access-control bypass. Respect site terms and image licenses; this project is not affiliated with either site.
Verified: Pinterest search and pagination with saved cookies, browser session lifecycle, and MCP tool calls. Unsplash direct access and Pinterest photo/related searches encountered access restrictions; authenticated success for those paths is not yet verified. Type checking previously exhausted the compiler heap/timed out; runtime smoke checks passed.
Development
bun start
bun run checkMIT licensed.
This server cannot be deployed
Maintenance
Related MCP Connectors
Pinterest pins, boards, profiles and keyword search to JSON: saves, images, links, creators.
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
Search photos and video moments by visual meaning, people, dates, and folders across local libraries, Apple Photos, and OneDrive. Manage collections, groups, favorites, people, and duplicate review. Synced metadata remains searchable while the desktop is offline; local and Apple Photos media access needs the owning device online with remote access enabled. OneDrive media can be accessed directly from the cloud. OAuth or Bearer API keys. Paid Cloud Access required; hosted visual search uses prepaid credits. Text-in-image search is semantic matching, not guaranteed exact OCR. Setup: https://organizewith.ai/en/guides/connect-ai-assistants
Image Search: Fast and Simple Image Search API. You can get 100+ search results in one query!.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables searching and downloading photos from Unsplash via the Unsplash API, with support for pagination, orientation filtering, and multiple resolutions.96 npm1MIT
- AlicenseAqualityDmaintenanceExtracts images, gifs, videos, and search results from Pinterest without authentication. Supports search, pin details, board pins, related pins, autocomplete, and media downloads.616 npm1MIT
- AlicenseBqualityDmaintenanceEnables image search and information retrieval from Pinterest using the Model Context Protocol. Supports searching by keywords, getting similar pins, and downloading images directly.5103 npmMIT
- AlicenseAqualityBmaintenanceEnables searching Pinterest and downloading images and boards directly to your machine using your personal session cookie.45MIT