Pixabay MCP Server

Integrations

  • Provides tools for searching images on Pixabay, returning formatted results with image URLs and metadata, with options to filter by image type and orientation.

pixabay-mcp MCP 服务器

English Version

用于 Pixabay 图像搜索的模型上下文协议服务器

这是一个基于 TypeScript 的 MCP 服务器,提供对 Pixabay 图片 API 的访问。它通过以下方式演示了 MCP 的核心概念:

  • 在 Pixabay 上搜索图片的工具
  • 带有图像 URL 和元数据的格式化结果
  • API 请求的错误处理

特征

工具

  • search_pixabay_images - 在 Pixabay 上搜索图片
    • 将搜索查询作为必需参数
    • 图像类型、方向和每页结果的可选参数
    • 返回带有 URL 的格式化图像结果列表

配置

  • 需要将 Pixabay API 密钥设置为环境变量PIXABAY_API_KEY
  • 默认启用安全搜索
  • API 问题和无效参数的错误处理

发展

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

安装

  1. 将您的 Pixabay API 密钥设置为环境变量:
# On Windows set PIXABAY_API_KEY=your_api_key_here # On macOS/Linux export PIXABAY_API_KEY=your_api_key_here
  1. 要与 Claude Desktop 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "pixabay-mcp": { "command": "/path/to/pixabay-mcp/build/index.js", "env": { "PIXABAY_API_KEY": "your_api_key_here" } } } }

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

模型上下文协议服务器,可使用查询参数在 Pixabay 上搜索图像,并返回带有图像 URL 和元数据的格式化结果。

  1. Features
    1. Tools
    2. Configuration
  2. Development
    1. Installation
      1. Debugging

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      Model Context Protocol server for fetching web content and processing images. This allows Claude Desktop (or any MCP client) to fetch web content and handle images appropriately.
      Last updated -
      1
      278
      15
      JavaScript
      MIT License
      • Apple
    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol server that enables web search, scraping, crawling, and content extraction through multiple engines including SearXNG, Firecrawl, and Tavily.
      Last updated -
      35
      11
      TypeScript
      MIT License
    • -
      security
      A
      license
      -
      quality
      Model Context Protocol server that enables Claude Desktop (or any MCP client) to fetch web content and process images appropriately.
      Last updated -
      11
      MIT License
      • Apple
    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol server that enables fetching and processing images from URLs, local file paths, and numpy arrays, returning them as base64-encoded strings with proper MIME types.
      Last updated -
      1
      Python
      MIT License
      • Linux
      • Apple

    View all related MCP servers

    ID: u4r2qldprn