Unsplash MCP Server

Unsplash MCP Server

一个轻量级的服务器,能够与 Unsplash 的图片库无缝集成,让开发者可以直接从 Cursor 编辑器中搜索带有各种滤镜的高质量照片。

Category
访问服务器

Tools

search_photos

Search for Unsplash photos Args: query: Search keyword page: Page number (1-based) per_page: Results per page (1-30) order_by: Sort method (relevant or latest) color: Color filter (black_and_white, black, white, yellow, orange, red, purple, magenta, green, teal, blue) orientation: Orientation filter (landscape, portrait, squarish) Returns: List[UnsplashPhoto]: List of search results containing photo objects with the following properties: - id: Unique identifier for the photo - description: Optional text description of the photo - urls: Dictionary of available image URLs in different sizes - width: Original image width in pixels - height: Original image height in pixels

README

Unsplash MCP 服务器

English | 简体中文

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

Python 3.9+ License: MIT smithery badge

📋 概述

Unsplash MCP 服务器用于搜索丰富、高质量的图片。它非常适合希望将 Unsplash 功能集成到自己的应用程序中的开发人员。

✨ 特性

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

🔑 获取 Unsplash 访问密钥

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

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

有关更多详细信息,请参阅 官方 Unsplash API 文档

🚀 安装

要通过 Smithery 自动安装用于 Claude Desktop 的 Unsplash 图片集成服务器:

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 Configuration Screenshot" />

{
  "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="Unsplash MCP in Cursor" />

🛠️ 可用工具

搜索照片

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

🔄 其他实现

📄 许可证

MIT License

📬 联系方式

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选