Skip to main content
Glama

Together AI Image MCP Server

Together AI 图像服务器

使用 Together AI 的图像生成模型生成图像的 MCP 服务器。

设置

  1. 安装依赖项:
npm install
  1. 构建服务器:
npm run build

配置

1.Together AI API密钥

服务器需要 Together AI API 密钥。您可以从Together AI 平台获取。

2. Cline配置

将服务器添加到您的 Cline MCP 设置文件:

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

在 Cline 中的用法

服务器提供了一个generate_image工具,其参数如下:

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

示例用法

您可以像这样使用 Cline 中的服务器:

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>

输出

该工具返回一个 JSON 响应,其中包含:

  • filepath :保存图像的完整路径
  • filename :保存的图像文件的名称
  • dimensions :图像的原始尺寸和最终尺寸

特征

  • 支持Together AI最新的FLUX.1.1-pro模型
  • 如果尺寸小于 256 像素,则自动调整图像大小
  • 调整大小时保持纵横比
  • 高质量 JPEG 输出(90% 质量)
  • 递归创建输出目录
  • 返回包括图像尺寸在内的详细元数据
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

通过 MCP 服务器使用 Together AI 的模型生成图像,支持模型选择、图像尺寸和输出目录等可自定义的参数。

  1. 设置
    1. 配置
      1. 1.Together AI API密钥
      2. Cline配置
    2. 在 Cline 中的用法
      1. 示例用法
      2. 输出
    3. 特征

      Related MCP Servers

      • A
        security
        F
        license
        A
        quality
        An advanced MCP server for Cline that leverages EverArt's AI models to generate vector and raster images, supporting flexible storage, multiple formats, and robust image generation capabilities.
        Last updated -
        3
        1
        JavaScript
      • A
        security
        A
        license
        A
        quality
        A MCP server that enables Claude and other MCP-compatible assistants to generate images from text prompts using Together AI's image generation models.
        Last updated -
        1
        2
        TypeScript
        MIT License
        • Apple
        • Linux
      • -
        security
        A
        license
        -
        quality
        A FastMCP server implementation that provides a standardized interface for accessing AI models hosted on Replicate's API, currently supporting image generation with customizable parameters.
        Last updated -
        2
        Python
        MIT License
      • A
        security
        A
        license
        A
        quality
        An MCP Server that integrates with Stability AI's API to provide high-quality image generation, editing, and manipulation capabilities including background removal, outpainting, search-and-replace, and upscaling.
        Last updated -
        13
        35
        55
        TypeScript
        MIT License
        • Apple

      View all related MCP servers

      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/stefanskiasan/togetherai-image-mcp-server'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server