# Muse Image [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/kevintsai1202/muse-image-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 173  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/muse-image

## Description
Generate, edit and iteratively refine images with Meta Muse, returning file paths not base64.

## Tools
Capabilities this server exposes over MCP:

- **generate_image** — 以 Meta Muse 模型從文字描述生成圖片。圖片會存到本機並回傳絕對路徑（不回傳圖片內容本身，需要看圖請用檔案讀取工具開啟該路徑）。size 參數是長寬比而非精確像素解析度。每張圖片成本 US$0.01。
- **edit_image** — 以 Meta Muse 模型依既有圖片與指令生成新圖。images 可填本機檔案路徑或 http(s) 網址，本機檔案會自動轉成 base64，呼叫端不需自行處理。結果存到本機並回傳絕對路徑。每張圖片成本 US$0.01。
- **iterate_image** — 以對話方式多輪迭代修改圖片。回傳中一定包含 response_id；下一輪修改時把它填入 previous_response_id 即可延續同一段對話，本 server 不保存任何對話狀態。每張圖片成本 US$0.01。

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "muse-image": {
    "command": "npx",
    "args": ["-y","muse-image-mcp"],
    "env": {
      "MUSE_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `MUSE_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the Muse Image MCP server does

The Muse Image MCP server gives MCP-compatible agents access to Meta's Muse image model through the Meta Model API. It supports three stages of an image workflow:

- `generate_image` creates between one and ten images from a text prompt.
- `edit_image` applies changes using reference images supplied as local files or URLs.
- `iterate_image` supports conversational refinement, allowing a follow-up instruction such as changing the color or mood of an earlier result.

Each tool saves output to the local filesystem and returns an absolute file path rather than image bytes. An agent can use a file-reading tool when it needs to inspect the result. Responses also include the estimated cost of the request.

## How it works

The server sends requests to Meta's API at `https://api.meta.ai/v1` by default and uses `muse-image-1.0` unless another model is selected. The model can be changed globally with `MUSE_MODEL` or for an individual call with the `model` parameter.

Iterative conversations use a response identifier. After `iterate_image` returns a `response_id`, the agent passes that value as `previous_response_id` for the next turn. The server does not retain conversation state; Meta holds the state associated with the response ID, so restarting the MCP process does not require local session storage.

Additional request parameters can be supplied through `MUSE_EXTRA_PARAMS` or a tool call's `extra_params` object. Per-call values take priority over global values. Request-structure fields such as `model`, `prompt`, `input`, `images`, `response_format`, `store`, and `previous_response_id` are protected from replacement through this mechanism.

## Setup and configuration

The Muse Image MCP server requires Node.js 20.12.0 or later and a Meta Model API key. Create the key in the Meta Model API dashboard at `dev.meta.ai`, then provide it as `MUSE_API_KEY`.

The package can run through `npx` without cloning the repository:

```json
{
  "mcpServers": {
    "muse-image": {
      "command": "npx",
      "args": ["-y", "muse-image-mcp"],
      "env": { "MUSE_API_KEY": "your-key" }
    }
  }
}
```

A local clone can instead be installed, built, and launched with Node using `dist/index.js`. The API key may also be stored in a `.env` file. Configuration in the MCP client's `env` block takes precedence over `.env`; supported locations are the package root and `~/.muse-image-mcp/.env`. Start a new agent session after installation so the client loads the server.

`MUSE_OUTPUT_DIR` controls where files are written and defaults to `generated-images` below the server's working directory. `MUSE_BASE_URL` changes the API endpoint, and `MUSE_TIMEOUT_MS` sets the per-request timeout.

## Tools and capabilities

`generate_image` accepts a prompt, optional image count, aspect-ratio-style size, output format, reasoning strength, filename prefix, model, and extra parameters. PNG, WebP, and JPEG output are supported by the documented tool options.

`edit_image` works from reference images provided as local paths or URLs. `iterate_image` is intended for multi-turn adjustments that continue from a previous response. All three tools return file locations instead of embedding generated images in the MCP response.

## Limitations and notes

A valid Meta API key is required; without `MUSE_API_KEY`, the process exits and reports the problem on stderr. The default output directory depends on the working directory chosen by the MCP client, so set an absolute `MUSE_OUTPUT_DIR` when files must go to a fixed location.

The `size` value describes an aspect ratio such as `1792x1024`, not a guaranteed pixel resolution. The normal `n` validation allows one to ten images, but values supplied through `extra_params` can bypass current schema limits and may affect image count and cost. The server itself stores no iterative conversation state, and the response ID must be supplied for continued refinement.

_Full upstream README: https://allmcps.com/mcp/muse-image/readme_

