Unsplash MCP Server
Provides tools for searching Unsplash's image library with filters such as keyword, color, orientation, and pagination; downloading photos by ID to local files; and generating properly formatted attribution for Unsplash photos.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Unsplash MCP Server
A simple MCP server for searching Unsplash images.
Fork of hellokaton/unsplash-mcp-server.
Overview
Unsplash MCP Server provides tools for searching Unsplash's library of high-quality images. It supports filtering by keyword, color, orientation, and pagination.
Related MCP server: Unsplash MCP Server
Obtaining an Unsplash Access Key
Create a developer account at Unsplash
Register a new application
Get your Access Key from the application details page
For more details, refer to the official Unsplash API documentation.
Installation
Claude Code
Add the following to your ~/.claude.json (user scope) or .mcp.json in your project root (project scope):
{
"mcpServers": {
"unsplash": {
"command": "uvx",
"args": ["--from", "git+https://github.com/petems/unsplash-mcp-server", "unsplash-mcp-server"],
"env": {
"UNSPLASH_ACCESS_KEY": "your_access_key"
}
}
}
}Manual Installation
git clone https://github.com/petems/unsplash-mcp-server.git
cd unsplash-mcp-server
uv venv
uv pip install .Available Tools
search_photos
Search Unsplash's photo library with optional filters.
{
"tool": "search_photos",
"query": "mountain",
"per_page": 5,
"orientation": "landscape"
}download_photo
Download an Unsplash photo by ID and save it to a local file. This tool fetches the image from Unsplash's CDN and writes it directly to disk.
{
"tool": "download_photo",
"photo_id": "abc123",
"save_path": "/absolute/path/to/image.jpg",
"size": "regular"
}Parameters:
photo_id(required): The Unsplash photo ID (obtained fromsearch_photosresults)save_path(required): Absolute file path where the image will be saved. If a file already exists at this path, an error will be raised to prevent accidental overwrites.size(optional): Image size variant —raw,full,regular(default),small, orthumbraw: Original unprocessed image (largest file size)full: Full-size processed image (high quality)regular: Standard web size (~1080px width, recommended for most uses)small: Smaller preview (~400px width)thumb: Thumbnail (~200px width)
create_directories(optional): Iftrue, automatically create parent directories if they don't exist. Defaults tofalsefor safety.
Returns: A structured result containing the photo ID, final save path, size variant, byte count, and a ready-to-use Markdown attribution line.
Example response:
{
"photo_id": "abc123",
"path": "/home/user/images/mountain_unsplash-abc123.jpg",
"size": "regular",
"byte_count": 245891,
"attribution": "\"[A mountain landscape](https://unsplash.com/photos/abc123?utm_source=unsplash_mcp&utm_medium=referral)\" by [Jane Smith](https://unsplash.com/@janesmith?utm_source=unsplash_mcp&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=unsplash_mcp&utm_medium=referral)"
}Important Notes:
The tool automatically triggers Unsplash's download tracking endpoint as required by the Unsplash API Guidelines
By default, parent directories must exist; set
create_directories=trueto create them automaticallyThe tool uses a 60-second timeout for regular downloads and 120 seconds for
rawandfullsizes to accommodate larger filesThe tool will not overwrite existing files. If a file already exists at the specified path, an error will be raised asking you to choose a different path or delete the existing file first
Downloaded images should be used in compliance with the Unsplash License
get_photo_attribution
Returns properly formatted attribution for an Unsplash photo, compliant with Unsplash API guidelines. Includes both structured data (JSON) and a ready-to-use Markdown string.
{
"tool": "get_photo_attribution",
"photo_id": "abc123",
"image_size": "regular"
}Parameters:
photo_id(required): The unique identifier of the Unsplash photoimage_size(optional): Size of image URL to use —raw,full,regular(default),small, orthumb
Example response:
{
"photo_id": "abc123",
"description": "A mountain landscape at sunset",
"alt_description": "snow-capped mountains under orange sky",
"photo_url": "https://unsplash.com/photos/abc123?utm_source=unsplash_mcp&utm_medium=referral",
"image_url": "https://images.unsplash.com/photo-abc123?w=1080",
"photographer_name": "Jane Smith",
"photographer_url": "https://unsplash.com/@janesmith?utm_source=unsplash_mcp&utm_medium=referral",
"attribution_markdown": "\"[A mountain landscape at sunset](https://unsplash.com/photos/abc123?utm_source=unsplash_mcp&utm_medium=referral)\" by [Jane Smith](https://unsplash.com/@janesmith?utm_source=unsplash_mcp&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=unsplash_mcp&utm_medium=referral)"
}The attribution_markdown field renders as:
"[A mountain landscape at sunset](https://unsplash.com/photos/abc123?utm_source=unsplash_mcp&utm_medium=referral)" by [Jane Smith](https://unsplash.com/@janesmith?utm_source=unsplash_mcp&utm_medium=referral) on [Unsplash](https://unsplash.com?utm_source=unsplash_mcp&utm_medium=referral)The same attribution field is returned as part of each search_photos result and the download_photo response.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Search CC0 photos and build placeholder image URLs at exact sizes with Lorem Picsum.
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
Download all images from any web page or extract image URLs, with sizes, formats and alt text.
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
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides access to the Unsplash API, enabling AI assistants to search and retrieve high-quality photos, browse collections, view photographer profiles, and get photo statistics with advanced filtering options.10MIT
- AlicenseBqualityDmaintenanceEnables users to search for high-quality photos on Unsplash with support for advanced filtering by orientation and content safety. It provides formatted photo metadata and images in either base64-encoded format or as JSON with URLs via stdio transport.144 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, recommend, and deliver professional stock photos from Unsplash with intelligent context awareness and automatic attribution management.22 npm64MIT
- AlicenseNot gradedqualityDmaintenanceEnables searching and downloading photos from Unsplash via the Unsplash API, with support for pagination, orientation filtering, and multiple resolutions.46 npm1MIT