关于 Unsplash
Unsplash 是从 Unsplash 搜索和获取照片、用户资料、合集及主题的 MCP 服务,适合处理视觉素材的用户,提供搜索、浏览和照片相关信息等工具。
主要功能
- 01按筛选条件搜索照片
- 02获取单张照片
- 03浏览编辑精选照片
- 04浏览用户和合集
- 05浏览主题及主题照片
- 06查看照片使用统计
适用场景
- 01为视觉项目查找照片
- 02浏览摄影师作品
- 03探索合集或主题中的照片
- 04查看照片使用统计
MCP 相关
通过 Pipeworx 网关或独立 stdio 服务,向 MCP 客户端提供 Unsplash 照片、用户、合集和主题工具。网关端点还提供 Pipeworx 共享元工具。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/unsplash/mcpclaude mcp add --transport http pipeworx-io-unsplash https://gateway.pipeworx.io/unsplash/mcp{"mcpServers":{"pipeworx-io-unsplash":{"type":"http","url":"https://gateway.pipeworx.io/unsplash/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-unsplash":{"type":"http","url":"https://gateway.pipeworx.io/unsplash/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-unsplash":{"type":"http","url":"https://gateway.pipeworx.io/unsplash/mcp"}}}{"mcpServers":{"pipeworx-io-unsplash":{"serverUrl":"https://gateway.pipeworx.io/unsplash/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
@pipeworx/unsplash
Unsplash MCP — 搜索照片、照片、用户和合集。免费演示密钥每小时 50 次请求(生产环境审批后为每小时 5000 次)。
属于 Pipeworx — 一个将 AI Agent 连接到 1684+ 个实时数据源的 MCP 网关。
身份验证
- 平台:
PLATFORM_UNSPLASH_KEY。自带密钥:?_apiKey=…(Unsplash 访问密钥)。
工具
search_photos(query, page?, per_page?, order_by?, collections?, content_filter?, color?, orientation?)— 搜索照片photo(id)— 单张照片photo_random(query?, count?, collections?, topics?, username?, orientation?, content_filter?)— 随机照片photo_download(id)— 下载跟踪器 URL(使用返回的url)photo_statistics(id, resolution?, quantity?)— 使用统计数据list_photos(page?, per_page?, order_by?)— 编辑精选动态user(username)— 用户资料user_photos(username, page?, per_page?, order_by?, stats?, resolution?, quantity?, orientation?)— 用户的照片user_likes(username, page?, per_page?, order_by?, orientation?)— 用户喜欢的照片collections(page?, per_page?)— 列出合集collection(id)— 单个合集collection_photos(id, page?, per_page?, orientation?)— 合集中的照片topics(ids?, page?, per_page?, order_by?)— 主题topic(id_or_slug)— 单个主题topic_photos(id_or_slug, page?, per_page?, orientation?, order_by?)— 主题中的照片
数据源
https://api.unsplash.com
快速开始
添加到你的 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"unsplash": {
"url": "https://gateway.pipeworx.io/unsplash/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/unsplash/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 共享元工具——ask_pipeworx、discover_tools、search_within、remember/recall,以及网关全局工具集中的其他工具。因此,你看到的工具数量会多于此表所列:目前,单个工具包端点除了工具包自身的工具外,还会列出大约 30 个共享工具。连接的 initialize 响应会说明其确切范围,是当日情况的权威依据。
这是有意为之,并非意外多路复用。元工具让限定范围的连接也能回答此工具包未涵盖的问题——通过 ask_pipeworx 跨整个目录进行路由——无需额外添加第二个 MCP 服务。目前无法挂载不含这些元工具的工具包端点;如果额外的架构定义消耗的上下文超过了路由带来的收益,请连接一次完整网关,而不要连接多个工具包端点。
也可以连接完整的 Pipeworx 网关,直接列出所有工具包的工具,而不仅仅是此工具包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
两个 URL 都连接到同一个网关和相同的 1684+ 个数据源。唯一的区别是直接列出了哪个工具包的工具;无论使用哪个 URL,ask_pipeworx 都可以访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/search_photos \
-H 'Content-Type: application/json' \
-d '{"query":"mountain landscape"}'
首次调用无需账户。检查任意工具:GET https://gateway.pipeworx.io/v1/tools/search_photos。查找工具:使用 {"query":"..."} 向 https://gateway.pipeworx.io/v1/tools/search_packs 发送 POST 请求。
独立运行(无需网关账户)
此软件包也可以作为本地 stdio MCP 服务运行——无需 Pipeworx 账户,也无需经过网关:
{
"mcpServers": {
"unsplash": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-unsplash"]
}
}
}
也可以直接运行它,确认服务能够启动:
npx -y @pipeworx/mcp-unsplash
它通过 stdin/stdout 使用 MCP,并响应 initialize/tools/list/tools/call,提供仅此工具包的工具——不包含上述网关连接额外添加的共享元工具。数据源相同,工具相同,但没有 ask_pipeworx 路由。
使用 ask_pipeworx
除了直接调用工具,你也可以用自然语言提问——此功能既适用于上面的工具包端点,也适用于完整网关:
ask_pipeworx({ question: "your question about Unsplash data" })
网关会自动选择合适的工具并填入参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。