Stock Images MCP logo

Stock Images MCP

Searches Pexels, Unsplash, and Pixabay, then downloads selected images to a controlled local directory.

Install Stock Images MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "stock-images-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "stock-images-mcp"
      ],
      "env": {
        "PEXELS_API_KEY": "YOUR_VALUE_HERE",
        "UNSPLASH_API_KEY": "YOUR_VALUE_HERE",
        "PIXABAY_API_KEY": "YOUR_VALUE_HERE",
        "STOCK_IMAGES_DOWNLOAD_DIR": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 2 tools correctly (11d ago).

Overview

Stock Images MCP MCP server lets an MCP-compatible agent search Pexels, Unsplash, and Pixabay and download selected images locally. It exposes search_images for provider queries and download_image for saving HTTPS image URLs returned by search results. Configure at least one provider API key, then use it when an agent needs stock imagery for content, prototypes, or other local workflows. Downloads are constrained by allowed hosts, file type, size, timeout, and path-safety checks.

Use cases

  • Search multiple stock-image providers for matching assets
  • Filter image results by orientation
  • Download selected images into a project folder
  • Collect photographer attribution details

Key features

  • Searches Pexels, Unsplash, and Pixabay
  • Supports per-provider or combined searches
  • Filters results by landscape, portrait, or square orientation
  • Downloads images to a controlled local directory
  • Retries selected provider request failures
  • Rejects unsafe paths and unsupported downloads

Tools2

What Stock Images MCP lets your agent do. Expand a tool for its parameters.

Verified live~296 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

6/6 checks healthy over the last 24d

What it can do

From the 2 tools this server returned when we ran it.

Makes network requests · 1Read-only tools · 2
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age260 days
Maintainers1

Observed 2026-10-27 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · stock-images-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
npm downloads4.1kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed2Callable tools this server registers over MCP.

How Stock Images MCP works

What Stock Images MCP MCP server does

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.

How it works

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.

Setup and configuration

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.

Tools and capabilities

  • Search one provider or all configured providers.
  • Limit result count per provider to a maximum of 20.
  • Filter search results by image orientation.
  • Download images into the base directory or a safe subfolder.
  • Return author and author URL fields for attribution workflows.
  • Report tool failures with isError: true.

Limitations and notes

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.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Stock Images MCP

Stock Images MCP is an MCP server that connects AI agents to Pexels, Unsplash, and Pixabay. Its main tools, search_images and download_image, search providers for stock photos and save selected images locally with filename, folder, orientation, and provider controls.

Install it with Node.js 22 or newer by configuring an MCP client to run npx -y stock-images-mcp. Add at least one provider API key to the client environment, or build from source with npm ci and npm run build.

Yes, Stock Images MCP works with Cursor through its MCP configuration. Add the server command npx -y stock-images-mcp to ~/.cursor/mcp.json and provide one or more provider API keys in the env section.

Set the search_images provider parameter to pexels, unsplash, pixabay, or all. The default is all, and at least one corresponding API key must be configured for provider access.

It saves images under ./downloads by default. Set STOCK_IMAGES_DOWNLOAD_DIR to use another base directory, and pass folder to place a file in a subfolder beneath that directory.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewStock Images MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/stock-images-mcp?style=directory)](https://allmcps.com/mcp/stock-images-mcp)
HTML Embed
<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>