npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kira4i/pixabay-mcp-server

v1.0.0

Published

MCP Server for Pixabay API - Search and retrieve royalty-free images and videos

Readme

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

  1. Clone this repository:
git clone <your-repo-url>
cd pixabay-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Configuration

API Key Setup

You'll need a Pixabay API key to use this server:

  1. Sign up at Pixabay
  2. Go to Pixabay API page
  3. Get your API key
  4. 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 dimensions
  • colors: Color filter (red, blue, grayscale, etc.)
  • editors_choice: Editor's Choice awards only
  • safesearch: Safe for all ages
  • order: "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 term
  • video_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

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. 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.