Generate, edit and iteratively refine images with Meta Muse, returning file paths not base64.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
One-click editor setup isnโt available for this listing yet โ we donโt have a confirmed install command, and weโd rather show nothing than point your editor at the wrong package or host. Follow the projectโs own setup instructions, linked above.
English ยท ็น้ซไธญๆ ยท ็ฎไฝไธญๆ
An MCP server that gives any MCP-capable agent โ Claude Code, Claude Desktop, Cursor โ image generation powered by the Meta Muse image model.
Three tools, covering the full loop of working with images in a conversation:
| Tool | What it's for |
|---|---|
generate_image | Text to image. 1โ10 images per call. |
edit_image | Edit from reference images โ local files or URLs. |
iterate_image | Conversational refinement. Keep saying "make it warmer" and it remembers. |
Your context window survives. Every tool writes images to disk and returns an absolute file path โ never the image bytes. Generating a dozen images costs you a dozen lines of context instead of a dozen megabytes of base64. When you actually want to look at an image, open the path with a file-reading tool.
Multi-turn refinement without state. iterate_image returns a response_id; feed it back as previous_response_id and the next turn continues the same conversation. The server itself stores nothing โ conversation state lives on Meta's side, so the server stays restartable and stateless.
New models don't require a new release. Switch models with MUSE_MODEL or a per-call model parameter, and pass parameters this server has never heard of through extra_params. Fields that determine request structure are protected from being overwritten; everything else is a deliberate escape hatch.
You always know what it cost. Every response ends with the estimated cost of that call.
Muse Image runs on the Meta Model API, so you register with Meta โ not with this project:
That value is what you pass as MUSE_API_KEY below. Meta's own documentation calls this variable MODEL_API_KEY; this server reads it as MUSE_API_KEY, talks to https://api.meta.ai/v1, and defaults to the model muse-image-1.0.
Reference: Model API docs ยท Image generation ยท Muse Image announcement
Keep the key out of source control โ use the MCP config's env block or a .env file, both described below.
npx fetches and runs the latest version on demand โ nothing to install first.
--scope user applies it to every project; use --scope local for the current project only.-y skips npx's install prompt. Without it the server hangs on an interactive question and the handshake fails.-- is the launch command; --env before it belongs to claude mcp add.For other MCP clients (Claude Desktop, Cursor), write the config by hand:
On Windows, if npx can't be found, use "command": "cmd" with "args": ["/c", "npx", "-y", "muse-image-mcp"].
Start a new session โ MCP servers are loaded at session start, so an existing session won't pick it up. Then confirm with claude mcp list, which should show muse-image: ... - Connected, and check that the three mcp__muse-image__* tools are available.
Precedence is the env block in your MCP config > a .env file.
env block (the only route when installed via npx)See --env MUSE_API_KEY=your-key above.
.env fileThe server searches these locations in order and uses the first one that exists:
<package root>/.env โ convenient for a local clone~/.muse-image-mcp/.env โ the only location you control when installed via npxNote that .env is not read from the directory you launched Claude Code in โ an MCP server's working directory is decided by the client, which makes it a poor place for configuration. When installed via npx the package itself lives in a hashed npm cache directory that gets cleaned up, so a .env there would be pointless.
All of these work in either .env or your MCP config's env block.
| Variable | Required | Default | Description |
|---|---|---|---|
MUSE_API_KEY | Yes | โ | API key. Without it the server exits immediately and explains itself on stderr |
MUSE_MODEL | No | muse-image-1.0 | Global default model ID |
MUSE_EXTRA_PARAMS | No | {} | JSON object string โ global default extra parameters |
MUSE_OUTPUT_DIR | No | <cwd>/generated-images | Output directory, created if missing |
MUSE_BASE_URL | No | https://api.meta.ai/v1 | API base URL |
MUSE_TIMEOUT_MS | No | 120000 | Per-request timeout in milliseconds |
The
cwdinMUSE_OUTPUT_DIR's default is the working directory the MCP client launched the server from. In Claude Code that's the project root of your session, so images land in that project'sgenerated-images/. If your client behaves differently, or you want a fixed location, setMUSE_OUTPUT_DIRto an absolute path.Since v0.1.0 the default output directory changed from
muse-output/togenerated-images/. The old directory is not deleted or migrated automatically.
When a new model ships you don't have to wait for this project to update โ switch models with an environment variable, send new parameters through extra_params.
Globally, in .env or your MCP config:
Per call, just ask for it in conversation and the agent will pass model:
Global defaults as a JSON object string:
Per-call overrides via extra_params, merged with the global setting โ the per-call value wins:
model, prompt, response_format, images, input, store, and previous_response_id determine the structure of the request and cannot be overwritten by extra_params. Setting them there has no effect, and the response will end with a warning listing the ignored keys.
To change models, use the model parameter or MUSE_MODEL โ not extra_params.
Outside those core fields, extra_params does override same-named regular parameters, including n, size, output_format, and reasoning_strength. The tool schema's validation for these (for example n being limited to 1โ10) does not apply on this path โ that's a deliberate escape hatch so a future model that changes parameter semantics isn't blocked by today's limits. When overriding n this way, watch your image count and cost.
Every tool saves images locally and returns absolute paths, never the image content itself โ this keeps base64 out of your conversation context. Open the path with a file-reading tool when you want to see the image.
generate_image โ text to image| Parameter | Required | Default | Description |
|---|---|---|---|
prompt | Yes | โ | Image description |
n | No | 1 | Number of images, 1โ10 |
size | No | โ | Aspect ratio string such as 1792x1024 โ not an exact pixel resolution |
output_format | No | png | png / webp / jpeg |
reasoning_strength | No | high | high / low โ priced the same |
filename_prefix | No | muse | Output filename prefix |
model | No | โ | Model ID; omit to use the server default (see MUSE_MODEL) |
extra_params | No | โ | Object of extra parameters, merged with MUSE_EXTRA_PARAMS with per-call priority; core fields are protected (see above) |
edit_image โ edit from reference images| Parameter | Required | Default | Description |
|---|---|---|---|
prompt | Yes | โ | Image description |
images | Yes | โ | Array of local file paths (png/jpg/jpeg/webp/gif) or http(s) URLs. Local files are base64-encoded automatically |
n | No | 1 | Number of images, 1โ10 |
size | No | โ | Aspect ratio string such as 1792x1024 โ not an exact pixel resolution |
output_format | No | png | png / webp / jpeg |
reasoning_strength | No | high | high / low โ priced the same |
filename_prefix | No | muse-edit | Output filename prefix |
model | No | โ | Model ID; omit to use the server default |
extra_params | No | โ | Same merge and protection rules as above |
iterate_image โ conversational refinementNo reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/muse-image)<a href="https://allmcps.com/mcp/muse-image"><img src="https://allmcps.com/api/badge/muse-image?style=directory" alt="Muse Image on AllMCPs" /></a>