Unsplash MCP Server

v1.0.1
io.github.hanoak/unsplash-mcp-server Checked 22 hours ago Published 4 months ago

MCP server for the Unsplash API: search & fetch photos with attribution + download tracking.

Values you need

VariableWhat it is
UNSPLASH_ACCESS_KEYrequired secret Your Unsplash API access key (sent as Authorization: Client-ID).
UNSPLASH_APP_NAMEoptional Registered Unsplash app name, used as the attribution utm_source.
LOG_LEVELoptional 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.1
Add 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

  1. Ask the user for: UNSPLASH_ACCESS_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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