Search Unsplash photos with filters.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add unsplash --env CLIENT='<CLIENT>' --env KEY='<KEY>' --env UNSPLASH_ACCESS_KEY='<UNSPLASH_ACCESS_KEY>' -- npx -y @smithery/cli@latest install @hellokaton/unsplash-mcp-server --client '{{config.CLIENT}}' --key '{{config.KEY}}'~/.codex/config.toml
[mcp_servers.unsplash]
command = "npx"
args = ["-y", "@smithery/cli@latest", "install", "@hellokaton/unsplash-mcp-server", "--client", "{{config.CLIENT}}", "--key", "{{config.KEY}}"]
env = { CLIENT = "<CLIENT>", KEY = "<KEY>", UNSPLASH_ACCESS_KEY = "<UNSPLASH_ACCESS_KEY>" }
# codex mcp add unsplash --env CLIENT='<CLIENT>' --env KEY='<KEY>' --env UNSPLASH_ACCESS_KEY='<UNSPLASH_ACCESS_KEY>' -- npx -y @smithery/cli@latest install @hellokaton/unsplash-mcp-server --client '{{config.CLIENT}}' --key '{{config.KEY}}'~/.cursor/mcp.json
{
"mcpServers": {
"unsplash": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"install",
"@hellokaton/unsplash-mcp-server",
"--client",
"{{config.CLIENT}}",
"--key",
"{{config.KEY}}"
],
"env": {
"CLIENT": "<CLIENT>",
"KEY": "<KEY>",
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"unsplash": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"install",
"@hellokaton/unsplash-mcp-server",
"--client",
"{{config.CLIENT}}",
"--key",
"{{config.KEY}}"
],
"env": {
"CLIENT": "<CLIENT>",
"KEY": "<KEY>",
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"unsplash": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"install",
"@hellokaton/unsplash-mcp-server",
"--client",
"{{config.CLIENT}}",
"--key",
"{{config.KEY}}"
],
"env": {
"CLIENT": "<CLIENT>",
"KEY": "<KEY>",
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"unsplash": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"install",
"@hellokaton/unsplash-mcp-server",
"--client",
"{{config.CLIENT}}",
"--key",
"{{config.KEY}}"
],
"env": {
"CLIENT": "<CLIENT>",
"KEY": "<KEY>",
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"unsplash": {
"command": "npx",
"args": [
"-y",
"@smithery/cli@latest",
"install",
"@hellokaton/unsplash-mcp-server",
"--client",
"{{config.CLIENT}}",
"--key",
"{{config.KEY}}"
],
"env": {
"CLIENT": "<CLIENT>",
"KEY": "<KEY>",
"UNSPLASH_ACCESS_KEY": "<UNSPLASH_ACCESS_KEY>"
}
}
}
}需要的环境变量
CLIENTKEYUNSPLASH_ACCESS_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。