Flux StudioSAFE
A Model Context Protocol server for Flux image generation, providing tools for image generation, manipulation, and control
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://smithery.ai/server/@jmanhype/mcp-flux-studio)
MCP server that wraps the Flux image generation API. Exposes text-to-image, image-to-image, inpainting, and structural control (canny/depth/pose) as MCP tools over stdio. The server itself is TypeScript; it shells out to a Python CLI (fluxcli.py) for actual API calls.
What It Does
Receives MCP tool calls, builds command-line arguments, spawns python3 fluxcli.py ... against a local Flux installation, and returns the output. Requires a BFL_API_KEY for the Flux API and a local copy of the Flux CLI.
Status
MCP Tools
Width and height are validated to 256-2048 range.
Setup
Via Smithery
npx -y @smithery/cli install @jmanhype/mcp-flux-studio --client claude
Manual
git clone https://github.com/jmanhype/mcp-flux-studio.git cd mcp-flux-studio npm install npm run build npm start
Environment Variables
216939dc0ab8OBSERVED · 2026-10-09Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add flux-mcp-server --env BFL_API_KEY=${BFL_API_KEY} -- npx -y [email protected]{
"mcpServers": {
"flux-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"BFL_API_KEY": "${BFL_API_KEY}"
}
}
}
}Exposed tools (4)
4 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
control | read | Generate an image using structural control |
generate | read | Generate an image from a text prompt |
img2img | read | Generate an image using another image as reference |
inpaint | read | Inpaint an image using a mask |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
@modelcontextprotocol/sdk, dotenv, @types/jest, @types/node, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint, husky
Gates applied: no_behavioural_pass.
216939dc0ab8full audit observations/trust-audit/mcp-server/jmanhype__flux-studio.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | 216939dc0ab8 | SAFE | B | 89 | first audit |
Questions
What is the Flux Studio MCP server?
A Model Context Protocol server for Flux image generation, providing tools for image generation, manipulation, and control
What tools does Flux Studio expose?
4 in total: 4 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Flux Studio safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Flux Studio need?
It reads BFL_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Flux Studio run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as flux-mcp-server at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (216939dc0ab8), read on 2026-10-09. The repository is watched and re-audited when it changes.