Unsplash照片搜索MCP服务

mcp-unsplash 是一个基于 Unsplash API 的 MCP 服务,提供高质量照片、图集和摄影师搜索,支持随机照片等功能,并可集成到 Claude Desktop 等支持 MCP 的客户端中。

  • by PetrefiedThunder
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 PetrefiedThunder/mcp-unsplash

使用说明

mcp-unsplash

Search high-quality photos, collections, and photographers via Unsplash.

Tools

Tool Description
search_photos Search for photos.
get_photo Get photo details.
random_photo Get a random photo.
list_collections Search photo collections.
search_users Search for photographers.

Configuration

Variable Required Description
UNSPLASH_ACCESS_KEY Yes Unsplash access key (free at unsplash.com/developers)

Installation

git clone https://github.com/PetrefiedThunder/mcp-unsplash.git
cd mcp-unsplash
npm install
npm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "unsplash": {
      "command": "node",
      "args": ["/path/to/mcp-unsplash/dist/index.js"],
      "env": {
        "UNSPLASH_ACCESS_KEY": "your-unsplash-access-key"
      }
    }
  }
}

Usage with npx

npx mcp-unsplash

License

Apache-2.0