
Muse Image
io.github.kevintsai1202Published by GitHub account kevintsai1202v0.1.3Updated Oct 24, 2026
Generate, edit and iteratively refine images with Meta Muse, returning file paths not base64.
The publisher's own server: muse.space
Overview
A local MCP server that lets an assistant generate, edit and iteratively refine images with Meta's Muse model, saving files to disk and returning paths.
- What you can do
- Generate images from text prompts, one to ten per call, with aspect ratio, format and model options. Edit existing images by passing local files or URLs as references. Refine an image across turns by reusing a response id, so the assistant can keep adjusting the same picture. Save every result to a local output directory and return absolute file paths instead of image data. Report the estimated cost of each call.
- When to use it
- Useful when you want an assistant to produce or revise images inside a conversation without flooding its context with base64 data, and when you already have or are willing to get a Meta Model API key.
- Requirements
- Runs locally over stdio via the npm package, needing Node.js 20.12.0 or newer. Requires a Meta Model API key supplied as the MUSE_API_KEY environment variable, plus network access to the Meta API. Optional variables set the default model, output directory, base URL, timeout and extra parameters.
Installation
In SourceWeft
- Open Muse Image in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
muse-image-mcp
An MCP server that gives any MCP-capable agent — Claude Code, Claude Desktop, Cursor — image generation powered by the Meta Muse image model.
What it does
Three tools, covering the full loop of working with images in a conversation:
Why this server
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.
Requirements
- Node.js >= 20.12.0
- A Meta Muse API key
Getting an API key
Muse Image runs on the Meta Model API, so you register with Meta — not with this project:
- Go to https://dev.meta.ai and sign in to the Meta Model API dashboard.
- Open API keys.
- Click Create API key and copy the value.
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.
Install
Option 1: npx (recommended — no clone required)
npx fetches and runs the latest version on demand — nothing to install first.
--scope userapplies it to every project; use--scope localfor the current project only.-yskips npx's install prompt. Without it the server hangs on an interactive question and the handshake fails.- Everything after
--is the launch command;--envbefore it belongs toclaude 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"].
Option 2: Local clone (when you want to change the code)
After installing
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.
Configuring the API key
Precedence is the env block in your MCP config > a .env file.
Using the MCP config env block (the only route when installed via npx)
See --env MUSE_API_KEY=your-key above.
Using a .env file
The 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 npx
Note 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.
Environment variables
All of these work in either .env or your MCP config's env block.
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.
Switching models and passing new parameters
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.
Switching models
Globally, in .env or your MCP config:
Per call, just ask for it in conversation and the agent will pass model:
Passing new parameters
Global defaults as a JSON object string:
Per-call overrides via extra_params, merged with the global setting — the per-call value wins:
Protected core fields
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.
Tools
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
edit_image — edit from reference images
iterate_image — conversational refinement
This tool has no n parameter — the /v1/responses endpoint returns one image per turn. It does support size and output_format, but they travel inside the request's tools entry rather than at the top level; see the findings below.
The response always includes a response_id. Pass it as previous_response_id on the next call to continue the same conversation. This server stores no conversation state; Meta does.
Findings from /v1/responses
Request body: per-image settings live inside tools
reasoning_strength, size and output_format are not top-level parameters on this endpoint — they belong to the image_generation tool entry. Sending reasoning_strength at the top level is not merely ignored; the API rejects the whole request:
The correct shape:
Versions up to 0.1.0 sent reasoning_strength at the top level, which made iterate_image fail on every call. generate_image and edit_image were never affected — they use /images/generations and /images/edits, where these are legitimate top-level parameters.
This also corrects an earlier claim in this README: size and output_format are supported here. Specifying output_format: "png" returns a genuine PNG (verified by the base64 header) rather than the endpoint's webp default. Only n is genuinely unavailable — one image per turn.
scripts/probe-responses-api.mjs reproduces all of this against the live API, one hypothesis per case.
Response shape
Meta doesn't publish the response schema for /v1/responses. The original implementation was an educated guess modeled on OpenAI's Responses convention; it was later verified against real API calls. The actual structure:
Differences from the guessed shape:
idlocation:raw.idwas correct, confirmed by testing. No change needed.- Image data location: not in any
b64_jsonfield, but in theresultfield of theoutput[]entry wheretype === "image_generation_call", as raw base64 with no data URL prefix.src/muse-client.ts'sextractB64Imagesnow recognizes bothb64_json(kept for other possible shapes) and this verified shape. - No
output_formatfield: the response has none. The original fallback default of"png"was wrong — since the iterate request doesn't send anoutput_formatparameter, Meta applies the same default as/images/generations, which iswebp. The returned base64 decodes to a genuine WebP file (RIFF/WEBP header). The fallback is now"webp".
Multi-turn conversation is verified
Two real API calls were made in sequence: one iterate_image to obtain a response_id, then a second call using that id as previous_response_id. The second turn returned only the one image generated in that turn — it did not re-send the first turn's image. extractB64Images's deep-traversal logic needed no changes for this.
(The test tooling in that run didn't capture the second turn's raw response byte-for-byte, so this conclusion rests on filesystem evidence — exactly one output file, with no -2/-3 suffixes — rather than a byte-level comparison. The pinning test added in tests/muse-client.test.ts uses the real response shape verified earlier.)
Pricing
US$0.01 per generated image, regardless of reasoning_strength. Every tool response discloses the estimated cost of that call.
This server is free and MIT-licensed — you pay Meta for API usage, nothing else.
Development
License
MIT © Kevin Tsai
Source: README.md at commit efdff86
Tools
0Version history
1- v0.1.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Other Muse integrations
muse.space
space.museOfficial publisher
A remote MCP server that lets an AI assistant work with iCloud Mail, calendar and contacts through actions, without giving it your password.

Muse Marketplace
Published by GitHub account CloudCorpRecords
MCP server for the Muse Marketplace registry: lets an assistant search, inspect, validate and install shareable Muse avatars, personas, voices and bundles.

AisleNode Local Commerce (Meta Muse & Claude MCP)
Published by GitHub account marvo-bd
Bridges AI agents to live local retail store inventories, letting them search nearby in-stock products, reserve items and hand off a checkout link.

MuseCourt
Published by GitHub account danbuildss
MuseCourt is a remote MCP court for autonomous agents: file cases, submit evidence, argue, settle, and receive verdicts from a judge agent.

ScholarMuse
Published by GitHub account TopLocalAI
Hosted MCP endpoint giving AI assistants academic paper search, reference verification, research datasets, grants and scientific figure tools.