Skip to main content
Glama
Together AI Image MCP Server

Together AI Image MCP Server

Servidor de imágenes de inteligencia artificial Together

Un servidor MCP para generar imágenes utilizando los modelos de generación de imágenes de Together AI.

Configuración

  1. Instalar dependencias:

npm install
  1. Construir el servidor:

npm run build

Related MCP server: openrouter-image-gen-mcp

Configuración

1. Clave API de Together AI

El servidor requiere una clave API de Together AI. Puedes obtenerla en la plataforma de Together AI .

2. Configuración de Cline

Agregue el servidor a su archivo de configuración de Cline MCP:

Para 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": []
    }
  }
}

Uso en Cline

El servidor proporciona una herramienta generate_image con los siguientes parámetros:

{
  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')
}

Ejemplo de uso

Puedes usar el servidor en Cline de la siguiente manera:

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>

Producción

La herramienta devuelve una respuesta JSON que contiene:

  • filepath : Ruta completa a la imagen guardada

  • filename : Nombre del archivo de imagen guardado

  • dimensions : Dimensiones originales y finales de la imagen.

Características

  • Compatible con el último modelo FLUX.1.1-pro de Together AI

  • Cambia automáticamente el tamaño de las imágenes si las dimensiones son inferiores a 256 píxeles

  • Mantiene la relación de aspecto durante el cambio de tamaño.

  • Salida JPEG de alta calidad (calidad del 90%)

  • Crea directorios de salida de forma recursiva

  • Devuelve metadatos detallados, incluidas las dimensiones de la imagen.

Available Tools

1 tool
generate_imageC

Generate an image using Together AI

Inputs: prompt (required), model, width, height, +4 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'generate_image' has a clear and distinct purpose, making it impossible for an agent to misselect between non-existent alternatives.

    Naming Consistency5/5

    The naming pattern cannot be inconsistent with only one tool. The tool name 'generate_image' follows a verb_noun convention, which is straightforward and predictable, though there are no other tools to compare it against for consistency.

    Tool Count2/5

    A single tool for an image generation server feels thin and under-scoped. While it covers the core functionality, typical image generation APIs offer more operations (e.g., variations, edits, or style transfers), making this count borderline too few for the apparent domain.

    Completeness2/5

    The tool set is severely incomplete for an image generation domain. It only provides generation, with no obvious gaps to assess since there are no other tools, but the lack of common operations like editing, upscaling, or batch processing suggests significant coverage issues for agent workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers