Stock Images MCP Server
Search and download free stock images from Pexels, Unsplash, and Pixabay.
Stock Images MCP scores 71 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Finance. GitHub shows 6 stars. Package registries report about 764 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
71 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
60/100 for listing completeness. Lost points: no listed tools, short summary, no docs link.
How quality is graded
Where the 71 comes from
22 + 20 + 8 + 10 + 4 + 7 = 71. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 8 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "jeanpfs-stock-images-mcp": { "command": "npx", "args": [ "-y", "stock-images-mcp@2.0.1" ], "env": { "PEXELS_API_KEY": "YOUR_PEXELS_API_KEY", "UNSPLASH_API_KEY": "YOUR_UNSPLASH_API_KEY", "PIXABAY_API_KEY": "YOUR_PIXABAY_API_KEY", "STOCK_IMAGES_DOWNLOAD_DIR": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
PEXELS_API_KEYSecret | Optional | API key from pexels.com/api (free). At least one provider key is required. |
UNSPLASH_API_KEYSecret | Optional | Access key from unsplash.com/developers (free). Required to download Unsplash photos. |
PIXABAY_API_KEYSecret | Optional | API key from pixabay.com/api/docs (free). |
STOCK_IMAGES_DOWNLOAD_DIR | Optional | Directory where download_image saves files (default: ./downloads). |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
Stock Images MCP
An MCP (Model Context Protocol) server for searching and downloading stock images from Pexels, Unsplash, and Pixabay.
Features
- search_images: search one or all configured providers; partial failures are reported per provider
- download_image: download an image safely into a local folder
Setup
Get API keys (at least one required)
| 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).
Claude Code / Cursor / Claude Desktop
Add to your MCP config (~/.claude/mcp.json, ~/.cursor/mcp.json, or claude_desktop_config.json):
{
"mcpServers": {
"stock-images": {
"command": "npx",
"args": ["-y", "stock-images-mcp"],
"env": {
"PEXELS_API_KEY": "your-key-here",
"UNSPLASH_API_KEY": "your-key-here",
"PIXABAY_API_KEY": "your-key-here"
}
}
}
}
Requires Node.js 22+.
Docker
docker build -t stock-images-mcp .
docker run -i --rm -e PEXELS_API_KEY=xxx -v "$PWD/downloads:/downloads" stock-images-mcp
From source
git clone https://github.com/jeanpfs/stock-images-mcp.git
cd stock-images-mcp
npm ci && npm run build
PEXELS_API_KEY=xxx node dist/index.js
Tools
search_images
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_image
Download an image into the download directory.
Parameters:
url(required):httpsimage URL onpexels.com,unsplash.comorpixabay.com(usedownloadUrlfromsearch_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 directory
Behavior and limits:
- Download directory is
./downloads, orSTOCK_IMAGES_DOWNLOAD_DIRif set. Paths that escape it (including via symlinks) are rejected. - Only
image/*responses are saved; max 50 MiB; 30 s timeout; redirects are followed only to allowed hosts. - Existing files are never overwritten.
- Unsplash downloads require
UNSPLASH_API_KEY: the tool calls Unsplash's download endpoint, as their API guidelines require.
Errors
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.
Attribution and licensing
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.
Development
npm ci
npm run lint && npm run format:check && npm run typecheck && npm test
See CONTRIBUTING.md, CODE_OF_CONDUCT.md and SECURITY.md (report vulnerabilities privately, not in public issues).
License
MIT
Frequently asked questions
What is Stock Images MCP Server?
Search and download free stock images from Pexels, Unsplash, and Pixabay.
How do I install Stock Images MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Stock Images MCP Server runs locally from the npm package stock-images-mcp with the command npx -y stock-images-mcp@2.0.1.
Is Stock Images MCP Server free and open source?
Yes. Stock Images MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Stock Images MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Stock Images MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Stock Images MCP Server's trust score calculated?
Stock Images MCP Server scores 71 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.