XF

xcollantes/free-stock-images-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

16 stars 9 forks 품질 62 트렌드 21MIT

MCP server for getting free stock images.

개요

A Model Context Protocol (MCP) server that provides access to multiple free stock image sources including Unsplash, Pexels, Pixabay, Freepik, Burst, and StockVault. - 🎨 : Access 6 popular free stock image platforms - 🔍 : Search across all sources with a single query - 🔗 : Get direct URLs to browse and download images - 📋 : Guidance on checking license requirements - 🚀 : Lightweight server with minimal dependencies - 🔒 : Comprehensive type hints with TypedDict for better development experience - 🔌 : Uses requests library for real API calls when API keys are configured - ⚡ : Falls back to web search links when APIs are unavailable 1. Add to your Claude Desktop config file: : ~/Library/Application Support/Claude/claude_desktop_config.json : %APPDATA%\Claude\claude_desktop_config.

README

원문 README의 일부입니다. 원문 보기.

Free Stock Images MCP Server

A Model Context Protocol (MCP) server that provides access to multiple free stock image sources including Unsplash, Pexels, Pixabay, Freepik, Burst, and StockVault.

Features

  • 🎨 Multiple Sources: Access 6 popular free stock image platforms
  • 🔍 Smart Search: Search across all sources with a single query
  • 🔗 Direct Links: Get direct URLs to browse and download images
  • 📋 License Info: Guidance on checking license requirements
  • 🚀 Fast & Simple: Lightweight server with minimal dependencies
  • 🔒 Type Safe: Comprehensive type hints with TypedDict for better development experience
  • 🔌 API Integration: Uses requests library for real API calls when API keys are configured
  • ⚡ Smart Fallback: Falls back to web search links when APIs are unavailable

Supported Stock Image Sources

Source Description License Type
Unsplash Beautiful free photos & images Unsplash License
Pexels Free stock photos & royalty free images Pexels License
Pixabay Stunning royalty-free images & stock Pixabay License
Freepik Free vectors, stock photos, PSD and icons Freepik License
Burst Free stock photos for commercial use CC0
StockVault Free graphics and photos Various

Quick Start

Installation

# Clone the repository
git clone https://github.com/your-username/free-stock-images-mcp.git
cd free-stock-images-mcp

# Create virtual environment
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

Usage with Claude Desktop

  1. Add to your Claude Desktop config file:

On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "free-stock-images": {
      "command": "python",
      "args": ["/path/to/free-stock-images-mcp/src/server.py"]
    }
  }
}
  1. Restart Claude Desktop

Usage with Other MCP Clients

Run the server directly:

python src/server.py

API Configuration (Optional)

For enhanced functionality with actual image data, configure API keys:

# Unsplash API (https://unsplash.com/developers)
export UNSPLASH_ACCESS_KEY=your_access_key_here

# Pexels API (https://www.pexels.com/api/)  
export PEXELS_API_KEY=your_api_key_here

# Pixabay API (https://pixabay.com/api/docs/)
export PIXABAY_API_KEY=your_api_key_here

Benefits of API Configuration:

  • Get actual image URLs and metadata
  • Access image dimensions, author info, and download links
  • Faster, more structured results
  • Higher quality search results
GitHub에서 전체 README 보기

설치

npx @modelcontextprotocol/inspector python src/server.py
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "free-stock-images": { "command": "python", "args": ["/path/to/free-stock-images-mcp/src/server.py"] } } }