Unsplash MCP Server
Provides access to the Unsplash API for searching and retrieving high-quality photos, managing collections, viewing user profiles and portfolios, and accessing photo statistics with advanced filtering options for orientation, color, and content safety.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Unsplash MCP Server search for mountain sunset photos with orange colors"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Unsplash MCP Server
A Model Context Protocol (MCP) server that provides access to the Unsplash API, enabling AI assistants to search and retrieve high-quality, free-to-use photos.
Features
π Search Photos: Search millions of high-quality photos by keywords with advanced filters
πΈ Photo Details: Get detailed information about specific photos including EXIF data
π² Random Photos: Get random photos, optionally filtered by query or orientation
π Collections: Search and browse curated photo collections
π€ User Profiles: Search photographers and view their portfolios
π Statistics: Get view, download, and like statistics for photos
π¨ Advanced Filters: Filter by orientation, color, content safety level
π Multiple Formats: Response in JSON or Markdown format
Related MCP server: Unsplash MCP Server
Installation
Prerequisites
Node.js 18 or higher
An Unsplash API access key
Getting an Unsplash API Key
Visit Unsplash Developers
Create an account or log in
Click "New Application"
Fill in the required details and accept the terms
Copy your Access Key
Note: Demo accounts are limited to 50 requests per hour. Apply for production access for higher limits.
Setup
# Clone or download this repository
cd unsplash-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Set your API key
export UNSPLASH_ACCESS_KEY=your_access_key_hereUsage
Running with stdio (for Claude Desktop, etc.)
npm start
# or
node dist/index.jsRunning with HTTP transport
TRANSPORT=http PORT=3000 npm startConfiguration for Claude Desktop
Add to your Claude Desktop configuration file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"unsplash": {
"command": "node",
"args": ["/path/to/unsplash-mcp-server/dist/index.js"],
"env": {
"UNSPLASH_ACCESS_KEY": "your_access_key_here"
}
}
}
}Available Tools
Photo Search & Retrieval
unsplash_search_photos
Search for photos by keywords with advanced filtering.
Parameters:
query(string, required): Search keywordspage(number): Page number (default: 1)per_page(number): Results per page, 1-30 (default: 10)orientation(string): Filter by "landscape", "portrait", or "squarish"content_filter(string): "low" (default) or "high" safety filtercolor(string): Filter by color name (e.g., "black", "white", "red")order_by(string): Sort by "relevant" (default) or "latest"response_format(string): "markdown" (default) or "json"
Example:
Search for: "mountain sunset"
Filter by: orientation="landscape", color="orange"unsplash_get_photo
Get detailed information about a specific photo.
Parameters:
id(string, required): Unsplash photo IDresponse_format(string): "markdown" or "json"
unsplash_get_random
Get one or more random photos.
Parameters:
query(string): Optional search filterorientation(string): Filter by orientationcontent_filter(string): Safety filter levelcount(number): Number of photos, 1-30 (default: 1)response_format(string): Output format
unsplash_list_photos
List photos from Unsplash's editorial feed.
Parameters:
page(number): Page numberper_page(number): Results per pageorder_by(string): "latest", "oldest", or "popular"response_format(string): Output format
unsplash_get_statistics
Get view, download, and like statistics for a photo.
Parameters:
id(string, required): Photo IDresponse_format(string): Output format
unsplash_track_download
Track a photo download (required by Unsplash API guidelines).
Parameters:
id(string, required): Photo ID being downloaded
Important: Always call this before downloading/using a photo programmatically.
Collections
unsplash_search_collections
Search for curated photo collections.
Parameters:
query(string, required): Search keywordspage(number): Page numberper_page(number): Results per pageresponse_format(string): Output format
unsplash_get_collection_photos
Get photos from a specific collection.
Parameters:
id(string, required): Collection IDpage(number): Page numberper_page(number): Results per pageorientation(string): Filter by orientationresponse_format(string): Output format
Users
unsplash_search_users
Search for photographers and users.
Parameters:
query(string, required): Search keywordspage(number): Page numberper_page(number): Results per pageresponse_format(string): Output format
unsplash_get_user_photos
Get photos by a specific user.
Parameters:
username(string, required): Unsplash usernamepage(number): Page numberper_page(number): Results per pageorder_by(string): "latest", "oldest", or "popular"orientation(string): Filter by orientationresponse_format(string): Output format
API Guidelines & Attribution
Unsplash API Usage
When using photos from Unsplash:
Track Downloads: Always call
unsplash_track_downloadwhen downloading photos programmaticallyAttribution: While not required, attribution to photographers is appreciated
Hotlinking: Use the Unsplash CDN URLs directly (don't re-host images)
Rate Limits: Demo accounts have 50 requests/hour; production accounts have higher limits
Example Attribution
Photo by [Photographer Name] on UnsplashDevelopment
Project Structure
unsplash-mcp-server/
βββ src/
β βββ index.ts # Main entry point
β βββ types.ts # TypeScript type definitions
β βββ constants.ts # Configuration constants
β βββ services/
β β βββ unsplash-client.ts # API client
β β βββ formatters.ts # Response formatting
β βββ schemas/
β β βββ index.ts # Zod validation schemas
β βββ tools/
β βββ photos.ts # Photo-related tools
β βββ collections-users.ts # Collection/user tools
βββ dist/ # Compiled JavaScript
βββ package.json
βββ tsconfig.json
βββ README.mdBuilding
npm run buildDevelopment with Watch Mode
npm run devError Handling
The server provides clear error messages for common issues:
401 Unauthorized: Invalid or missing API key
403 Forbidden: Rate limit exceeded or insufficient permissions
404 Not Found: Photo, collection, or user doesn't exist
Network errors: Connection issues with Unsplash API
License
MIT License - See LICENSE file for details
Credits
Built with the MCP TypeScript SDK
Uses the Unsplash API
All photos provided by Unsplash photographers
Support
For issues with:
This MCP server: Open an issue in this repository
Unsplash API: Contact api@unsplash.com or visit Unsplash Help
MCP Protocol: See MCP Documentation
Available Tools
10 toolsunsplash_get_collection_photosGet Collection PhotosARead-onlyIdempotent
Get all photos from a specific Unsplash collection.
Use this to retrieve photos from a curated collection. First use unsplash_search_collections to find collection IDs.
Args:
id (string): Collection ID
page (number): Page number for pagination (default: 1)
per_page (number): Results per page, 1-30 (default: 10)
orientation (string, optional): Filter by 'landscape', 'portrait', or 'squarish'
response_format (string): Output as 'markdown' (default) or 'json'
Returns: Array of photos from the collection
Examples:
Get collection photos: id="3330445"
Portrait photos only: id="3330445", orientation="portrait"
Inputs: id (required), page, per_page, orientation, +1 more.
unsplash_get_photoGet Photo DetailsARead-onlyIdempotent
Retrieve detailed information about a specific Unsplash photo by its ID.
This tool fetches complete metadata for a photo including dimensions, photographer info, EXIF data, location, tags, and download URLs.
Args:
id (string): Unsplash photo ID (e.g., "LBI7cgq3pbM")
response_format (string): Output as 'markdown' (default) or 'json'
Returns: For JSON format: Complete photo object with all metadata { "id": string, "width": number, "height": number, "color": string, "blur_hash": string, "likes": number, "description": string, "alt_description": string, "created_at": string, "urls": { ... }, "links": { ... }, "user": { ... }, "exif": { ... }, // Camera settings if available "location": { ... }, // Photo location if available "tags": [ ... ] }
Examples:
Get photo details: id="LBI7cgq3pbM"
Use unsplash_search_photos first to find photo IDs.
Inputs: id (required), response_format.
unsplash_get_randomGet Random PhotosARead-only
Get one or more random photos from Unsplash, optionally filtered by search query or orientation.
This tool is perfect for getting inspiration, placeholder images, or diverse photo content. You can narrow the selection with search terms.
Args:
query (string, optional): Search terms to filter random selection
orientation (string, optional): Filter by 'landscape', 'portrait', or 'squarish'
content_filter (string): Safety level 'low' (default) or 'high'
count (number): Number of random photos (1-30, default: 1)
response_format (string): Output as 'markdown' (default) or 'json'
Returns: For JSON format: Array of photo objects For Markdown: Formatted list of photos with details
Examples:
Single random photo: (no parameters)
Random nature photos: query="nature", count=5
Random portraits: orientation="portrait", count=3
Note: Each request returns different random photos.
Inputs: count, query, orientation, content_filter, +1 more.
unsplash_get_statisticsGet Photo StatisticsBRead-only
Get view, download, and like statistics for a specific photo.
This tool provides detailed analytics including total counts and recent trends for a photo's popularity.
Args:
id (string): Unsplash photo ID
response_format (string): Output as 'markdown' (default) or 'json'
Returns: Statistics including downloads, views, likes with historical trends
Examples:
Get stats: id="LBI7cgq3pbM"
Inputs: id (required), response_format.
unsplash_get_user_photosGet User's PhotosARead-onlyIdempotent
Get photos uploaded by a specific Unsplash user/photographer.
Retrieve the portfolio of a photographer. Use unsplash_search_users first to find usernames.
Args:
username (string): Unsplash username
page (number): Page number for pagination (default: 1)
per_page (number): Results per page, 1-30 (default: 10)
order_by (string): Sort by 'latest' (default), 'oldest', or 'popular'
orientation (string, optional): Filter by 'landscape', 'portrait', or 'squarish'
response_format (string): Output as 'markdown' (default) or 'json'
Returns: Array of photos by the user
Examples:
Get user photos: username="johndoe"
Popular photos: username="johndoe", order_by="popular"
Inputs: username (required), page, order_by, per_page, +2 more.
unsplash_list_photosList Editorial PhotosARead-onlyIdempotent
List photos from Unsplash's editorial feed - curated high-quality photos.
This tool provides access to Unsplash's main photo feed, sorted by latest, oldest, or most popular.
Args:
page (number): Page number for pagination (default: 1)
per_page (number): Results per page, 1-30 (default: 10)
order_by (string): Sort by 'latest' (default), 'oldest', or 'popular'
response_format (string): Output as 'markdown' (default) or 'json'
Returns: For JSON format: Array of photo objects For Markdown: Formatted list with pagination info
Examples:
Latest photos: order_by="latest"
Most popular: order_by="popular", per_page=20
Inputs: page, order_by, per_page, response_format.
unsplash_search_collectionsSearch Photo CollectionsARead-onlyIdempotent
Search for curated photo collections on Unsplash.
Collections are curated sets of photos organized by theme, created by Unsplash users. Use this to find themed photo sets.
Args:
query (string): Search keywords for collections
page (number): Page number for pagination (default: 1)
per_page (number): Results per page, 1-30 (default: 10)
response_format (string): Output as 'markdown' (default) or 'json'
Returns: For JSON format: Search results with collection metadata { "total": number, "total_pages": number, "results": [ { "id": string, "title": string, "description": string, "total_photos": number, "user": { ... }, "links": { ... } } ] }
Examples:
Find travel collections: query="travel"
Architecture collections: query="architecture"
Inputs: query (required), page, per_page, response_format.
unsplash_search_photosSearch Unsplash PhotosARead-onlyIdempotent
Search for photos on Unsplash by keywords with advanced filtering options.
This tool searches through millions of high-quality, free-to-use photos from the Unsplash platform. You can filter by orientation, color, content safety level, and sort by relevance or recency.
Args:
query (string): Search keywords (e.g., "mountain sunset", "coffee cup", "architecture")
page (number): Page number for pagination (default: 1)
per_page (number): Results per page, 1-30 (default: 10)
orientation (string, optional): Filter by 'landscape', 'portrait', or 'squarish'
content_filter (string): Safety level 'low' (default) or 'high'
color (string, optional): Filter by color name (e.g., 'black', 'white', 'yellow', 'red')
order_by (string): Sort by 'relevant' (default) or 'latest'
response_format (string): Output as 'markdown' (default) or 'json'
Returns: For JSON format: Complete search results with metadata { "total": number, // Total matching photos "total_pages": number, // Total pages available "page": number, // Current page "per_page": number, // Results per page "results": [ // Array of photo objects { "id": string, "width": number, "height": number, "color": string, "likes": number, "description": string, "alt_description": string, "urls": { "raw": string, "full": string, "regular": string, "small": string, "thumb": string }, "links": { "html": string, // Unsplash page URL "download": string }, "user": { "name": string, "username": string } } ] }
Examples:
Search for nature photos: query="forest waterfall"
Find portrait photos: query="portrait", orientation="portrait"
Latest tech photos: query="technology", order_by="latest"
Note: All photos from Unsplash are free to use. Attribution to the photographer is appreciated but not required.
Inputs: query (required), page, color, order_by, +4 more.
unsplash_search_usersSearch PhotographersARead-onlyIdempotent
Search for photographers and users on Unsplash.
Find photographers by name or username to explore their portfolio.
Args:
query (string): Search keywords for users/photographers
page (number): Page number for pagination (default: 1)
per_page (number): Results per page, 1-30 (default: 10)
response_format (string): Output as 'markdown' (default) or 'json'
Returns: For JSON format: User search results { "total": number, "total_pages": number, "results": [ { "id": string, "username": string, "name": string, "total_photos": number, "total_likes": number, "total_collections": number, "links": { ... } } ] }
Examples:
Find photographer: query="John Doe"
Search username: query="photographer123"
Inputs: query (required), page, per_page, response_format.
unsplash_track_downloadTrack Photo DownloadAIdempotent
Track a photo download (required by Unsplash API guidelines when downloading photos).
When you download a photo programmatically, you must call this tool to properly attribute the download to the photographer. This helps photographers understand how their work is being used.
Args:
id (string): Unsplash photo ID being downloaded
Returns: Confirmation that download was tracked
Examples:
Track download: id="LBI7cgq3pbM"
IMPORTANT: Always call this before downloading/using a photo programmatically.
Inputs: id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 10 tools
Each tool maps to a distinct resource+action pair: searching vs. listing the editorial feed vs. random selection vs. fetching by ID are clearly separated by their descriptions and arguments. Collections and users each have a search/discover tool paired with a retrieval tool, so boundaries remain unambiguous.
Every tool uses the same 'unsplash_verb_noun' pattern (search_photos, get_photo, list_photos, get_collection_photos, search_users, etc.). Verbs are used consistently for the same semantic action across resources, making the pattern fully predictable.
Ten tools is well-scoped for the Unsplash API surface: core photo operations, discovery, collections, users, and download attribution. No tool feels redundant or padded, and none of the major API areas are split into unnecessary fragments.
Coverage is strong across photos, collections, users, and analytics, including the mandatory download-tracking call. Minor gaps remain: there is no direct download/fetch tool (only tracking), no single-user profile lookup, and no collection-detail or topic endpoints, though agents can work around these via returned URLs.
Maintenance
Related MCP Connectors
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
Run AI-powered analysis on images including moderation, captioning, tagging, and more.
Upload, generate, organize, search, and transform images, videos, and files with AI-powered tools.
Upload, generate, organize, search, and transform images, videos, and files with AI-powered tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search, recommend, and deliver professional stock photos from Unsplash with intelligent context awareness and automatic attribution management.26 npm64MIT
- AlicenseNot gradedqualityDmaintenanceEnables searching and downloading photos from Unsplash via the Unsplash API, with support for pagination, orientation filtering, and multiple resolutions.191 npm1MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to search and retrieve Unsplash photos with filters, random photo selection, and compliant download tracking, while providing ready-to-use attribution text and HTML.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to search and retrieve random Unsplash photos with ready-to-use attribution, and to track downloads, using the caller's own API key over stateless HTTP or local stdio connections.MIT