Unofficial MCP server for the Pixabay API: search and fetch royalty-free images and videos.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) server for the Pixabay API. It gives AI assistants โ Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, and any MCP client โ tools to search and fetch royalty-free images and videos.
[!IMPORTANT] Unofficial project. This is not affiliated with, endorsed by, or sponsored by Pixabay. "Pixabay" is a trademark of its respective owner. You use it under your own Pixabay account and are responsible for complying with Pixabay's Terms of Service and Content License.
safesearch defaults to true, and the mandatory
courtesy attribution (by {user} via Pixabay) is surfaced on every result even though
Pixabay doesn't require it.webformatURL for images, the medium rendition for videos); looking a specific item up by
id returns every size tier Pixabay provides, so you can pick what actually fits.isError results the model can recover from,
plus a considered single retry with backoff on 429/5xx, network timeouts, and
rate-limit-aware logging.npx, no telemetry.Sign up for a free account at pixabay.com โ your API key is shown immediately on the API docs page once you're logged in, no approval step for the default tier this server uses.
Claude Desktop โ edit claude_desktop_config.json:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonRestart the client. See Configuration for every supported variable.
Claude Code (CLI):
Cursor โ ~/.cursor/mcp.json (global) or .cursor/mcp.json (per-project): use the exact
same mcpServers block as Claude Desktop above.
Windsurf โ ~/.codeium/windsurf/mcp_config.json: same mcpServers block as Claude Desktop
above.
VS Code โ .vscode/mcp.json (note the top-level key is servers, not mcpServers):
Any other MCP client โ run the server over stdio with:
Point your client's stdio transport at command: npx, args: ["-y", "@hanoak/pixabay-mcp-server"],
and pass the key via env.
Restart your client and ask:
"Find me a photo of mountains on Pixabay."
A typical flow: the model calls pixabay_search_images, picks a result, and presents the image
with its courtesy attribution.
You: Find a landscape photo of a foggy pine forest.
Assistant: (calls
pixabay_search_imageswithquery: "foggy pine forest",orientation: "horizontal", picks the best result) Here's a great match โ by Josch13 via Pixabay โ along with the image URL.
Each tool returns a compact JSON payload. Here's the shape of a single search result (illustrative values):
pixabay_get_image/pixabay_get_video return the same shape for a single item, but with every
size tier Pixabay provides instead of just one โ see Output shape.
Configuration is entirely via environment variables โ no config files, no flags for secrets.
| Environment variable | Required | Description |
|---|---|---|
PIXABAY_API_KEY | yes | Your Pixabay API key. The server exits at startup with a clear message if it is missing or blank. |
LOG_LEVEL | no | debug | info | warn | error (default info). All logs go to stderr; stdout carries only the MCP protocol. |
CLI flags: --version and --help are supported (e.g. npx @hanoak/pixabay-mcp-server --version).
All tools are namespaced pixabay_* and every one is read-only โ Pixabay's API has no
write endpoints, so a client can safely auto-approve the entire server. per_page is clamped
to Pixabay's documented range of 3โ200, and page is 1-based.
| Domain | Tools |
|---|---|
| Images | pixabay_search_images, pixabay_get_image |
| Videos | pixabay_search_videos, pixabay_get_video |
| Tool | Parameters | Description |
|---|---|---|
pixabay_search_images | query?, lang?, image_type? (all|photo|illustration|vector), orientation? (all|horizontal|vertical), category?, colors? (array), min_width?, min_height?, editors_choice?, safesearch? (default true), order? (popular|latest), page?, per_page? (3โ200) | Keyword image search with filters. Omit query to browse a default set. |
pixabay_get_image | id (required) | A single image by its numeric id, with every size tier. |
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pixabay-mcp-server)<a href="https://allmcps.com/mcp/pixabay-mcp-server"><img src="https://allmcps.com/api/badge/pixabay-mcp-server?style=directory" alt="Pixabay MCP Server on AllMCPs" /></a>