Skip to content
MCP server

midjourney-mcp-cli MCP Server

Midjourney MCP server and CLI for Claude Code and AI agents. 32 tools for generating images, following jobs to completion, downloading the real files, and building moodboards that make a style reusable.

midjourney-mcp-cli scores 52 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 33 tools. Filed under Design, File systems, AI and memory. GitHub shows 13 stars. Package registries report about 94 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by thenavidmMITTypeScript13 stars
Trust score
52Fair
Trust score 52 of 100, Fair

Fair trust

52 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 52 comes from

0 + 20 + 8 + 10 + 4 + 10 = 52. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity8 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 8 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "thenavidm-midjourney-mcp-cli": {      "command": "npx",      "args": [        "-y",        "@thenavidm/midjourney-mcp-cli@2.0.1"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools33Tool docs quality grade C

All capabilities

About

Midjourney MCP + CLI

npm License YouTube X LinkedIn

Midjourney MCP server and CLI for Claude Code, Codex and AI agents. 32 tools for generating images, following jobs to completion, downloading the real files, and building moodboards that make a style reusable.

Midjourney publishes no API, so this drives a real Chrome that is signed in as you.

There is no key to paste and no cookie to export. You sign in once, in a window, and the session lives in a browser profile rather than in a config file.

32 tools, on both surfaces. It waits for jobs to finish and hands back the actual files, not a screenshot of them.

Built and maintained by Navid Moazzez. Built on Slipway, which turns one definition of each tool into the MCP server and the CLI.

Two ways to use it

Command line

midjourney-cli in your terminal, for scripting, cron, pipes, or a quick question without opening anything:

midjourney-cli                                        # every command, one line each
midjourney-cli login                                  # sign in once, in a window
midjourney-cli imagine "a red fox in snow" --ar 16:9 --confirm
midjourney-cli list-jobs --limit 5 --select id,prompt --json
midjourney-cli download-job <job-id> --out-dir ./renders
midjourney-cli list-moodboards --json | jq -r '.moodboards[].title'
midjourney-cli which "save my pictures to disk"       # find the right command
midjourney-cli <command> --help                       # what any command takes

--confirm is the shell spelling of the confirmation that generating requires. --json gives JSON, --compact puts it on one line, --select id,status keeps only the fields you name, and errors are JSON on stderr whichever you pick.

Handlers return data rather than pre-rendered text, so --json gives real fields on every command and jq works the same way everywhere.

MCP server, for your AI app

midjourney-mcp is what Claude Code, Claude Desktop, Cursor and the rest launch. You never run it by hand:

claude mcp add midjourney -- npx -y @thenavidm/midjourney-mcp-cli@latest

There is nothing to put in -e. Run midjourney-cli login first.

Then just ask: "shoot that campaign in the style of my High Fashion moodboard".

Every other client is in section 3. Each generation waits for your approval in the client, as section 7 explains.

Which one

Where you areWhat you can reach
An agent that can run shell commands, like Claude Code or CursorBoth. The CLI is the cheaper one: it costs nothing until you type it
claude.ai or a phoneNeither. Your logged-in browser is on this machine, and a cloud connector cannot reach it
A terminal, a script, cron or CIThe CLI only. There is no MCP client in a shell

They are the same program reading the same tool definitions, so anything one can do, the other can.

Features

Every tool is both a command and an MCP tool, with the same name. The command is the tool name with dashes.

CapabilityCLI commandMCP tool
Who am I, is the session livemidjourney-cli whoamiwhoami
Generate and wait for the imagesmidjourney-cli imagineimagine
Generate without waitingmidjourney-cli submit-imaginesubmit_imagine
Re-run a job, or re-render at HDmidjourney-cli rerun-jobrerun_job
Vary one image from a gridmidjourney-cli vary-imagevary_image
Recent generationsmidjourney-cli list-jobslist_jobs
One job by idmidjourney-cli get-jobget_job
Wait for a job to finishmidjourney-cli wait-for-jobwait_for_job
What is rendering nowmidjourney-cli get-queueget_queue
Save the real files to diskmidjourney-cli download-job / download-urldownload_job / download_url
List and read moodboardsmidjourney-cli list-moodboards / get-moodboardlist_moodboards / get_moodboard
Create a moodboardmidjourney-cli create-moodboardcreate_moodboard
Add to, remove from a moodboardmidjourney-cli add-to-moodboard / remove-from-moodboardadd_to_moodboard / remove_from_moodboard
Personalisation profilesmidjourney-cli list-personalized-profileslist_personalized_profiles
Folders and storagemidjourney-cli list-folders / get-storagelist_folders / get_storage
The public explore feedmidjourney-cli explore-feedexplore_feed
Any endpoint with no named toolmidjourney-cli api-get / submit-raw-jobapi_get / submit_raw_job
Check your setupmidjourney-cli doctornot a tool
Sign inmidjourney-cli loginnot a tool
Record what the web app callsmidjourney-cli capturenot a tool
Find the right commandmidjourney-cli which "..."not a tool

All 27 with their arguments are in section 6.

Contents

#SectionWhat is in it
1What you can ask itReal prompts, not features
2Sign in onceNo key, no cookie
3InstallEvery client, copy and paste, plus the shell
4Output and exit codesWhat scripts branch on
5Which surface, and what each costsMeasured in Claude Code, and how to spend less
6ToolsAll 32, by what they reach
7Spending safelyWhy generating asks twice
8Prompts and parametersThe grammar, validated before you pay
9MoodboardsTurning a look into something reusable
10How it worksArchitecture, and why a browser
11Your dataWhat is stored and where
12RisksRead this before you install
13TroubleshootingWhen something breaks
14Environment variablesEvery knob, and its default
15FAQIncluding what an MCP server is

1. What you can ask it

  • Make me a 16:9 hero image of a red fox asleep in snow, muted palette
  • Shoot that campaign in the style of my High Fashion moodboard
  • Make a moodboard for cold Nordic product shots, fill it, then shoot a jar of face cream in that style
  • Generate four logo concepts at low stylize so they stay literal, and save them
  • Vary the second one, strong, and save the results
  • Upscale that one and turn it into a video
  • Take that last image's seed and try it again with chaos 40
  • What is in my Midjourney queue right now?
  • Download everything I generated today into ./renders
  • Show me my last ten jobs with just the prompt and the image URLs
  • Re-run job 3f9c1a2b with the prompt changed to say "at dusk"

The thing you cannot do without this: hand an agent a brief and get finished image files back. Every other route stops at a job id, or at a screenshot of the image rather than the image. This waits for the render and writes the real bytes to disk, so the next step in a pipeline has something to open.

2. Sign in once

There is no API key. Midjourney does not issue one, and this server never handles a credential of any kind.

Instead it runs Chrome against a profile of its own, at ~/.midjourney-mcp/chrome-profile. You sign in there once and the session persists, exactly as it would in a browser you use by hand.

npx -y @thenavidm/midjourney-mcp-cli@latest login

A Chrome window opens on midjourney.com. Sign in. The command waits, notices, and exits.

The profile is separate from your everyday Chrome on purpose. Nothing here can see your normal browsing, your other logins, or your history, and your normal browser does not need to be running.

To revoke it, sign out in that window, or delete the profile:

rm -rf ~/.midjourney-mcp/chrome-profile

3. Install

The long version, every step with what to do when one fails, is in INSTALL.md.

Node 22 or newer, and Google Chrome. Nothing else.

npx -y @thenavidm/midjourney-mcp-cli --version

Node 22 is the floor because the browser connection uses the global WebSocket that landed in that release. That is also why it has no dependency doing it.

Claude Code

claude mcp add midjourney -- npx -y @thenavidm/midjourney-mcp-cli@latest

--scope user makes it available in every project rather than the current one.

Claude Desktop

PlatformPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "midjourney": {
      "command": "npx",
      "args": ["-y", "@thenavidm/midjourney-mcp-cli@latest"]
    }
  }
}

