Production-ready Model Context Protocol (MCP) server for the Pixabay API — search and fetch royalty-free images and videos, with license-aware usage guidance. Unofficial; not affiliated with or endorsed by Pixabay.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add pixabay --env PIXABAY_API_KEY='<PIXABAY_API_KEY>' -- npx -y @hanoak/pixabay-mcp-server~/.codex/config.toml
[mcp_servers.pixabay]
command = "npx"
args = ["-y", "@hanoak/pixabay-mcp-server"]
env = { PIXABAY_API_KEY = "<PIXABAY_API_KEY>" }
# codex mcp add pixabay --env PIXABAY_API_KEY='<PIXABAY_API_KEY>' -- npx -y @hanoak/pixabay-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"pixabay": {
"command": "npx",
"args": [
"-y",
"@hanoak/pixabay-mcp-server"
],
"env": {
"PIXABAY_API_KEY": "<PIXABAY_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"pixabay": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hanoak/pixabay-mcp-server"
],
"env": {
"PIXABAY_API_KEY": "<PIXABAY_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"pixabay": {
"command": "npx",
"args": [
"-y",
"@hanoak/pixabay-mcp-server"
],
"env": {
"PIXABAY_API_KEY": "<PIXABAY_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"pixabay": {
"command": "npx",
"args": [
"-y",
"@hanoak/pixabay-mcp-server"
],
"env": {
"PIXABAY_API_KEY": "<PIXABAY_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"pixabay": {
"command": "npx",
"args": [
"-y",
"@hanoak/pixabay-mcp-server"
],
"env": {
"PIXABAY_API_KEY": "<PIXABAY_API_KEY>"
}
}
}
}Environment variables
PIXABAY_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.