Pixabay MCP Server

Pixabay MCP Server

Enables AI assistants to search for and retrieve images, illustrations, and videos directly from Pixabay. It provides specialized tools for discovering diverse media content like photos and animations using the Pixabay API.

Category
访问服务器

README

Pixabay MCP Server

English | 中文


English

A Model Context Protocol (MCP) server that enables AI assistants to search for images and videos on Pixabay.

Features

  • 🖼️ search_images - Search for photos, illustrations, and vectors
  • 🎬 search_videos - Search for videos and animations

Installation

Method 1: Quick Start with uvx (Recommended)

The easiest way to use this MCP server is with uvx. No manual cloning required!

  1. Get your Pixabay API Key
  2. Add the following to your MCP client configuration:
{
  "mcpServers": {
    "pixabay": {
      "command": "uvx",
      "args": [
        "https://github.com/helloHupc/pixabay_mcp.git"
      ],
      "env": {
        "PIXABAY_API_KEY": "your-api-key-here"
      }
    }
  }
}
  1. Restart your MCP client and start using!

Method 2: Local Development

For development or to customize the code, clone the repository locally:

git clone https://github.com/helloHupc/pixabay_mcp.git
cd pixabay_mcp

Then configure your MCP client:

{
  "mcpServers": {
    "pixabay": {
      "command": "uv",
      "args": [
        "run",
        "--directory", "/path/to/pixabay_mcp",
        "python", "src/pixabay_mcp/server.py"
      ],
      "env": {
        "PIXABAY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Make sure to replace /path/to/pixabay_mcp with your actual local path.

Get Your API Key

  1. Create a free account at Pixabay
  2. Go to API Documentation and copy your API key

Quick Start

  1. Get your API key from Pixabay
  2. Copy configuration from Method 1 above
  3. Replace your-api-key-here with your actual API key
  4. Add to your MCP client settings
  5. Restart your MCP client
  6. Start searching!

Usage Examples

Once configured, you can ask your AI assistant:

  • "Search for photos of yellow flowers"
  • "Find some nature videos"
  • "Look for vector illustrations of cats"

Project Structure

pixabay_mcp/
├── src/
│   └── pixabay_mcp/
│       ├── __init__.py
│       └── server.py          # Main MCP server implementation
├── pyproject.toml              # Project configuration
├── uv.lock                     # Dependency lock file
├── README.md                   # This file
├── LICENSE                     # MIT License
└── .gitignore                  # Git ignore rules

License

MIT License


中文

一个 MCP (Model Context Protocol) 服务,让 AI 助手能够在 Pixabay 上搜索图片和视频。

功能

  • 🖼️ search_images - 搜索照片、插画和矢量图
  • 🎬 search_videos - 搜索视频和动画

安装

方法 1:使用 uvx 快速开始(推荐)

最简单的使用方式,使用 uvx 直接从 Gitee 运行,无需手动克隆!

  1. 获取你的 Pixabay API 密钥
  2. 在 MCP 客户端配置中添加以下内容:
{
  "mcpServers": {
    "pixabay": {
      "command": "uvx",
      "args": [
        "https://github.com/helloHupc/pixabay_mcp.git"
      ],
      "env": {
        "PIXABAY_API_KEY": "你的API密钥"
      }
    }
  }
}
  1. 重启 MCP 客户端,开始使用!

方法 2:本地开发调试

用于开发或自定义代码,将仓库克隆到本地:

git clone https://github.com/helloHupc/pixabay_mcp.git
cd

然后配置 MCP 客户端:

{
  "mcpServers": {
    "pixabay": {
      "command": "uv",
      "args": [
        "run",
        "--directory", "/path/to/pixabay_mcp",
        "python", "src/pixabay_mcp/server.py"
      ],
      "env": {
        "PIXABAY_API_KEY": "你的API密钥"
      }
    }
  }
}

请将 /path/to/pixabay_mcp 替换为你的实际本地路径。

获取 API 密钥

  1. Pixabay 注册免费账号
  2. 访问 API 文档页面 复制你的 API 密钥

快速开始

  1. 从 Pixabay 获取你的 API 密钥
  2. 复制上面方法 1 中的配置
  3. 你的API密钥 替换为你的实际 API 密钥
  4. 添加到你的 MCP 客户端设置
  5. 重启 MCP 客户端
  6. 开始搜索!

使用示例

配置完成后,你可以这样问 AI 助手:

  • "帮我搜索黄色花朵的图片"
  • "找一些自然风景的视频"
  • "搜索猫咪的矢量插画"

项目结构

pixabay_mcp/
├── src/
│   └── pixabay_mcp/
│       ├── __init__.py
│       └── server.py          # MCP 服务器主实现
├── pyproject.toml              # 项目配置文件
├── uv.lock                     # 依赖锁定文件
├── README.md                   # 本文件
├── LICENSE                     # MIT 许可证
└── .gitignore                  # Git 忽略规则

uv 和 uvx 的区别

uv - 通用 Python 项目管理工具

  • 用于开发、安装包、运行脚本
  • 需要手动管理虚拟环境
  • 适合本地开发和调试

uvx - 快速执行工具

  • 直接从 PyPI 或 Git 仓库运行包
  • 自动管理隔离环境
  • 无需手动安装,开箱即用
  • 适合快速部署和分享

许可证

MIT 许可证

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选