Sponsored by Deepsite.site

Unsplash Mcp

Created By
cevatkerim25 days ago
An MCP (Model Context Protocol) server for searching and fetching Unsplash photos with proper attribution. Built for LLM workflows that generate content pages and need compliant, ready-to-embed credits.
Content

Unsplash MCP Server

Fetch high-quality Unsplash photos via MCP with proper attribution (plain text + ready-to-embed HTML). Designed for LLMs that build content pages and need correctly credited images.

Features

  • Search photos by keyword with filters (color, orientation)
  • Random photos for variety in content
  • Download tracking to stay compliant with Unsplash API guidelines
  • Full attribution included for every photo:
    • attribution_text (plain text)
    • attribution_html (HTML with proper links)

Why this server?

Unsplash requires proper attribution when using their photos. This server makes it easy by returning attribution alongside every photo result, ready to paste into web pages.

Installation

Prerequisites

  • Python 3.11+
  • An Unsplash API Access Key

Quick start

git clone https://github.com/cevatkerim/unsplash-mcp.git  
cd unsplash-mcp  
  
python3 -m venv .venv  
source .venv/bin/activate  
  
pip install fastmcp httpx python-dotenv  
  
echo "UNSPLASH_ACCESS_KEY=your_key_here" > .env  
  
fastmcp run server.py  

Configuration

Claude Code (~/.claude.json or project .mcp.json)

{  
  "mcpServers": {  
    "unsplash": {  
      "type": "stdio",  
      "command": "/path/to/unsplash-mcp/.venv/bin/fastmcp",  
      "args": ["run", "/path/to/unsplash-mcp/server.py"],  
      "env": {  
        "UNSPLASH_ACCESS_KEY": "your_access_key_here"  
      }  
    }  
  }  
}  

Cursor

{  
  "mcpServers": {  
    "unsplash": {  
      "command": "/path/to/unsplash-mcp/.venv/bin/fastmcp",  
      "args": ["run", "/path/to/unsplash-mcp/server.py"],  
      "env": {  
        "UNSPLASH_ACCESS_KEY": "your_access_key_here"  
      }  
    }  
  }  
}  

Windsurf / Cline

{  
  "unsplash": {  
    "command": "/path/to/unsplash-mcp/.venv/bin/fastmcp",  
    "args": ["run", "/path/to/unsplash-mcp/server.py"],  
    "env": {  
      "UNSPLASH_ACCESS_KEY": "your_access_key_here"  
    }  
  }  
}  

Tools

search_photos

Search by keyword with optional filters:

  • query (required)
  • page (default: 1)
  • per_page (default: 10, range 1–30)
  • order_by (default: "relevant", or "latest")
  • color (optional): black_and_white, black, white, yellow, orange, red, purple, magenta, green, teal, blue
  • orientation (optional): landscape, portrait, squarish
  • content_filter (default: "low", or "high")

Example:

search_photos("mountain sunset", per_page=5, orientation="landscape")  

get_random_photos

Get random photos (optionally filtered):

  • query (optional)
  • count (default: 1, range 1–30)
  • orientation (optional)
  • content_filter (default: "low" or "high")

Example:

get_random_photos(query="nature", count=3, orientation="landscape")  

track_download

Track a photo download (required by Unsplash API guidelines):

  • photo_id (required)

Example:

track_download("abc123xyz")  

Response format (high level)

Each photo includes image URLs plus attribution fields like:

  • attribution_text: Photo by John Doe on Unsplash
  • attribution_html: Photo by <a href="...">John Doe</a> on <a href="...">Unsplash</a>

Usage example

  1. Search:
photos = search_photos("coffee shop interior", per_page=5)  
  1. Render:
<img src="{photo.urls.regular}" alt="{photo.alt_description}">  
<p class="attribution">{photo.attribution_html}</p>  
  1. Track download (if you provide a download action):
download_url = track_download(photo.id)  

Notes on compliance

  • Always include attribution (use attribution_html)
  • Hotlink images using the returned URLs
  • Track downloads using track_download() when users download images

License

MIT

Server Config

{
  "mcpServers": {
    "unsplash": {
      "type": "stdio",
      "command": "/path/to/unsplash-mcp/.venv/bin/fastmcp",
      "args": [
        "run",
        "/path/to/unsplash-mcp/server.py"
      ],
      "env": {
        "UNSPLASH_ACCESS_KEY": "your_access_key_here"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Tavily Mcp
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
CursorThe AI Code Editor
DeepChatYour AI Partner on Desktop
Playwright McpPlaywright MCP server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
ChatWiseThe second fastest AI chatbot™
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
WindsurfThe new purpose-built IDE to harness magic
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server