There is also a one-click .mcpb bundle on the release page, installed through Settings, Extensions, Install Extension.

[!TIP] Claude Desktop does not inherit your shell PATH, so a bare npx can fail silently. Use the absolute path from which npx, and fully quit the app rather than closing the window.

Cursor

.cursor/mcp.json, the same JSON shape as Claude Desktop, key mcpServers.

VS Code

.vscode/mcp.json. The key is servers, not mcpServers, and the entry takes "type": "stdio".

{
  "servers": {
    "midjourney": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@thenavidm/midjourney-mcp-cli@latest"]
    }
  }
}

Codex CLI

~/.codex/config.toml:

[mcp_servers.midjourney]
command = "npx"
args = ["-y", "@thenavidm/midjourney-mcp-cli@latest"]

The shell

Both binaries come from the same install. midjourney-cli with no arguments lists every command.

midjourney-cli install claude-code (or codex, claude-desktop, cursor, vscode, gemini) adds the server to a client in its own format; add --dry-run to see the change first.

Check it worked

npx -y @thenavidm/midjourney-mcp-cli@latest doctor

It checks in dependency order and stops at the first real problem, because these failures all produce the same symptom from a tool call and need completely different fixes.

The two that actually happen:

Browser running fails. Chrome is not up on the DevTools port. It starts on demand on the first tool call, so this is only a problem if you have set MIDJOURNEY_CHROME_LAUNCH=0. Run login to start it by hand.

