English | 简体中文
一个简单的MCP服务器,用于无缝集成Unsplash图片和搜索功能。
Unsplash MCP Server 用于搜索丰富且高质量的图片。非常适合希望将Unsplash功能集成到自己应用程序中的开发者使用。
在安装此服务器之前,您需要获取Unsplash API访问密钥:
更多细节,请参考官方Unsplash API文档。
要通过Smithery自动为Claude Desktop安装Unsplash图像集成服务器:
Cursor IDE
npx -y @smithery/cli@latest install @hellokaton/unsplash-mcp-server --client cursor --key 7558c683-****-****
Windsurf
npx -y @smithery/cli@latest install @hellokaton/unsplash-mcp-server --client windsurf --key 7558c683-****-****
Cline
npx -y @smithery/cli@latest install @hellokaton/unsplash-mcp-server --client cline --key 7558c683-****-****
# Clone the repository
git clone https://github.com/hellokaton/unsplash-mcp-server.git
# Navigate to project directory
cd unsplash-mcp-server
# Create virtual environment
uv venv
# Install dependencies
uv pip install .

Cursor 编辑器集成
将以下配置添加到您的Cursor编辑器的settings.json
中:
⚠️ 注意: 请根据您的实际安装情况调整以下配置:
uv
不在您的系统PATH中,请使用绝对路径(例如/path/to/uv
)./server.py
应修改为您服务器脚本的实际位置(可以使用绝对路径或相对于工作区的路径){
"mcpServers": {
"unsplash": {
"command": "uv",
"args": ["run", "--with", "fastmcp", "fastmcp", "run", "./server.py"],
"env": {
"UNSPLASH_ACCESS_KEY": "${YOUR_ACCESS_KEY}"
}
}
}
}

{
"tool": "search_photos",
"query": "mountain",
"per_page": 5,
"orientation": "landscape"
}
