M
mikeyny/ai-image-gen-mcp
Generate images from text through Replicate
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- 来源明细
- 收录自 abordage/awesome-mcp 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-11-05 · 最近见到 2026-11-14 · 共见到 10 次 · 被 10 个来源列出
- 评分构成
- 综合分 1,003 · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
我们收录于 2026-11-05;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
# Image Generation MCP Server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
An MCP (Model Context Protocol) server implementation for generating images using Replicate's black-forest-labs/flux-schnell model.
Ideally to be used with Cursor's MCP feature, but can be used with any MCP client.
## Features
Generate images from text prompts
Configurable image parameters (resolution, aspect ratio, quality)
Save generated images to specified directory
Full MCP protocol compliance
Error handling and validation
## Prerequisites
Node.js 16+
Replicate API token
TypeScript SDK for MCP
## Setup
1. Clone the repository
2. Install dependencies:
bash
npm install
3. Add your Replicate API token directly in the code at src/imageService.ts by updating the apiToken constant:
bash
// No environment variables are used since they can't be easily set in cursor
const apiToken = "your-replicate-api-token-here";
> Note: If using with Claude, you can create a .env file in the root directory and set your API token there:
bash
REPLICATEAPITOKEN=your-replicate-api-token-here
Then build the project:
bash
npm run build
## Usage
To use with cursor:
1. Go to Settings
2. Select Features
3. Scroll down to "MCP Servers"
4. Click "Add new MCP Server"
5. Set Type to "Command"
6. Set Command to: node ./path/to/dist/server.js
## API Parameters
| Parameter | Type | Required | Default | Description |
| prompt | string | Yes | - | Text prompt for image generation |
| outputdir | string | Yes | - | Server directory path to save generated images |
| gofast | boolean | No | false | Enable faster generation mode |
| megapixels | string | No | "1" | Resolution quality ("1", "2", "4") |
| numoutputs | number | No | 1 | Number of images to generate (1-4) |
| aspectratio | string | No | "1:1" | Aspect ratio ("1:1", "4:3", "16:9") |
| outputformat | string | No | "webp" | Image format ("webp", "png", "jpeg") |
| outputquality | number | No | 80 | Compression quality (1-100) |
| numinferencesteps| number| No | 4 | Number of denoising steps (4-20) |
## Example Request
json
"prompt": "black forest gateau cake spelling out 'FLUX SCHNELL'",
"outputdir": "/var/output/images",
"filename": "blackforestcake",
"outputformat": "webp"
"gofast": true,
"megapixels": "1",
"numoutputs": 2,
"aspectratio": "1:1"
## Example Response
json
"imagepaths": [
Ideally to be used with Cursor's MCP feature, but can be used with any MCP client.
## Features
Generate images from text prompts
Configurable image parameters (resolution, aspect ratio, quality)
Save generated images to specified directory
Full MCP protocol compliance
Error handling and validation
## Prerequisites
Node.js 16+
Replicate API token
TypeScript SDK for MCP
## Setup
1. Clone the repository
2. Install dependencies:
bash
npm install
3. Add your Replicate API token directly in the code at src/imageService.ts by updating the apiToken constant:
bash
// No environment variables are used since they can't be easily set in cursor
const apiToken = "your-replicate-api-token-here";
> Note: If using with Claude, you can create a .env file in the root directory and set your API token there:
bash
REPLICATEAPITOKEN=your-replicate-api-token-here
Then build the project:
bash
npm run build
## Usage
To use with cursor:
1. Go to Settings
2. Select Features
3. Scroll down to "MCP Servers"
4. Click "Add new MCP Server"
5. Set Type to "Command"
6. Set Command to: node ./path/to/dist/server.js
## API Parameters
| Parameter | Type | Required | Default | Description |
| prompt | string | Yes | - | Text prompt for image generation |
| outputdir | string | Yes | - | Server directory path to save generated images |
| gofast | boolean | No | false | Enable faster generation mode |
| megapixels | string | No | "1" | Resolution quality ("1", "2", "4") |
| numoutputs | number | No | 1 | Number of images to generate (1-4) |
| aspectratio | string | No | "1:1" | Aspect ratio ("1:1", "4:3", "16:9") |
| outputformat | string | No | "webp" | Image format ("webp", "png", "jpeg") |
| outputquality | number | No | 80 | Compression quality (1-100) |
| numinferencesteps| number| No | 4 | Number of denoising steps (4-20) |
## Example Request
json
"prompt": "black forest gateau cake spelling out 'FLUX SCHNELL'",
"outputdir": "/var/output/images",
"filename": "blackforestcake",
"outputformat": "webp"
"gofast": true,
"megapixels": "1",
"numoutputs": 2,
"aspectratio": "1:1"
## Example Response
json
"imagepaths": [
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/mikeyny-ai-image-gen-mcp/)
- 来源
- awesome · https://github.com/mikeyny/ai-image-gen-mcp
- 按领域浏览
- MCP 服务
- 收录来源
- 10 个独立来源
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。