Together AI MCP server

CommunityManas Bharadwaj9Config last verified Jun 1, 2026

Community MCP server for Together AI image generation: create high-quality images with the FLUX.1 Schnell model straight from your agent.

together-mcp is a lightweight community MCP server that connects an agent to Together AI's image generation, the serverless inference platform that hosts open models for image, language, and more. It exposes a single, focused tool — generate_image — that turns a text prompt into a high-quality image using Together's hosted FLUX.1 Schnell model, with parameters to control dimensions, the number of diffusion steps, and the output format.

The server is deliberately minimal: rather than wrapping Together's entire API, it does one thing well, which makes it a clean way to give a coding or chat agent the ability to illustrate a document, mock up a UI asset, or generate concept art inline. It runs locally over stdio via npx (together-mcp) and authenticates with a TOGETHER_API_KEY from the Together AI dashboard. The default model, black-forest-labs/FLUX.1-schnell-Free, is fast and inexpensive, and the package is published on npm under an MIT license. For teams already running other inference on Together, it slots Together's image capability into the same MCP-based agent workflow you use for everything else.

Quick install

Copy-paste configs are provided for all 8 supported clients. Pick your client below.

Add to ~/.claude.json

~/.claude.json
json
{
  "mcpServers": {
    "together": {
      "command": "npx",
      "args": [
        "-y",
        "together-mcp@latest"
      ],
      "env": {
        "TOGETHER_API_KEY": "<TOGETHER_API_KEY>"
      }
    }
  }
}
Or via CLI
bash
claude mcp add together -- npx -y together-mcp@latest

Available tools

ToolDescription
generate_imageGenerate a high-quality image from a text prompt using Together AI's FLUX.1 Schnell model, with optional width, height, number of steps, and output format.

Required configuration

  • TOGETHER_API_KEYRequired

    Together AI API key from api.together.ai/settings/api-keys. Required.

What you can do with it

Illustrate content inline

Ask the agent to generate a hero image or diagram for a draft, and it calls generate_image with the right dimensions so the asset is ready without switching to a separate image tool.

Mock up assets during prototyping

While scaffolding a landing page, the agent generates placeholder imagery and concept art on the fly with FLUX.1 Schnell, keeping the design loop inside the editor.

FAQ

Is it free?
The MCP server is open source (MIT) and free to run. It calls Together AI's image API against your TOGETHER_API_KEY; the default FLUX.1 Schnell Free model is low-cost or free within Together's limits, and other models bill per generation.
Does it support remote/OAuth?
No. It runs locally over stdio via npx and authenticates with a TOGETHER_API_KEY. There is no OAuth flow or hosted remote endpoint.
Which model does it use?
It defaults to Together's hosted black-forest-labs/FLUX.1-schnell-Free model, a fast diffusion model well suited to quick, high-quality image generation.
← Browse all ai-ml servers