Unsplash MCP Server
v1.0.1MCP server for the Unsplash API: search & fetch photos with attribution + download tracking.
Values you need
| Variable | What it is | |
|---|---|---|
UNSPLASH_ACCESS_KEY | required secret | Your Unsplash API access key (sent as Authorization: Client-ID). |
UNSPLASH_APP_NAME | optional | Registered Unsplash app name, used as the attribution utm_source. |
LOG_LEVEL | optional | Log verbosity; all logs go to stderr. Default: info |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add unsplash-mcp-server -e 'UNSPLASH_ACCESS_KEY=<UNSPLASH_ACCESS_KEY>' -- npx -y @hanoak/unsplash-mcp-server@1.0.1Add to
claude_desktop_config.json{
"mcpServers": {
"unsplash-mcp-server": {
"args": [
"-y",
"@hanoak/unsplash-mcp-server@1.0.1"
],
"command": "npx",
"env": {
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"unsplash-mcp-server": {
"args": [
"-y",
"@hanoak/unsplash-mcp-server@1.0.1"
],
"command": "npx",
"env": {
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "UNSPLASH_ACCESS_KEY",
"id": "unsplash-access-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"unsplash-mcp-server": {
"args": [
"-y",
"@hanoak/unsplash-mcp-server@1.0.1"
],
"command": "npx",
"env": {
"UNSPLASH_ACCESS_KEY": "${input:unsplash-access-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.unsplash-mcp-server]
command = "npx"
args = ["-y", "@hanoak/unsplash-mcp-server@1.0.1"]
env = { "UNSPLASH_ACCESS_KEY" = "<UNSPLASH_ACCESS_KEY>" }For AI agents
- Ask the user for: UNSPLASH_ACCESS_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: unsplash_random_photo, unsplash_list_photos, unsplash_get_photo, unsplash_photo_statistics, unsplash_track_download, unsplash_search_photos, unsplash_search_collections, unsplash_search_users, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json