Pollinations
About
Provides text-to-audio API capabilities for dynamic audio generation through a TypeScript-based server implementation, enabling developers to create programmatic audio experiences.
Details
- Author
- bendusy
- Repository
- bendusy/pollinations-mcp
- GitHub stars
- 4
- License
- Apache License 2.0
- Categories
- Developer Tools, AI, Other, Design, Media, API, Frontend, Infrastructure
Jump to
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
PollinationsCommand (node, npx, python, etc.)nodeArguments-
Argument 1
完整路径/到您的/pollinations-mcp/dist/index.js
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
generate_image
使用Pollinations.ai生成图像并返回URL。参数:prompt (必需): 图像描述提示词, width (可选): 图像宽度(像素),默认为1024, height (可选): 图像高度(像素),默认为1024, seed (可选): 随机种子值(用于生成一致的图像), model (可选): 要使用的模型,默认为'flux', nologo (可选): 设置为true可去除水印,默认为true, enhance (可选): 提高图像质量(应用增强滤镜),默认为false, safe (可选): 启用安全过滤(过滤不适内容),默认为false, private (可选): 设置为true可使图像私有(不在公共feed中显示),默认为false
download_image
下载Pollinations.ai生成的图像到本地文件。参数:url (必需): 要下载的图像URL, output_path (可选): 保存图像的路径(包括文件名),默认为'image.jpg'
generate_text
使用Pollinations.ai生成文本。参数:prompt (必需): 文本提示词, model (可选): 要使用的模型(如openai、mistral等),默认为'openai', seed (可选): 随机种子值(用于生成一致的结果), system (可选): 系统提示词(设置AI行为), json (可选): 是否返回JSON格式的响应,默认为false, private (可选): 设置为true可使响应私有,默认为false
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"pollinations": {
"command": "node",
"args": [
"\u5b8c\u6574\u8def\u5f84/\u5230\u60a8\u7684/pollinations-mcp/dist/index.js"
],
"env": {},
"cwd": "optional",
"shell": false
}
}
}
Macos
{
"command": "node",
"args": [
"\u5b8c\u6574\u8def\u5f84/\u5230\u60a8\u7684/pollinations-mcp/dist/index.js"
],
"env": [],
"cwd": "optional",
"shell": false
}
Windows
{
"command": "node",
"args": [
"C:\\Users\\\u7528\u6237\u540d\\\u8def\u5f84\\\u5230\\pollinations-mcp\\dist\\index.js"
],
"env": [],
"cwd": "optional",
"shell": false
}
Linux
{
"command": "node",
"args": [
"\u5b8c\u6574\u8def\u5f84/\u5230\u60a8\u7684/pollinations-mcp/dist/index.js"
],
"env": [],
"cwd": "optional",
"shell": false
}
Generate images and text using the Pollinations.ai API.
这是一个基于Model Context Protocol (MCP)的服务器实现,用于连接Pollinations.ai服务的API接口。该服务器允许AI模型通过MCP协议调用Pollinations.ai的图像和文本生成功能。
- 支持通过MCP协议与Pollinations.ai服务交互
- 提供三个主要工具:
- generate_image: 使用Pollinations.ai生成图像并返回URL(默认无水印)
- download_image: 下载生成的图像到本地文件
- generate_text: 使用Pollinations.ai生成文本
git clone https://github.com/bendusy/pollinations-mcp.git cd pollinations-mcp
注意:目前在Cursor中配置此服务器可能不会成功。如果您需要使用此功能,建议使用Cline(见下文)。
Cline是一个支持MCP协议的AI终端,可以成功使用本服务器提供的图像生成功能。设置步骤如下:
- Windows:%APPDATA%\Cline\config.json
- Mac:~/Library/Application Support/Cline/config.json
- Linux:~/.config/Cline/config.json
"mcpServers": { "pollinations-mcp": { "command": "node", "args": [ "完整路径/到您的/pollinations-mcp/dist/index.js" ], "disabled": false, "autoApprove": [ "download_image", "generate_image", "generate_text" ] } }
"mcpServers": { "pollinations-mcp": { "command": "node", "args": [ "C:\\Users\\用户名\\路径\\到\\pollinations-mcp\\dist\\index.js" ], "disabled": false, "autoApprove": [ "download_image", "generate_image", "generate_text" ] } }
- 保存配置文件并重启Cline
- 现在您可以在Cline中使用Pollinations图像生成功能了,例如:
使用Pollinations生成图像:beautiful sunset over ocean with palm trees
- prompt(必需): 图像描述提示词
- width(可选): 图像宽度(像素),默认为1024
- height(可选): 图像高度(像素),默认为1024
- seed(可选): 随机种子值(用于生成一致的图像)
- model(可选): 要使用的模型,默认为'flux'
- nologo(可选): 设置为true可去除水印,默认为true
- enhance(可选): 提高图像质量(应用增强滤镜),默认为false
- safe(可选): 启用安全过滤(过滤不适内容),默认为false
- private(可选): 设置为true可使图像私有(不在公共feed中显示),默认为false
- 尽量使用英文编写提示词,Pollinations.ai对英文的理解更好
- 保持提示词简短精确,避免过长或模糊的描述
- 使用具体的形容词和名词,而非抽象概念
- 例如:"beautiful sunset over ocean with palm trees"比"一张日落的图片"效果更好
- url(必需): 要下载的图像URL
- output_path(可选): 保存图像的路径(包括文件名),默认为'image.jpg'
- prompt(必需): 文本提示词
- model(可选): 要使用的模型(如openai、mistral等),默认为'openai'
- seed(可选): 随机种子值(用于生成一致的结果)
- system(可选): 系统提示词(设置AI行为)
- json(可选): 是否返回JSON格式的响应,默认为false
- private(可选): 设置为true可使响应私有,默认为false
本项目使用Pollinations.ai的官方API。完整的API文档请参考:Pollinations API文档
基本格式:https://image.pollinations.ai/prompt/{prompt}?{参数}
https://image.pollinations.ai/prompt/beautiful%20sunset?width=1024&height=1024&nologo=true
- flux(默认): 主流文生图模型,功能全面
- variation: 图像变体生成
- dreamshaper: 梦幻风格
- anything: 动漫风格图像
- pixart: 高质量插图风格
基本格式:https://text.pollinations.ai/{prompt}?{参数}
https://text.pollinations.ai/Tell%20me%20about%20artificial%20intelligence?model=openai
- openai(默认): OpenAI模型
- mistral: Mistral模型
- gemini: Google Gemini模型
- src/index.ts: 主服务器实现
- dist/: 编译后的JavaScript文件
- package.json: 项目配置和依赖
- @modelcontextprotocol/sdk: MCP协议SDK
- axios: HTTP客户端,用于下载图像
- typescript: TypeScript编译器
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Generate images using Amazon Nova Canvas with text prompts and color guidance.
Server for advanced AI-driven video editing, semantic search, multilingual transcription, generative media, voice cloning, and content moderation.
Generate images using the Together AI API. Supports custom aspect ratios, save paths, and batch generation.
Trim, watermark, extract audio from, and convert any video to 9:16 vertical — via REST API or MCP tools for Claude, Cursor, and other AI agents.
Generate images using OpenAI's DALL-E API.
Generate images from text using Flux and Stable Diffusion models.
Integrates the Dify AI API to generate Ant Design business component code. Supports text, image inputs, and streaming responses.
A server for the Fal.ai text-to-image API, powered by OpenAI's image model. Requires Fal.ai and OpenAI API keys.
Advanced text-to-image generation using the fal.ai Recraft v3 API.
A frontier image generation and editing model with advanced text rendering and contextual understanding, powered by the FAL AI API.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





