Data · MODEL CONTEXT PROTOCOL

pinkpixel dev MCPollinations

A Model Context Protocol (MCP) server that enables AI assistants to generate images, text, and audio through the Pollinations APIs. Supports customizable parameters, image saving, and multiple model options.

WHAT IT CONNECTS

pinkpixel dev MCPollinations 为 AI Agent 提供什么

  • Generate image URLs from text prompts
  • Generate images and return them as base64-encoded data AND save as png, jpeg, jpg, or webp (default: png)
  • Generate text responses from text prompts
  • Generate audio responses from text prompts
  • List available image and text generation models
  • No authentication required
  • Simple and lightweight
  • Compatible with the Model Context Protocol (MCP)
  • **Node.js**: Version 14.0.0 or higher
  • For best performance, we recommend Node.js 16.0.0 or higher
  • Node.js versions below 16 use an AbortController polyfill
  • Generate an MCP configuration file:
  • Follow the prompts to customize your configuration or use the defaults.
  • Set custom output and temporary directories (defaults to relative paths for portability)
  • Configure default parameters for image generation (with a list of available models, dimensions, etc.)
  • Configure default parameters for text generation (with a list of available models)
  • Configure default parameters for audio generation (voice)
  • Specify which tools should be allowed
  • Copy the generated `mcp.json` file to your application's MCP settings .json file.
  • Restart your application.
  • **Update Node.js** (recommended):
  • Update to Node.js 16.0.0 or newer
  • **Use Global Installation**
  • Update to the latest version of the package:
  • **Install AbortController manually**:
  • If for some reason the polyfill doesn't work:
  • `generateImageUrl` - Generates an image URL from a text prompt
  • `generateImage` - Generates an image, returns it as base64-encoded data, and saves it to a file by default (PNG format)
  • `respondAudio` - Generates an audio response to a text prompt (customizable voice parameter)
  • `respondText` - Responds with text to a prompt using text models (customizable model parameter)
  • `listImageModels` - Lists available models for image generation
  • `listTextModels` - Lists available models for text generation
  • `listAudioVoices` - Lists all available voices for audio generation
  • Images are saved to disk by default as PNG files
  • The default save location is the current working directory where the MCP server is running
  • The 'flux' model is used by default
  • A random seed is generated by default for each image (ensuring variety)
  • Base64-encoded image data is always returned, regardless of whether the image is saved to a file
  • **Images are saved in the current working directory of where the MCP server is running**, not where Claude or the client application is installed.
  • If you start the MCP server manually from a specific directory, images will be saved there by default.
  • If Claude Desktop launches the MCP server automatically, images will be saved in Claude Desktop's working directory (typically in an application data folder).
  • The response from Claude after generating an image includes the full file path where the image was saved
  • You can specify a familiar location using the `outputPath` parameter
  • Best practice: Ask Claude to save images to an easily accessible folder like your Pictures or Downloads directory
  • **Default filenames** include:
  • A sanitized version of the prompt (first 20 characters)
  • A timestamp
  • A random suffix
  • **Custom filenames** are also protected:
  • If you specify a filename and a file with that name already exists, a numeric suffix will be added automatically
  • For example: `sunset.png`, `sunset_1.png`, `sunset_2.png`, etc.
  • Embedding in web pages (`<img src="data:image/png;base64,..." />`)
  • Passing to other services or APIs
  • Processing in memory without filesystem operations
  • Displaying in applications that support data URIs

SECURITY

MCP 收录不等于安全审核

MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。