
Together AI Image MCP Server
Enables 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.
stefanskiasan
Tools
generate_image
Generate an image using Together AI
README
Together AI Image Server
An MCP server for generating images using Together AI's image generation models.
<a href="https://glama.ai/mcp/servers/2cwphjnpgw"><img width="380" height="200" src="https://glama.ai/mcp/servers/2cwphjnpgw/badge" alt="Together AI Image Server MCP server" /></a>
Setup
- Install dependencies:
npm install
- 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 imagefilename
: Name of the saved image filedimensions
: 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
Recommended Servers
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
@kazuph/mcp-fetch
Model Context Protocol server for fetching web content and processing images. This allows Claude Desktop (or any MCP client) to fetch web content and handle images appropriately.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
mcp-pinterest
A Pinterest Model Context Protocol (MCP) server for image search and information retrieval
DeepSRT MCP Server
An MCP server that enables users to generate summaries of YouTube videos in multiple languages and formats through integration with DeepSRT's API.
ScreenshotOne MCP Server
An official MCP server implementation that allows AI assistants to capture website screenshots through the ScreenshotOne API, enabling visual context from web pages during conversations.
Glif
Run AI workflows hosted on Glif.app via MCP, including ComfyUI-based image generators, meme generators, selfies, chained LLM calls, and more
WebPerfect MCP Server
An intelligent MCP server with a fully automated batch pipeline for web-ready images. Features include noise reduction, auto levels/curves, JPEG artifact removal, 4K resizing, smart sharpening with shadow/highlight enhancement, and advanced WebP conversion.
Stealth Browser MCP Server
Provides stealth browser capabilities using Playwright with anti-detection techniques, allowing MCP clients to navigate websites and take screenshots while evading common bot detection systems.
MCP-LOGO-GEN
MCP Tool Server for Logo Generation. This server provides logo generation capabilities using FAL AI, with tools for image generation, background removal, and image scaling.