Together AI Image Server
The Together AI Image Server allows you to generate images from text prompts using Together AI's API. With this server, you can:
Generate Images: Create images based on text descriptions
Control Output: Specify the number of images (1-4) and diffusion steps (1-4)
Receive Results: Get URLs and local paths to the generated images
Integration: Works as an MCP server, compatible with MCP-compatible assistants like Claude Desktop
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Together AI Image Servergenerate an image of a futuristic city at sunset with flying cars"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Together AI Image Server
English | 简体中文
A TypeScript-based MCP (Model Context Protocol) server for generating images using Together AI API.
Overview
This server provides a simple interface to generate images using Together AI's image generation models through the MCP protocol. It allows Claude and other MCP-compatible assistants to generate images based on text prompts.
Related MCP server: mcp-media-engine
Features
Tools
generate_image- Generate images from text promptsTakes a text prompt as required parameter
Optional parameters for controlling generation steps and number of images
Returns URLs and local paths to generated images
Prerequisites
Node.js (v14 or later recommended)
Together AI API key
Installation
# Clone the repository
git clone https://github.com/zym9863/together-ai-image-server.git
cd together-ai-image-server
# Install dependencies
npm installConfiguration
Set your Together AI API key as an environment variable:
# On Linux/macOS
export TOGETHER_API_KEY="your-api-key-here"
# On Windows (Command Prompt)
set TOGETHER_API_KEY=your-api-key-here
# On Windows (PowerShell)
$env:TOGETHER_API_KEY="your-api-key-here"Alternatively, you can create a .env file in the project root:
TOGETHER_API_KEY=your-api-key-hereDevelopment
Build the server:
npm run buildFor development with auto-rebuild:
npm run watchUsage with Claude Desktop
To use with Claude Desktop, add the server config:
On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"Together AI Image Server": {
"command": "/path/to/together-ai-image-server/build/index.js"
}
}
}Replace /path/to/together-ai-image-server with the actual path to your installation.
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
API Reference
generate_image
Generates images based on a text prompt using Together AI's image generation API.
Parameters:
prompt(string, required): Text prompt for image generationsteps(number, optional, default: 4): Number of diffusion steps (1-4)n(number, optional, default: 1): Number of images to generate (1-4)
Returns:
JSON object containing:
image_urls: Array of URLs to the generated imageslocal_paths: Array of paths to locally cached images
License
MIT
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- Alicense-qualityBmaintenanceAn MCP server that enables Claude Code to generate context-aware images using local GPU-powered diffusion models, either automatically during coding or on-demand via slash commands.Last updated391MIT
- AlicenseAqualityBmaintenanceMCP server for AI-powered image, audio, and video generation, enabling media creation directly from Claude, Cursor, and other MCP clients.Last updated11297MIT
- Alicense-qualityCmaintenanceMCP server that enables Claude Code to generate images using Google's Gemini image generation models.Last updatedMIT
- Alicense-qualityCmaintenanceA local MCP server that enables Claude to generate images using the OpenAI API.Last updated13MIT
Related MCP Connectors
MCP server for Flux AI image generation
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for Grok Imagine AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/zym9863/together-ai-image-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server