English | 简体中文
一个简单的 MCP 服务器,用于无缝集成和搜索 Unsplash 图像。
Unsplash MCP 服务器用于搜索丰富且高质量的图像。它非常适合希望在其应用程序中集成 Unsplash 功能的开发者。
在安装此服务器之前,您需要获取 Unsplash API 访问密钥:
更多详情,请参阅 官方 Unsplash API 文档。
要通过 Smithery 自动安装 Unsplash 图像集成服务器到 Claude Desktop:
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-****-****
# 克隆仓库
git clone https://github.com/hellokaton/unsplash-mcp-server.git
# 导航到项目目录
cd unsplash-mcp-server
# 创建虚拟环境
uv venv
# 安装依赖项
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"
}