Signed in fails. The window is open but the profile is signed out. Run login again.

4. Output and exit codes

Results on stdout, errors on stderr as JSON, so one parse handles both.

FlagResult
nonepretty JSON
--jsonJSON, always
--compactthe same JSON on one line
--select a,b.ckeep only these fields. Dotted paths descend, arrays are traversed element-wise, and a field not at the top selects inside the one list a result holds, keeping the rest
--agentcompact JSON. Never implies --confirm

--select matters more here than it looks. One explore page is tens of kilobytes, most of it layout metadata, and an agent piping that into its context pays for every byte.

--agent deliberately does not imply confirmation, unlike the equivalent in some other CLIs. A flag an agent passes by habit must never be the thing that authorises a charge.

CodeMeans
0it worked
1an unexpected error, worth an issue
2it was typed wrong, or a write was refused: a missing flag, an unknown command, a bad --ar, no --confirm, or read only
3the job, folder or asset is not there
4signed out, or a Cloudflare check is waiting in the browser window
5Midjourney or the browser failed
7rate limited, or out of fast hours

5. Which surface, and what each costs

Both surfaces are the same program with the same 32 tools. The difference is when the model pays for them. Measured in Claude Code:

CostMCP serverCLI
Every message, with every tool loaded13,900 tokensnothing
Every message, Claude Code's default1,010 tokensnothing
When Midjourney comes upnothing more, or the tools it picks3,840 tokens for SKILL.md, once
20 messages with Midjourney in 1, every tool loaded278,000 tokens3,840 tokens

Claude Code's tool search is on by default: it sends only the tool names and the server instructions, and loads a tool's full definition when the model reaches for it. An app that loads every tool up front pays the first line on every message, whether Midjourney comes up or not. With the skill added, Claude Code also lists its one-line description, about 90 tokens.

To spend less, turn the server off when you are not using it, which in Claude Code is the /mcp panel. MIDJOURNEY_READ_ONLY=1 takes the 15 write tools off the list, leaving 17. Or install the CLI and add the server on the days it earns its place.

Measured on 2026-10-05 with Claude Code 2.1.286 on Claude Opus 5.5: one short prompt with and without the server connected, once with ENABLE_TOOL_SEARCH=false and once with the default, the difference read from the API's own usage figures. SKILL.md was measured the same way. Other apps and models count tokens a little differently.

Against 1.3.1, measured the same day: every tool loaded costs 13,904 tokens instead of 15,243, tool search the same, and SKILL.md 140 more, because it now names all ten tools that spend where 1.3.1 named four, with the approval rule and the full exit codes. In Codex 0.159.3 on gpt-6.1-sol, the same task, "find the command that makes variations of one image from a finished job and the flags it requires", read a median of 84,264 input tokens on 2.0.0 against 85,194 on 1.3.1 over the CLI, and 48,950 against 48,936 over MCP, five runs each. Codex reads MCP tools by printing them from a script and cuts that printout to the same length on both sides, so the 14 extra tokens are a different slice of the same list. By Codex's own count the full list is 701 tokens longer on 2.0.0, for one reason: the shorter approval note brings imagine under the size where Codex leaves out argument descriptions, so imagine now reaches Codex with all 31 arguments explained, where 1.3.1 sent it with none.

6. Tools

Making images

