概要
What is Pixabay Mcp?
Pixabay Mcp is a Model Context Protocol (MCP) server that allows AI agents to search for images from the Pixabay platform. It requires a Pixabay API key for authentication and is intended for developers integrating image search into AI-driven applications.
How to use Pixabay Mcp?
Install using pip install pixabay-mcp or run via uvx pixabay-mcp. Start the server by providing your API key either as a command-line argument (--api-key=APIKEY) or by placing it in a .env file as PIXABAY_API_KEY. The server then becomes available for AI agents to perform image searches.
Key features of Pixabay Mcp
- Searches images from Pixabay using a valid API key.
- Can be installed with pip or run via uvx.
- Supports authentication via command-line argument or
.envfile. - Logs activity to files named
app_YYYYMMDD.log. - Designed for integration with MCP-compatible AI agents.
Use cases of Pixabay Mcp
- Integrate Pixabay image search into an AI assistant or agent workflow.
- Allow AI applications to fetch stock images during content generation.
- Automate image retrieval for projects that need free‑to‑use visuals.
FAQ from Pixabay Mcp
How do I get a Pixabay API key?
Visit the Pixabay API documentation at https://pixabay.com/api/docs/ to apply for your own key.
How do I install and run Pixabay Mcp?
Install via pip install pixabay-mcp or use uvx pixabay-mcp --api-key=APIKEY. You can also run python server.py --api-key=APIKEY or set the key in a .env file.
Where are the log files stored?
Logs are saved in the application directory with the filename format app_YYYYMMDD.log.
Can I use a .env file to avoid exposing my API key in commands?
Yes. Create a .env file in the root directory with PIXABAY_API_KEY=your_key and run python server.py. The .env file is excluded from git for security.
What license is Pixabay Mcp released under?
It is released under the MIT license.