Pixabay MCP Server
Search and retrieve royalty-free images and videos using the Pixabay API.
Pixabay MCP Server
A Model Context Protocol (MCP) server that provides access to the Pixabay API for searching and retrieving royalty-free images and videos.
📖 Complete Setup and Usage Guide - Step-by-step tutorial with examples and troubleshooting
Features
- Image Search: Search through millions of royalty-free images
- Video Search: Find high-quality stock videos
- Advanced Filtering: Filter by category, orientation, color, size, and more
- Individual Lookup: Get specific images or videos by ID
- Multiple Formats: Access different image sizes and video qualities
Installation
- Clone this repository:
git clone <your-repo-url>
cd pixabay-mcp-server
- Install dependencies:
npm install
- Build the project:
npm run build
Configuration
API Key Setup
You'll need a Pixabay API key to use this server:
- Sign up at Pixabay
- Go to Pixabay API page
- Get your API key
- Set the system environment variable (recommended for security):
For bash/zsh (add to ~/.bashrc, ~/.zshrc, or ~/.bash_profile):
export PIXABAY_API_KEY="your-api-key-here"
For fish (add to ~/.config/fish/config.fish):
set -gx PIXABAY_API_KEY "your-api-key-here"
For Windows (Command Prompt):
setx PIXABAY_API_KEY "your-api-key-here"
After setting the environment variable, restart your terminal or run:
source ~/.zshrc # or your shell's config file
Claude Desktop Configuration
Add the server to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Recommended (using system environment variable):
{
"mcpServers": {
"pixabay": {
"command": "node",
"args": ["/path/to/pixabay-mcp-server/dist/index.js"]
}
}
}
Alternative (less secure - API key in config file):
{
"mcpServers": {
"pixabay": {
"command": "node",
"args": ["/path/to/pixabay-mcp-server/dist/index.js"],
"env": {
"PIXABAY_API_KEY": "your-api-key-here"
}
}
}
}
Security Note: The recommended approach uses your system environment variable, keeping the API key out of configuration files.
Available Tools
search_images
Search for royalty-free images with various filters:
q: Search term (max 100 characters)lang: Language code (default: "en")image_type: "all", "photo", "illustration", "vector"orientation: "all", "horizontal", "vertical"category: Category filter (nature, business, etc.)min_width/min_height: Minimum dimensionscolors: Color filter (red, blue, grayscale, etc.)editors_choice: Editor's Choice awards onlysafesearch: Safe for all agesorder: "popular" or "latest"page: Page number (default: 1)per_page: Results per page (3-200, default: 20)
search_videos
Search for royalty-free videos with similar filtering options:
q: Search termvideo_type: "all", "film", "animation"- All other parameters similar to image search
get_image_by_id
Retrieve a specific image by its Pixabay ID:
id: Pixabay image ID (required)
get_video_by_id
Retrieve a specific video by its Pixabay ID:
id: Pixabay video ID (required)
Usage Examples
Basic Image Search
Search for "mountain landscape" photos
Advanced Image Search
Search for horizontal nature photos with minimum width 1920px, editors choice only
Video Search
Find animation videos about "space exploration"
API Rate Limits
- 100 requests per 60 seconds by default
- Responses must be cached for 24 hours
- Systematic mass downloads are not allowed
Response Format
The server returns JSON responses with image/video metadata including:
- URLs for different sizes
- Dimensions and file sizes
- View/download/like counts
- User information
- Tags and categories
Development
Running in Development Mode
npm run dev
Building
npm run build
Testing
npm test
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
Author
Created by UnlockMCP - Your guide to mastering Model Context Protocol implementations.
License
MIT License - see LICENSE file for details
Disclaimer
This server provides access to Pixabay's API. Please comply with:
- Pixabay's Terms of Service
- Content License requirements
- Attribution requirements when displaying search results
- Rate limiting and caching requirements
Images and videos are subject to Pixabay's Content License. Always check individual image/video licenses before use.
Related Servers
OrdiscanMCP v1
MCP server for interacting with the Ordiscan API to query Bitcoin ordinals and inscriptions. Requires an Ordiscan API key.
Data Gouv MCP Server
Interact with the French government's open data platform (data.gouv.fr) to search for company information.
RocketReach
Find emails, phone numbers, and enrich company data using the RocketReach API.
Compliance Auditor MCP
City hiring-compliance MCP server with regulation search and full audit risk scoring.
Shodan
Query Shodan's database of internet-connected devices and vulnerabilities using the Shodan API.
Copus
Search human-curated content recommendations from real people who explain why resources are valuable - The Internet Treasure Map
Unreal Engine Knowledge Graph
Search concept relationships in the Unreal Engine official documentation using a Neo4j-powered knowledge graph.
招投标大数据服务
Provides comprehensive bidding and tender information query services, including statistics, searches, and planned project queries.
HeadHunter
An MCP server for the HeadHunter API, focusing on job seeker functionalities.
GW_MCP
An MCP (Model Context Protocol) server providing tools to query Gravitational Wave (GW) data from GraceDB and GWOSC.