I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

Unsplash-MCP-Server-Swift
迅速实现Hellokaton/Unsplash-MCP-Server,并具有诸如get_photo和andural_photo之类的其他功能
3 years
Works with Finder
1
Github Watches
1
Github Forks
7
Github Stars
Unsplash MCP Server
A Model Context Protocol server that provides Unsplash photo search and retrieval capabilities. This server enables LLMs to search, retrieve, and get random photos from Unsplash's extensive collection. This is a Swift implementation of the Python version, with additional features like
get_photo
andrandom_photo
.
✨ Features
-
Advanced Image Search: Search Unsplash's extensive photo library with filters for:
- Keyword relevance
- Color schemes
- Orientation options
- Custom sorting and pagination
- Detailed Photo Information: Get comprehensive details about specific photos including EXIF data, location, and photographer information
- Random Photo Selection: Get random photos with flexible filtering options
Available Tools
-
search_photos
- Search for photos on Unsplash-
query
(string, required): Search keyword -
page
(number, optional): Page number (1-based), default: 1 -
perPage
(number, optional): Results per page (1-30), default: 10 -
orderBy
(string, optional): Sort method (relevant or latest), default: "relevant" -
color
(string, optional): Color filter (black_and_white, black, white, yellow, orange, red, purple, magenta, green, teal, blue) -
orientation
(string, optional): Orientation filter (landscape, portrait, squarish)
-
-
get_photo
- Get detailed information about a specific photo-
photoId
(string, required): The photo ID to retrieve
-
-
random_photo
- Get one or more random photos-
count
(number, optional): The number of photos to return (Default: 1; Max: 30) -
collections
(string, optional): Public collection ID('s) to filter selection. If multiple, comma-separated -
topics
(string, optional): Public topic ID('s) to filter selection. If multiple, comma-separated -
username
(string, optional): Limit selection to a specific user -
query
(string, optional): Limit selection to photos matching a search term -
orientation
(string, optional): Filter by photo orientation. Valid values: landscape, portrait, squarish -
content_filter
(string, optional): Limit results by content safety. Valid values: low, high -
featured
(boolean, optional): Limit selection to featured photos
-
Installation
Option 1: One-Line Installation (curl)
The easiest way to install is with the one-line installer, which automatically downloads the latest version and installs it to ~/.local/bin
in your home directory:
curl -fsSL https://raw.githubusercontent.com/okooo5km/unsplash-mcp-server-swift/main/install.sh | bash
The installer will:
- Create
~/.local/bin
if it doesn't exist - Add this directory to your PATH (in .zshrc or .bashrc)
- Download and install the latest version
- Make the binary executable
Option 2: Build from Source
-
Clone the repository:
git clone https://github.com/okooo5km/unsplash-mcp-server-swift.git cd unsplash-mcp-server-swift
-
Build the project:
swift build -c release
-
Install the binary:
# Install to user directory (recommended, no sudo required) mkdir -p ~/.local/bin cp $(swift build -c release --show-bin-path)/unsplash-mcp-server ~/.local/bin/
Make sure
~/.local/bin
is in your PATH by adding to your shell configuration file:echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc # or ~/.bashrc source ~/.zshrc # or source ~/.bashrc
Configuration
Environment Variables
The server requires an Unsplash API access key to function. Set it in your environment:
export UNSPLASH_ACCESS_KEY="your-access-key-here"
- Unsplash API Access Key (register at Unsplash Developers Portal)
Obtain an Unsplash API Access Key
- Go to the Unsplash Developers Portal
- Sign up or log in to your Unsplash account
- Register a new application
- Accept the API use and guidelines
- Fill in your application details (name, description, etc.)
- Once registered, you'll receive your Access Key (also called Client ID)
Configure for Claude.app
Add to your Claude settings:
"mcpServers": {
"unsplash": {
"command": "unsplash-mcp-server"
}
}
Configure for Cursor
Add the following configuration to your Cursor editor's settings.json
:
{
"mcpServers": {
"unsplash": {
"command": "unsplash-mcp-server",
"env": {
"UNSPLASH_ACCESS_KEY": "${YOUR_ACCESS_KEY}"
}
}
}
}
Configure for Chatwise
Note: When adding environment variables in Chatwise, do not wrap the value in quotes (fixes #1)
Use in Chatwise
Development Requirements
- Swift 6.0 or later
- macOS 14.0 or later
- Unsplash API access key
- MCP Swift SDK 0.2.0 or later
Version History
See GitHub Releases for version history and changelog.
☕️ Support the Project
If you find unsplash-mcp-server useful, please consider supporting its development:
- ⭐️ Star the project on GitHub
- 🐛 Report bugs or suggest features in the issue tracker
- 🔄 Submit pull requests to help improve the code
- 💝 Support via:
License
unsplash-mcp-server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
相关推荐
Confidential guide on numerology and astrology, based of GG33 Public information
A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.
Therapist adept at identifying core issues and offering practical advice with images.
A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!
一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。
Reviews

user_9jbWGyZc
The unsplash-mcp-server-swift by okooo5km is an excellent tool for integrating Unsplash API with Swift-based applications. The documentation is clear and the setup process is straightforward, making it accessible even for beginners. It’s an invaluable resource for developers looking to seamlessly incorporate high-quality images into their projects. Highly recommend!