ToolWhat it does
imagineGenerate, wait for the job, return the images. Optionally save them. Spends
submit_imagineSubmit and return the job id without waiting. Spends
rerun_jobRun an existing job again, optionally with new wording or at HD. Spends
vary_imageFour variations of one image from a grid, subtle or strong. Spends
upscale_imageUpscale one image to full resolution, subtle or creative. Spends
animate_imageTurn one image into a video. Spends
pan_imageExtend the frame left, right, up or down. Spends
zoom_outPull the camera back and fill the new space. Spends
remix_imageRe-render an image against a new prompt, keeping its composition. Spends
submit_raw_jobSend a job type this server does not model yet. Spends

Following work

ToolWhat it does
list_jobsRecent generations, newest first, with status and image URLs
get_jobOne job by id, with its real status
wait_for_jobBlock until a job finishes, fails or is moderated
get_queueWhat is running now, and how much concurrency the plan allows
job_updatesThe live delta feed the web app itself polls

Getting the files

ToolWhat it does
download_jobWrite a job's images to disk. Real files, full resolution
download_urlWrite one asset to disk by URL

Moodboards and style

ToolWhat it does
list_moodboardsEvery board, with how many reference images each holds
get_moodboardOne board by name, and the references a generation would use
create_moodboardStart a new board for a look
add_to_moodboardPut a job's renders, or any URLs, onto a board
remove_from_moodboardTake images off a board. Needs confirm
list_personalized_profilesProfiles, with how many images each was trained on

Your account

ToolWhat it does
whoamiWhich account is signed in, and whether the browser is reachable
list_foldersFolders in the Organise view
get_storageStorage used against what the plan allows
list_followingCreators this account follows
list_model_ratingsPending rating tasks, which earn fast hours
get_contest_ranking_countContest rounds completed

Explore, and the escape hatch

ToolWhat it does
explore_feedThe public feed, with prompts and image URLs
explore_style_likesWhich styles this account has liked
api_getAny /api/ path, for endpoints with no named tool yet

midjourney-cli which "<what you want>" resolves a capability described in words to the command that does it, so you do not have to read this table.

7. Spending safely

Reads work freely. What is guarded is spending.

Every generation burns GPU time from a paid plan and there are no refunds, so the 10 tools that spend it wait for your approval: imagine, submit_imagine, rerun_job, vary_image, upscale_image, animate_image, pan_image, zoom_out, remix_image and submit_raw_job. remove_from_moodboard asks too.

In a terminal that is --confirm, which --agent never adds. Over MCP a person approves each call where the client can ask: Claude Code (2.1.246 and later) shows its own prompt, and a client that can show forms asks with an approval form whose one box starts unticked. Each approval is signed, bound to that exact call and works once. Where a client can do neither, the model's confirm: true counts, and it should pass it only when you asked for that image. MIDJOURNEY_CONFIRM=model makes confirm: true enough everywhere, for an agent with no person to ask.

Adding to a moodboard does not ask, and neither do downloads. Approving harmless things is how people learn to click yes by reflex, which defeats the gate on spending.

A generation is not annotated destructive, because it destroys nothing. It is a write that spends: it needs approval and MIDJOURNEY_ALLOW_DESTRUCTIVE=0 refuses it, so a client deciding what to auto-approve is told the truth about what it is approving.

MIDJOURNEY_READ_ONLY=1          removes every tool that is not a read, 17 remain
MIDJOURNEY_ALLOW_DESTRUCTIVE=0  keeps reads and downloads, blocks anything that spends
MIDJOURNEY_AUDIT_LOG=<path>     one JSON line per attempted change, allowed and blocked, and who approved it

8. Prompts and parameters

Write the subject in prompt and everything else as named arguments. Do not put --ar inside the prompt string.

The arguments are validated before anything is spent. Midjourney is not: it silently ignores or clamps most malformed parameters rather than reporting them, so a typo costs a generation and comes back looking like a bad result rather than a mistake.

ArgumentWhat it does
aspect"16:9", "3:2", "1:1". Sent as --ar
stylize0-1000. Low follows the prompt, high looks prettier and drifts
chaos0-100. How different the four results are from each other
seedReuse with an identical prompt to iterate on one image
style_refsAn image URL, a numeric code, or random. Sent as --sref
omni_refsCarry a character or object across images. The v7+ replacement for --cref
image_promptsDirect image URLs, including s.mj.run links, used as visual input
negativeThings to keep out. Sent as --no
rawLess automatic prettification. Good for photographic work
draftMuch faster and cheaper, lower fidelity. Good for exploring
speedfast, relax or turbo

