Searches Pexels, Unsplash, and Pixabay, then downloads selected images to a controlled local directory.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Stock Images MCP.
provider`"pexels"`, `"unsplash"`, `"pixabay"`, or `"all"` (default: `"all"`)
countresults per provider (default 5, max 20)
orientation`"landscape"`, `"portrait"`, or `"square"`
filenameoutput name β letters, digits, `_`, `-`, `.` only; the extension is added from the content-type if missing (auto-generated if omitted)
foldersubfolder inside the download directory
Stock Images MCP provides two MCP tools for finding and saving stock images. search_images searches Pexels, Unsplash, Pixabay, or all configured providers. Each result includes identifying and attribution information such as the provider, image URL, thumbnail, description, author, author URL, dimensions, and a downloadUrl intended for the download step.
download_image saves an image to the configured local download directory. An agent can provide a filename and an optional subfolder. Filenames are restricted to letters, numbers, underscores, hyphens, and periods. If no extension is supplied, the server derives one from the response content type; if the filename is omitted, it generates one automatically.
The Stock Images MCP MCP server is suited to agents that need to locate visual assets without switching between provider APIs manually. It can support tasks such as gathering candidate images, selecting results by orientation, and placing approved assets into a local project directory.
Search requires a query. The provider can be selected individually or set to all, which is the default. Results per provider default to five and can be increased to 20. The optional orientation filter accepts landscape, portrait, or square.
A typical workflow is to call search_images, inspect the returned metadata, and pass a result's downloadUrl to download_image. Search requests time out after 10 seconds and retry network failures, rate-limit responses, and common gateway errors. If one provider fails while others return results, the response includes provider-specific errors rather than hiding the partial results.
Downloads accept HTTPS image URLs on the supported provider hosts. Only responses with an image/* content type are saved, the maximum file size is 50 MiB, and requests time out after 30 seconds. Redirects are followed only when they remain within allowed hosts. Existing files are not overwritten.
The Stock Images MCP MCP server requires at least one of PEXELS_API_KEY, UNSPLASH_API_KEY, or PIXABAY_API_KEY. Set STOCK_IMAGES_DOWNLOAD_DIR to change the destination; otherwise files go to ./downloads.
The documented package setup uses Node.js 22 or newer and runs through npx -y stock-images-mcp. Configuration examples are provided for Claude Code, Cursor, and Claude Desktop. Docker is also supported, including a volume mount for the downloads directory. From source, clone the repository, run npm ci, build with npm run build, and start node dist/index.js.
isError: true.Provider API keys are supplied by the user and must be obtained from the respective provider. Unsplash downloads require UNSPLASH_API_KEY because the server uses Unsplash's download endpoint as required by its API guidelines.
The Stock Images MCP MCP server does not change image licensing. Images remain subject to the license of their source provider, and users should review the applicable terms and credit photographers when required. Download paths that escape the configured directory, including paths involving symlinks, are rejected. The server also does not overwrite existing files.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/stock-images-mcp)<a href="https://allmcps.com/mcp/stock-images-mcp"><img src="https://allmcps.com/api/badge/stock-images-mcp?style=directory" alt="Stock Images MCP on AllMCPs" /></a>