这是一个提供 Unsplash 图片搜索和检索能力的 Model Context Protocol 服务器。该服务器使 LLM 能够在 Unsplash 的庞大图片库中进行搜索、检索和获取随机图片。这是一个用 Go 实现的工具,提供了诸如
search_photos、get_photo和random_photo等功能。
search_photos - 在 Unsplash 上搜索照片
query (字符串,必需):搜索关键词page (数字,可选):页面编号(从 1 开始),默认值:1per_page (数字,可选):每页结果数(1-30),默认值:10order_by (字符串,可选):排序方法(relevant 或 latest),默认值:"relevant"color (字符串,可选):颜色过滤器(black_and_white, black, white, yellow, orange, red, purple, magenta, green, teal, blue)orientation (字符串,可选):方向过滤器(landscape, portrait, squarish)get_photo - 获取特定照片的详细信息
photoId (字符串,必需):要检索的照片 IDrandom_photo - 获取一个或多个随机照片
count (数字,可选):返回的照片数量(默认值:1;最大值:30)collections (字符串,可选):用于筛选选择的公共集合 ID(如果多个,则逗号分隔)topics (字符串,可选):用于筛选选择的公共主题 ID(如果多个,则逗号分隔)username (字符串,可选):限制选择到特定用户query (字符串,可选):限制选择到匹配搜索词的照片orientation (字符串,可选):按照片方向过滤。有效值:landscape, portrait, squarishcontent_filter (字符串,可选):按内容安全性限制结果。有效值:low, highfeatured (布尔值,可选):限制选择到特色照片从 GitHub Releases 页面下载适用于您平台的最新预构建二进制文件,并按照下面的安装说明操作。
<details> <summary><b>macOS 安装</b></summary># 下载 arm64 版本
curl -L https://github.com/okooo5km/unsplash-mcp-server-go/releases/latest/download/unsplash-mcp-server-macos-arm64.zip -o unsplash-mcp-server.zip
unzip unsplash-mcp-server.zip
chmod +x unsplash-mcp-server
# 移除隔离属性以避免安全警告
xattr -d com.apple.quarantine unsplash-mcp-server
# 安装到本地 bin 目录
mkdir -p ~/.local/bin
mv unsplash-mcp-server ~/.local/bin/
rm unsplash-mcp-server.zip
# 下载 x86_64 版本
curl -L https://github.com/okooo5km/unsplash-mcp-server-go/releases/latest/download/unsplash-mcp-server-macos-x86_64.zip -o unsplash-mcp-server.zip
unzip unsplash-mcp-server.zip
chmod +x unsplash-mcp-server
# 移除隔离属性以避免安全警告
xattr -d com.apple.quarantine unsplash-mcp-server
# 安装到本地 bin 目录
mkdir -p ~/.local/bin
mv unsplash-m[...]