Together AI Image Server
An MCP server for generating images using Together AI’s image generation models.
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
Together AI Image MCP Server
Project Details
- stefanskiasan/togetherai-image-mcp-server
- MIT License
- Last Updated: 4/21/2025
Recomended MCP Servers
这个项目是一个基于Model Context Protocol (MCP)的AutoCAD集成服务器,它允许通过自然语言与AutoCAD进行交互。通过这个服务器,用户可以使用Claude等大型语言模型来创建、修改和分析AutoCAD图纸,同时还可以存储和查询CAD元素的相关数据。目前制作参考学习,仅实现端到端之间的通信,具体工具函数尚未晚上
Linkup is a third-party extension that gives Claude access to real-time web search and premium content sources. It...
Vapi MCP Server
Integrate Arduino-based robotics (using the NodeMCU ESP32 or Arduino Nano 368 board) with AI using the MCP (Model...
github-enterprise-mcp
MCP Server for transcribing videos via video links and summarizing video content
MCP server integration for DaVinci Resolve
A MCP Server for creating Powerpoint Presentations
PowerPlatform Model Context Protocol server
A MCP server to search for accurate academic articles.