Skip to main content
Glama

Servidor MCP mcp-flux-schnell

Un servidor MCP basado en TypeScript que implementa una herramienta de generación de texto a imagen mediante el modelo Flux Schnell. Este servidor se integra con la API de trabajo Flux Schnell de Cloudflare para proporcionar capacidades de generación de imágenes mediante MCP.

Características

Herramientas

  • generate_image - Genera imágenes a partir de descripciones de texto

    • Toma un mensaje de texto como entrada (1-2048 caracteres)

    • Devuelve la ruta al archivo de imagen generado

Related MCP server: Image Generator MCP Server

Variables de entorno

Se deben configurar las siguientes variables de entorno:

  • FLUX_API_URL : la URL del punto final de la API de Flux Schnell

  • FLUX_API_TOKEN : su token de autenticación para la API de Flux Schnell

  • WORKING_DIR (opcional) - Directorio donde se guardarán las imágenes generadas (predeterminado: el directorio de trabajo actual)

Desarrollo

Instalar dependencias:

npm install
# or
pnpm install

Construir el servidor:

npm run build
# or
pnpm build

Instalación

Configuración del cursor

Hay dos formas de configurar el servidor MCP en Cursor:

Configuración del proyecto

Para herramientas específicas de un proyecto, cree un archivo .cursor/mcp.json en el directorio de su proyecto:

{
  "mcpServers": {
    "mcp-flux-schnell": {
      "command": "node",
      "args": ["/path/to/mcp-flux-schnell/build/index.js"],
      "env": {
        "FLUX_API_URL": "your flux api url",
        "FLUX_API_TOKEN": "your flux api token",
        "WORKING_DIR": "your working directory"
      }
    }
  }
}

Esta configuración solo estará disponible dentro del proyecto específico.

Configuración global

Para las herramientas que desea utilizar en todos los proyectos, cree un archivo ~/.cursor/mcp.json en su directorio de inicio con la misma configuración:

{
  "mcpServers": {
    "mcp-flux-schnell": {
      "command": "node",
      "args": ["/path/to/mcp-flux-schnell/build/index.js"],
      "env": {
        "FLUX_API_URL": "your flux api url",
        "FLUX_API_TOKEN": "your flux api token",
        "WORKING_DIR": "your working directory"
      }
    }
  }
}

Esto hace que el servidor MCP esté disponible en todos los espacios de trabajo de Cursor.

Available Tools

1 tool
generate_imageC

Generate an image from a text prompt using Flux Schnell model

ParametersJSON Schema
NameRequiredDescriptionDefault
promptYesA text description of the image you want to generate.

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the model ('Flux Schnell') but fails to describe key traits like whether this is a read-only or mutative operation, potential rate limits, authentication needs, output format, or error handling. This leaves significant gaps for an AI agent to understand how to invoke it safely and effectively.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that directly states the tool's function without any redundant or extraneous information. It is front-loaded and appropriately sized for a simple tool, making it easy for an AI agent to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description is incomplete for a tool that performs image generation. It does not cover behavioral aspects like mutation risks, rate limits, or output details (e.g., image format, size), which are crucial for an AI agent to use the tool correctly in various contexts.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, with the 'prompt' parameter well-documented in the schema itself. The description adds minimal value beyond the schema by implying the prompt is for image generation, but it does not provide additional context like prompt formatting tips or model-specific constraints. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Generate an image from a text prompt using Flux Schnell model.' It specifies the verb ('generate'), resource ('image'), and method ('using Flux Schnell model'), which is specific and unambiguous. However, since there are no sibling tools, it cannot demonstrate differentiation from alternatives, preventing a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or constraints. It merely states what the tool does without indicating appropriate contexts or exclusions, such as when other image generation models might be preferred or if there are usage limits.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 1 tool updatev1.0.0
    • First observedgenerate_image

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 that cannot be confused with any other tool in the set.

Naming Consistency5/5

The single tool name 'generate_image' follows a clear verb_noun pattern. With only one tool, consistency is inherently perfect as there are no other names to compare against or deviate from.

Tool Count2/5

A single tool is too few for most practical server purposes, as it severely limits functionality and flexibility. For an image generation server, typical expectations might include variations like upscaling, editing, or batch processing, making one tool feel thin and under-scoped.

Completeness2/5

The server's domain appears to be image generation, but with only a basic generation tool, there are significant gaps. Missing operations might include image editing, style variations, resolution adjustments, or batch processing, which could lead to agent failures when more complex tasks are required.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers