The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Stock Images MCP listing page.
An MCP (Model Context Protocol) server for searching and downloading stock images from Pexels, Unsplash, and Pixabay.
| Provider | Env var | Get a key |
|---|---|---|
| Pexels | PEXELS_API_KEY | https://www.pexels.com/api/ |
| Unsplash | UNSPLASH_API_KEY | https://unsplash.com/developers |
| Pixabay | PIXABAY_API_KEY | https://pixabay.com/api/docs/ |
Optional: STOCK_IMAGES_DOWNLOAD_DIR — where download_image writes files (default ./downloads).
Add to your MCP config (~/.claude/mcp.json, ~/.cursor/mcp.json, or claude_desktop_config.json):
Requires Node.js 22+.
Search for stock images across configured providers.
Parameters:
query (required): search termprovider: "pexels", "unsplash", "pixabay", or "all" (default: "all")count: results per provider (default 5, max 20)orientation: "landscape", "portrait", or "square"Each result has id, provider, url, thumbnail, description, author, authorUrl, downloadUrl, width, height. Pass downloadUrl to download_image.
Download an image into the download directory.
Parameters:
url (required): https image URL on pexels.com, unsplash.com or pixabay.com (use downloadUrl from search_images)filename: output name — letters, digits, _, -, . only; the extension is added from the content-type if missing (auto-generated if omitted)folder: subfolder inside the download directoryBehavior and limits:
./downloads, or STOCK_IMAGES_DOWNLOAD_DIR if set. Paths that escape it (including via symlinks) are rejected.image/* responses are saved; max 50 MiB; 30 s timeout; redirects are followed only to allowed hosts.UNSPLASH_API_KEY: the tool calls Unsplash's download endpoint, as their API guidelines require.Failures return isError: true. search_images also returns a per-provider errors list when some providers fail but others succeed. Provider requests time out after 10 s and are retried on network errors, 429 and 502/503/504.
Images stay under each provider's license. Credit the photographer where the provider requires it (author and authorUrl are returned for that purpose) and review the terms: Pexels, Unsplash, Pixabay.
See CONTRIBUTING.md, CODE_OF_CONDUCT.md and SECURITY.md (report vulnerabilities privately, not in public issues).
MIT