返回市场
无界-MCP服务器

无界-MCP服务器

作者:hellokaton189 星标更新:2025-07-07

项目介绍

【技术文档摘要】: MseeP.ai 安全评估徽章

Unsplash MCP 服务器

English | 简体中文

一个简单的 MCP 服务器,用于无缝集成和搜索 Unsplash 图像。

Python 3.9+ License: MIT smithery 徽章

📋 概述

Unsplash MCP 服务器用于搜索丰富且高质量的图像。它非常适合希望在其应用程序中集成 Unsplash 功能的开发者。

✨ 特性

  • 高级图像搜索:通过以下过滤器搜索 Unsplash 的广泛照片库:
    • 关键词相关性
    • 颜色方案
    • 方向选项
    • 自定义排序和分页

🔑 获取 Unsplash 访问密钥

在安装此服务器之前,您需要获取 Unsplash API 访问密钥:

  1. Unsplash 创建一个开发者账户。
  2. 注册一个新的应用程序。
  3. 从应用程序详情页面获取您的访问密钥。
  4. 在下面的配置步骤中使用此密钥。

更多详情,请参阅 官方 Unsplash API 文档

🚀 安装

要通过 Smithery 自动安装 Unsplash 图像集成服务器到 Claude Desktop:

IDE 设置

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 应该修改为您服务器脚本的实际位置(可以使用绝对路径或相对于工作区的路径)
<img src="screenshots/Snipaste_1.png" alt="Cursor 配置截图" />
{
  "mcpServers": {
    "unsplash": {
      "command": "uv",
      "args": ["run", "--with", "fastmcp", "fastmcp", "run", "./server.py"],
      "env": {
        "UNSPLASH_ACCESS_KEY": "${YOUR_ACCESS_KEY}"
      }
    }
  }
}

在 Cursor 中使用

<img src="screenshots/Snipaste_2.png" alt="Cursor 中的 Unsplash MCP" />

🛠️ 可用工具

搜索照片

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

🔄 其他实现

📄 许可证

MIT 许可证

📬 联系方式