Production-ready Model Context Protocol (MCP) server for the Unsplash API — search & fetch photos, collections, topics, users, and stats, with built-in attribution and download-tracking compliance. For Claude, Cursor, and any MCP client. Unofficial.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add unsplash-server-hanoak --env UNSPLASH_ACCESS_KEY='<UNSPLASH_ACCESS_KEY>' -- npx -y @hanoak/unsplash-mcp-server~/.codex/config.toml
[mcp_servers.unsplash-server-hanoak]
command = "npx"
args = ["-y", "@hanoak/unsplash-mcp-server"]
env = { UNSPLASH_ACCESS_KEY = "<UNSPLASH_ACCESS_KEY>" }
# codex mcp add unsplash-server-hanoak --env UNSPLASH_ACCESS_KEY='<UNSPLASH_ACCESS_KEY>' -- npx -y @hanoak/unsplash-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"unsplash-server-hanoak": {
"command": "npx",
"args": [
"-y",
"@hanoak/unsplash-mcp-server"
],
"env": {
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"unsplash-server-hanoak": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hanoak/unsplash-mcp-server"
],
"env": {
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"unsplash-server-hanoak": {
"command": "npx",
"args": [
"-y",
"@hanoak/unsplash-mcp-server"
],
"env": {
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"unsplash-server-hanoak": {
"command": "npx",
"args": [
"-y",
"@hanoak/unsplash-mcp-server"
],
"env": {
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"unsplash-server-hanoak": {
"command": "npx",
"args": [
"-y",
"@hanoak/unsplash-mcp-server"
],
"env": {
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}需要的环境变量
UNSPLASH_ACCESS_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。