At the terminal, Midjourney's own spellings work as aliases: --ar, --sref, --oref, --iw, --sw, --ow, --q, --no, --v.

9. Moodboards

A moodboard is a set of images the account has curated. Applying one is the same mechanism the web app's Personalize panel uses: the board becomes a personalization code on the prompt, resolved for you from its name.

midjourney-cli imagine "a ceramic jar of face cream" --moodboard "Nordic Skincare" --confirm

That is worth stating because there is a plausible wrong way to do the same thing: sampling the board's images into --sref URLs. It only registers at a high --sw, and that weight is what makes output look over-processed. The personalization code needs no weight and does not compete with your wording.

The loop:

midjourney-cli create-moodboard "Nordic Skincare"
midjourney-cli imagine "<a long, specific style description>" --confirm
midjourney-cli add-to-moodboard "Nordic Skincare" --job-id <job>
midjourney-cli imagine "a ceramic jar of face cream" --moodboard "Nordic Skincare" --confirm

Partial names work: "High Fashion" finds "High Fashion | Woman". An ambiguous name errors with the candidates rather than guessing, because picking the wrong board costs a generation to discover.

--p accepts several codes, so a moodboard and a personalization profile apply together. profile is the other kind of personalization: it biases toward images the account has rated, rather than toward a set of pictures.

Leave the sliders alone

Midjourney's own defaults for stylize, weirdness and variety sit near the minimum. Raising stylize trades fidelity for a prettier, more generic image. Set them when you want that; otherwise a strong result comes from the prompt and the reference.

10. How it works

Midjourney publishes no API. The endpoints under /api/ are the ones its own web app calls, and they sit behind a Cloudflare interstitial that answers a plain client with a 403 challenge page rather than JSON.

That challenge is not defeated by a header. The cf_clearance cookie is bound to the IP, the User-Agent and the TLS fingerprint together, so a cookie lifted out of a browser and replayed from Node is a different client and gets stopped.

So rather than impersonate a browser, this drives one. Requests are issued by fetch() running inside a real midjourney.com page, in a real Chrome that is really signed in. Same origin, same cookies, same fingerprint, same IP, credentials attached by the browser itself. There is nothing to spoof because nothing is being faked.

Chrome 136 stopped honouring --remote-debugging-port on the default profile, so this owns a profile instead: a dedicated user-data-dir you sign into once.

Both surfaces come from one ALL_TOOLS array through Slipway, which serves each tool as an MCP tool and as a shell command through the same handler and the same write guard, so a tool added tomorrow is a command tomorrow and the two cannot drift. A test asserts that.

Downloads are read with an in-page fetch, which needs no new tab and no visible activity. The CDN sends access-control-allow-origin: *, so the bytes come back exactly as served.

11. Your data

Nothing leaves your machine except the requests to Midjourney that you asked for. There is no telemetry, no analytics and no backend.

The session lives in a Chrome profile on your own disk. This process never reads a cookie, stores a token, or sees a password.

Downloads go where you point them, ~/Downloads/midjourney by default. The audit log, when enabled, is a local file.

12. Risks

This is unofficial, and Midjourney's terms do not permit automated access. Every unofficial client carries a risk to the account, this one included. It moves at human pace and acts through a real browser session rather than imitating one, which is the honest limit of what any tool here can do about that.

It spends money. A loop over twenty prompt ideas is twenty charges. Use MIDJOURNEY_READ_ONLY=1 when pointing an unattended agent at the account, and MIDJOURNEY_AUDIT_LOG when you want a record.

The endpoints are undocumented and can change without notice. Job records are parsed defensively and partial answers are preferred to failures, but a large enough upstream change will still break something.

13. Troubleshooting

Start with doctor. It orders the checks so the first failure is the one to fix.

