Skip to main content
Glama

Together AI Image MCP Server

Together AI Image Server

An MCP server for generating images using Together AI's image generation models.

Setup

  1. Install dependencies:

npm install
  1. Build the server:

npm run build

Configuration

1. Together AI API Key

The server requires a Together AI API key. You can get one from Together AI's platform.

2. Cline Configuration

Add the server to your Cline MCP settings file:

For macOS/Linux: ~/Library/Application Support/Windsurf/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

{ "mcpServers": { "togetherai-image": { "command": "node", "args": ["/path/to/togetherai-image-server/build/index.js"], "env": { "TOGETHER_API_KEY": "your-api-key-here" }, "disabled": false, "autoApprove": [] } } }

Usage in Cline

The server provides a generate_image tool with the following parameters:

{ prompt: string; // Required: Text description of the image to generate model?: string; // Optional: Model to use (default: 'black-forest-labs/FLUX.1.1-pro') width?: number; // Optional: Image width in pixels (default: 1024) height?: number; // Optional: Image height in pixels (default: 768) steps?: number; // Optional: Number of inference steps (default: 28) n?: number; // Optional: Number of images to generate (default: 1) outputDir?: string; // Optional: Directory where images will be saved (default: './output') }

Example Usage

You can use the server in Cline like this:

Generate an image of a cat and save it to my desktop: <use_mcp_tool> <server_name>togeherai-image</server_name> <tool_name>generate_image</tool_name> <arguments> { "prompt": "A cute cat sitting on a windowsill", "outputDir": "/Users/username/Desktop/generated-images" } </arguments> </use_mcp_tool>

Output

The tool returns a JSON response containing:

  • filepath: Full path to the saved image

  • filename: Name of the saved image file

  • dimensions: Original and final dimensions of the image

Features

  • Supports Together AI's latest FLUX.1.1-pro model

  • Automatically resizes images if dimensions are below 256 pixels

  • Maintains aspect ratio during resizing

  • High-quality JPEG output (90% quality)

  • Creates output directories recursively

  • Returns detailed metadata including image dimensions

Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    A 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 -
    4
    MIT License
    • Apple
    • Linux
  • -
    security
    A
    license
    -
    quality
    An MCP tool server that enables generating and editing images through OpenAI's image models, supporting text-to-image generation and advanced image editing (inpainting, outpainting) across various MCP-compatible clients.
    Last updated -
    79
    MIT License
    • Linux
    • Apple
  • -
    security
    -
    license
    -
    quality
    An MCP (Model Context Protocol) server that allows generating, editing, and creating variations of images using OpenAI's DALL-E APIs.
  • A
    security
    F
    license
    A
    quality
    An MCP server that enables AI models to generate precise geometric images by providing Asymptote code, supporting both SVG and PNG output formats.
    Last updated -
    1
    26
    4
    • Linux
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stefanskiasan/togetherai-image-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server