MCP Image Generator logo

MCP Image Generator

by GMKR

The MCP Image Generator is a Model Context Protocol (MCP) server for generating images using Together AI's or Replicate's image generation models. It can be run locally or using an SSE endpoint.

View on GitHub

Last updated: N/A

What is MCP Image Generator?

The MCP Image Generator is a server that allows you to generate images from text prompts using either the Together AI or Replicate image generation models. It acts as an MCP server, enabling integration with MCP-compatible clients.

How to use MCP Image Generator?

To use the MCP Image Generator, you can either run it locally using stdio or deploy it as an SSE endpoint using Docker. You need to configure the server with either a Together AI API key or a Replicate API token, and specify the provider. Then, configure your MCP client to connect to the server, providing the necessary environment variables.

Key features of MCP Image Generator

  • Supports Together AI and Replicate providers

  • Can be run locally or as an SSE endpoint

  • Provides a generate_image tool for generating images from text prompts

  • Configurable image width, height, and number of images

  • Uses Model Context Protocol (MCP)

Use cases of MCP Image Generator

  • Generating images for creative projects

  • Creating visual content for applications

  • Prototyping image-based AI applications

  • Integrating image generation into automated workflows

FAQ from MCP Image Generator

What providers are supported?

Currently, only 'Replicate' and 'Together' are supported.

What environment variables are required?

You need to set either TOGETHER_API_KEY or REPLICATE_API_TOKEN, and PROVIDER.

How do I specify the provider?

Set the PROVIDER environment variable to 'replicate' or 'together'.

What is the default image size?

The default image size is 512x512 pixels.

What is the default model?

The default model is 'black-forest-labs/flux-schnell'