Pixabay MCP Server logo

Pixabay MCP Server

Organization
Unlock-MCP

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

PublisherUnlock-MCP
Repositorypixabay-mcp-server
LanguageJavaScript
Forks
4
Stars
10
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Pixabay MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    10 stars and 4 forks from the linked repository.

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:
bash
git clone <your-repo-url>
cd pixabay-mcp-server
  1. Install dependencies:
bash
npm install
  1. Build the project:
bash
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):

bash
export PIXABAY_API_KEY="your-api-key-here"

For fish (add to ~/.config/fish/config.fish):

fish
set -gx PIXABAY_API_KEY "your-api-key-here"

For Windows (Command Prompt):

cmd
setx PIXABAY_API_KEY "your-api-key-here"

After setting the environment variable, restart your terminal or run:

bash
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):

json
{
  "mcpServers": {
    "pixabay": {
      "command": "node",
      "args": ["/path/to/pixabay-mcp-server/dist/index.js"]
    }
  }
}

Alternative (less secure - API key in config file):

json
{
  "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

bash
npm run dev

Building

bash
npm run build

Testing

bash
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.

Use Pixabay MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Pixabay MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Pixabay MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Pixabay MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "pixabay-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Pixabay MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Pixabay MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Pixabay MCP Server to help me with this task?
Pixabay MCP Server
Sure. I read it.
Here is what I found using Pixabay MCP Server.

Frequently asked questions

What is the Pixabay MCP Server MCP server used for?

Pixabay MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Pixabay MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Pixabay MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Pixabay MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Pixabay MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Pixabay MCP Server MCP to TypingMind?

Pixabay MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Pixabay MCP Server MCP provide in TypingMind?

Pixabay MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Pixabay MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Pixabay MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