SymptomCause
Cloudflare served a challengeThe interstitial has not been cleared in that profile. Open the window and let it finish once
The browser profile is not signed inSigned out, or the session expired. Run login
No Chrome or Chromium foundChrome is not where it is normally looked for. Set MIDJOURNEY_CHROME_PATH
DevTools never answeredAnother Chrome is using that profile directory. Quit it, or set MIDJOURNEY_CHROME_PROFILE elsewhere
Midjourney refused ... for billing reasonsOut of fast hours, or the subscription lapsed. Switch to speed: "relax"
Job accepted, then never appearsThe account is at its concurrent-job limit. Check get_queue
had not finished after 600sNormal on relax mode. The job is still running; raise MIDJOURNEY_JOB_TIMEOUT_MS
Every command times out at onceA native dialog was left open in the window. Dialogs are auto-dismissed now; if it persists, close the tab
Downloads are empty or failThe asset URL expired. Re-read the job with get_job for fresh URLs
"will not run without --confirm"Working as intended. See section 7
Claude Code asks before every generationExpected: anything that spends waits for your approval
claude -p will not generateHeadless Claude Code refuses tools that need a person. Give that agent MIDJOURNEY_CONFIRM=model
No approval form appearsThe client cannot show forms, so the model's confirm: true counts, and only for an image you asked for
A piped request gets no answerStdin closed before the answer. The MCP stdio binding stops a server when its input ends; keep stdin open until you read the answer, or use the CLI

14. Environment variables

Every one of these is optional. The defaults are what you want unless you are doing something unusual.

VariableDefaultWhat it does
MIDJOURNEY_CHROME_PROFILE~/.midjourney-mcp/chrome-profileThe browser profile holding the session
MIDJOURNEY_CHROME_PATHfound automaticallyThe Chrome binary
MIDJOURNEY_CHROME_LAUNCH1Start Chrome on demand. 0 only attaches to a running one
MIDJOURNEY_CDP_URLhttp://127.0.0.1:9222Where DevTools listens
MIDJOURNEY_HEADLESS0Run without a window. Sign in first, a window is needed for that
MIDJOURNEY_ORIGINhttps://www.midjourney.comThe site being driven
MIDJOURNEY_USER_IDdiscoveredSkip user-id discovery
MIDJOURNEY_DEFAULT_SPEEDfastfast, relax or turbo
MIDJOURNEY_DEFAULT_VERSION8.2Model version appended as --v
MIDJOURNEY_DOWNLOAD_DIR~/Downloads/midjourneyWhere downloads land
MIDJOURNEY_REQUEST_TIMEOUT_MS30000Per-request deadline
MIDJOURNEY_MIN_REQUEST_INTERVAL_MS700Floor between requests, jittered
MIDJOURNEY_MAX_RETRIES3Retries on 429 and 5xx
MIDJOURNEY_JOB_TIMEOUT_MS600000How long to wait for a job
MIDJOURNEY_JOB_POLL_INTERVAL_MS3000First poll interval, widening from there
MIDJOURNEY_REFRESH_VIEW1Reload the open window after a generation so it shows the new work
MIDJOURNEY_READ_ONLY0Hide everything that is not a read
MIDJOURNEY_ALLOW_DESTRUCTIVE10 blocks anything that spends or cannot be undone
MIDJOURNEY_AUDIT_LOGunsetAppend-only log of every attempted change, and who approved it
MIDJOURNEY_CONFIRMhumanmodel lets confirm: true alone approve over MCP, for an agent with no person to ask
MIDJOURNEY_SURFACEfullsearch lists three tools that find, describe and run the rest
MIDJOURNEY_TOOL_TIMEOUT_MSunsetGive up on any tool after this long
MIDJOURNEY_DEBUG01 prints debug lines on stderr
MIDJOURNEY_HTTP_PORT8787Port for --http
MIDJOURNEY_HTTP_HOST127.0.0.1Interface for --http
MIDJOURNEY_HTTP_TOKENunsetBearer token. Any address but localhost refuses to start without one
MIDJOURNEY_HTTP_ALLOWED_ORIGINSunsetComma-separated browser origins allowed to connect; a page from any other site is refused

15. FAQ

An MCP server is a standard way to give an AI assistant real access to a tool, so it can act rather than guess. You install it once, your assistant gains the tools, and it works in Claude, Cursor, ChatGPT and anything else speaking MCP.

midjourney-cli is the same program as the MCP server, run as commands. AI agents that run commands, like Claude Code, Codex and OpenCode, use it on their own, and you can type the same commands in a terminal, a script or a cron job. Every tool is a command with dashes, so get_job runs as midjourney-cli get-job.

Use the MCP server in an app with no terminal, like Claude Desktop's chat. Use the CLI anywhere commands run: an agent like Claude Code, Codex or OpenCode, a script or a cron job. The MCP server's tools take up context on every message, and the CLI costs nothing until it runs.

