Purpose: This is a Model Context Protocol (MCP) server for the Unsplash API, giving MCP clients such as Claude Desktop, Claude Code, Cursor, VS Code, and Windsurf the ability to search for and retrieve Unsplash photos, collections, topics, users, and statistics. The project is unofficial and is not affiliated with or sponsored by Unsplash; users must comply with the Unsplash API terms and guidelines on their own.
Main capabilities: Provides 29 tools covering photos, search, users, collections, topics, statistics, and profiles; 21 of these are read-only tools, and after logging in there are an additional 8 write/me tools. Built-in compliance support: each photo comes with ready-to-use attribution (plain text and HTML with UTM), and an unsplash_track_download tool is provided for download tracking. Search and random photos default to content_filter=high. Each photo returns multiple sizes (raw/full/regular/small/thumb) and the imgix base URL. Output is trimmed to save tokens and does not return base64 images. It includes retries, timeouts, handling of the 403 hourly limit, and rate limit display; error output hides the access key, and download URLs are protected against SSRF.
How to use: First register an application at unsplash.com/developers to get an Access Key (not the Secret Key). Add an mcpServers block to the MCP client configuration, with the command npx and the arguments ["-y", "@hanoak/unsplash-mcp-server"], passing the key via an environment variable. It also works with generic stdio clients. To use the 8 write/me tools, you need to add http://localhost:8734/callback as the callback address on the application page and configure the Secret Key, then run npx @hanoak/unsplash-mcp-server login to complete the OAuth login; the token is saved at ~/.config/unsplash-mcp-server/credentials.json; run logout to remove it.
Use cases: Provide AI assistants with attributed image retrieval, topic galleries, photographer portfolio displays, platform statistics briefings, and, after logging in, management of profiles, collections, and photo metadata.
Limitations: This is a search and metadata tool intended for single, attributed photo use; it does not replace the core Unsplash experience, nor does it perform automated bulk downloads. Rate limits depend on the application tier; the Demo tier allows 50 requests per hour, while the Production tier requires Unsplash review. Node.js 20 or later is required. Photo descriptions, tags, usernames, and similar content come from third-party contributors and should be treated as untrusted data; any instructions they may contain should not be executed. The project has no telemetry and only accesses api.unsplash.com.