This MCP server provides access to the Pixabay image API, allowing you to search for images and receive formatted results with image URLs and metadata. It's packaged as a Model Context Protocol (MCP) server that can be integrated with compatible AI systems like Claude.
You'll need to obtain a Pixabay API key from the Pixabay API Documentation page.
npm install
npm run build
Set your Pixabay API key as an environment variable:
# On Windows
set PIXABAY_API_KEY=your_api_key_here
# On macOS/Linux
export PIXABAY_API_KEY=your_api_key_here
Locate your Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Add the server configuration:
{
"mcpServers": {
"pixabay-mcp": {
"command": "/path/to/pixabay-mcp/build/index.js",
"env": {
"PIXABAY_API_KEY": "your_api_key_here"
}
}
}
}
The server provides one main tool:
When using the search_pixabay_images
tool, you can specify:
When the server is properly configured with Claude, you can ask Claude to search for images using natural language requests like:
The server returns structured results including:
If you encounter issues:
For advanced debugging, you can use the built-in MCP Inspector:
npm run inspector
This will provide a browser interface for inspecting server communications.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.