FLUX.1 Kontext

by black-forest-labsco.huggingface.black-forest-labs/flux.1-kontext-dev

Kontext image editing on FLUX[dev]

  • Remote endpoint
  • 2 tools
  • MIT

Uptime

Checked  · every day

100%from 4 days of checks

Up without downtime on 3 of 3 days with data.

  • No downtime
  • Degraded
  • Down over 5 minutes
  • No data
  • Not checked yet

Response time

Median 911 ms, slowest 5% 997 ms for the handshake and the tool list, over 30 days.

1000 ms500 ms0

How far each check got

  • Reached the address 100%
  • Completed the handshake 100%
  • Listed its tools 100%

2 tools at the last answer.

Every day
DayResultChecksMedian
3 Nov (today)No verdict yet0–
2 NovNo downtime1of 1911 ms
1 NovNo downtime1of 1664 ms
31 OctNo downtime2912 ms

A failure counts as down time only when a second check five minutes later fails too. How we check

Connect to the publisher's own endpoint

Add to ~/.config/goose/config.yaml:

extensions:
  "flux-1-kontext-dev":
    type: streamable_http
    name: "flux-1-kontext-dev"
    enabled: true
    uri: "https://black-forest-labs-flux-1-kontext-dev.hf.space/gradio_api/mcp/sse"
    headers: {}
    env_keys: []
    envs: {}
    timeout: 300

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

For agents: the install prompt

Every step above as one Markdown text, for an assistant installing it for you.

# Install the MCP server FLUX.1 Kontext (`co.huggingface.black-forest-labs/flux.1-kontext-dev`)

Its page: https://plug.directory/servers/co.huggingface.black-forest-labs/flux.1-kontext-dev

It runs on the publisher's servers; the client connects to its URL.

Use the section for the person's client.

## Claude Desktop

Paste into Settings › Connectors › Add custom connector:

```text
https://black-forest-labs-flux-1-kontext-dev.hf.space/gradio_api/mcp/sse
```

## Claude Code

Run in a terminal:

```sh
claude mcp add --transport sse flux-1-kontext-dev https://black-forest-labs-flux-1-kontext-dev.hf.space/gradio_api/mcp/sse
```

## Cursor, Devin Desktop, LM Studio, Gemini CLI, oterm, ECA

Merge into the place for the person's client:

- Cursor: ~/.cursor/mcp.json
- Devin Desktop: ~/.config/devin/mcp_config.json
- LM Studio: mcp.json (Program › Install › Edit mcp.json)
- Gemini CLI: ~/.gemini/settings.json
- oterm: config.json in oterm's data folder (~/Library/Application Support/oterm on macOS, ~/.local/share/oterm on Linux, %APPDATA%\oterm on Windows)
- ECA: ~/.config/eca/config.json (global) or .eca/config.json in the project

```json
{
  "mcpServers": {
    "flux-1-kontext-dev": {
      "url": "https://black-forest-labs-flux-1-kontext-dev.hf.space/gradio_api/mcp/sse"
    }
  }
}
```

## VS Code

Merge into .vscode/mcp.json:

```json
{
  "servers": {
    "flux-1-kontext-dev": {
      "type": "sse",
      "url": "https://black-forest-labs-flux-1-kontext-dev.hf.space/gradio_api/mcp/sse"
    }
  }
}
```

## Zed

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

## Cline, AnythingLLM, Augment Code

Merge into the place for the person's client:

- Cline: cline_mcp_settings.json (MCP Servers › Configure › Configure MCP Servers)
- AnythingLLM: anythingllm_mcp_servers.json in the AnythingLLM storage plugins directory
- Augment Code: Augment Settings Panel – MCP section – Import from JSON (VS Code extension)

```json
{
  "mcpServers": {
    "flux-1-kontext-dev": {
      "type": "sse",
      "url": "https://black-forest-labs-flux-1-kontext-dev.hf.space/gradio_api/mcp/sse"
    }
  }
}
```

## Continue

Merge into ~/.continue/config.yaml:

```yaml
mcpServers:
  - name: "flux-1-kontext-dev"
    type: sse
    url: "https://black-forest-labs-flux-1-kontext-dev.hf.space/gradio_api/mcp/sse"
```

## Goose

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

## Codex

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

## mcp-client-cli, TUUI, BoltAI, Bob Shell, Kiro, Kiro CLI

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

## Agenvoy

This server's endpoint speaks only SSE, which this client's documentation does not list among its transports; use another client for it.

## Amp

Merge into ~/.config/amp/settings.json (user) or .amp/settings.json (workspace):

```json
{
  "amp.mcpServers": {
    "flux-1-kontext-dev": {
      "url": "https://black-forest-labs-flux-1-kontext-dev.hf.space/gradio_api/mcp/sse"
    }
  }
}
```

Then restart the client, or reload its MCP servers, and ask it to list the server's tools to confirm it started.

Tools 2

  • FLUX_1_Kontext_Dev_<lambda>
  • FLUX_1_Kontext_Dev_infer Perform image editing using the FLUX.1 Kontext pipeline. This function takes an input image and a text prompt to generate a modified version of the image based on the provided instructions. It uses the FLUX.1 Kontext model for contextual image editing tasks. Returns: A 3-tuple containing:, PIL.Image.Image: The generated/edited image, int: The seed value used for generation (useful when randomize_seed=True), gr.update: Gradio update object to make the reuse button visible, , >>> edited_image, used_seed, button_update = infer(, ... input_image=my_image,, ... prompt="Add sunglasses",, ... seed=123,, ... randomize_seed=False,, ... guidance_scale=2.5, ... )

From Hugging Face Spaces. Report a problem