Integrations
Generates images using Together AI's image generation models, specifically the FLUX.1-schnell-Free model by default. Provides tools for creating images from text prompts with customizable dimensions.
MCP Image Generator
A Model Context Protocol (MCP) server for generating images using Together AI's image generation models. This MCP Server can be run locally or using an SSE endpoint.
The MCP Image Generator required a provider, only "Replicate" and "Together" are supported currently. You need to set the TOGETHER_API_KEY
or REPLICATE_API_TOKEN
environment variables. and set the PROVIDER
environment variable to "replicate" or "together"/
SSE Endpoint (Docker environment)
Clone the repository
Build and run Docker container
Configuring with MCP Client
Adjust the url
to the endpoint of the MCP server you want to use. provider
can be "replicate" or "together".
Running locally using stdio
Prerequisites
- Node.js
- Together AI API key or Replicate API token
Installation
- Clone the repository:Copy
- Install dependencies:Copy
Configuration
Create a configuration file for your MCP client. Here's an example configuration:
Replace /path/to/mcp-imagegen
with the absolute path to your cloned repository and your-replicate-api-token
with your actual Replicate API token.
Usage
The MCP Image Generator provides a tool called generate_image
that can be used to generate images based on text prompts.
Tool: generate_image
Generates an image based on the provided prompt.
Parameters:
prompt
(string): The text prompt to generate an image forwidth
(number, optional): The width of the image to generate (default: 512)height
(number, optional): The height of the image to generate (default: 512)numberOfImages
(number, optional): The number of images to generate (default: 1)
Environment Variables
PROVIDER
: The provider to use for image generation (default: "replicate")REPLICATE_API_TOKEN
: Your Replicate API tokenTOGETHER_API_KEY
: Your Together AI API keyMODEL_NAME
: The model to use for image generation (default: "black-forest-labs/flux-schnell")
License
MIT
This server cannot be installed
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.
Generates and returns and image using Together.ai
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityEnables the generation of images using Together AI's models through an MCP server, supporting customizable parameters such as model selection, image dimensions, and output directory.Last updated -14JavaScriptMIT License
- -securityAlicense-qualityA server that integrates Flux's advanced image generation and manipulation features into AI coding assistants, enabling seamless text-to-image and image control workflows in IDEs like Cursor and Windsurf.Last updated -410PythonMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables high-quality image generation using the Flux.1 Schnell model via Together AI with customizable parameters.Last updated -1608JavaScriptMIT License
- AsecurityAlicenseAqualityA MCP server that enables Claude and other MCP-compatible assistants to generate images from text prompts using Together AI's image generation models.Last updated -12TypeScriptMIT License