Midjourney is an image generation service. You write a prompt, it renders four images, and you refine from there. It runs on the web at midjourney.com and in Discord, on a paid subscription.

Midjourney has no public API and has never shipped one. Every "Midjourney API" on sale is an unofficial wrapper around the same web endpoints this server uses, usually running on somebody else's account. This one at least runs on yours, in your browser, on your machine.

Midjourney's terms do not permit automated access, so yes, and there is no way to build this that does not. Any tool of this kind carries a risk to the account. Decide whether that trade is worth it before installing, and know that no unofficial client can promise otherwise.

You need to be comfortable pasting one command into a terminal and signing in to a website. There is no key to generate, no dashboard to navigate, and no config file to edit by hand.

Nothing leaves your machine except the requests to Midjourney that you asked for. The server has no telemetry, no analytics and no backend. Your session lives in a Chrome profile on your own disk and this process never reads it.

Every generation waits for your approval, in Claude Code's own prompt or a client's approval form, or for the model's confirm: true where a client can do neither, and it records what it attempted when you set MIDJOURNEY_AUDIT_LOG. Set MIDJOURNEY_READ_ONLY=1 and the generating tools disappear from the list entirely, which is the setting to use when pointing an unattended agent at the account.

It puts generation into a pipeline. An agent can take a brief, build a validated prompt, wait for the render, download the files and hand them to the next step, without a person clicking through four screens. It also refuses malformed parameters before they cost you a generation, which the website does not.

It works with Cursor, VS Code, Codex CLI, Windsurf and anything else that runs a local MCP server over stdio. claude.ai on the web runs connectors from Anthropic's cloud, so it cannot reach a browser on your machine and this is not usable there.

You can set MIDJOURNEY_HEADLESS=1 once the profile is signed in, though signing in needs a window, so do that first. Expect Cloudflare to be less forgiving of a headless session than a visible one.

The browser connection uses the global WebSocket that became stable in Node 22. Relying on it means the part of this server that matters most has no dependencies at all.

Remove the entry from your client's config, then delete ~/.midjourney-mcp/chrome-profile to drop the session. Nothing else is left behind.

Questions

Run into a problem or have a question? Open an issue and I will help.

Built by

Navid Moazzez

Navid Moazzez is a leading AI business strategist, and the host of the AI Creator Summit, watched by 100,000+ creators. He helps creators and founders master AI and build their own AI Operating System (AI OS) to automate their business and life. He creates useful free tools, MCP servers and CLIs that creators and founders can use in their own workflows.

Dependencies

LibraryLicenseWhat it does
SlipwayApache-2.0The MCP server and the CLI from one definition of each tool, with the write guard
MCP TypeScript SDKApache-2.0The MCP protocol, stdio and HTTP transports, through Slipway
zodMITOne schema per tool, driving both surfaces

The browser connection uses Node's built-in WebSocket and needs nothing else.

License

MIT. Free to use, modify, and share.

Not affiliated with, endorsed by, or sponsored by Midjourney, Inc. Midjourney is a trademark of Midjourney, Inc.


© 2026 Navid Media. Made with ❤️ by Navid Moazzez.

Frequently asked questions

What is midjourney-mcp-cli MCP Server?

Midjourney MCP server and CLI for Claude Code and AI agents. 32 tools for generating images, following jobs to completion, downloading the real files, and building moodboards that make a style reusable.

How do I install midjourney-mcp-cli MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. midjourney-mcp-cli MCP Server runs locally from the npm package @thenavidm/midjourney-mcp-cli with the command npx -y @thenavidm/midjourney-mcp-cli@2.0.1.

Is midjourney-mcp-cli MCP Server free and open source?

Yes. midjourney-mcp-cli MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does midjourney-mcp-cli MCP Server support remote (HTTP) connections?

No remote endpoint is listed for midjourney-mcp-cli MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does midjourney-mcp-cli MCP Server provide?

midjourney-mcp-cli MCP Server provides 30 tools, including add_to_moodboard, animate_image, api_get, and create_moodboard. See the full tool list for descriptions and parameters.

How is midjourney-mcp-cli MCP Server's trust score calculated?

midjourney-mcp-cli MCP Server scores 52 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server