Claude Code + Midjourney MCP: Generate Images with One Command in Terminal, No Need to Open Discord

📘 Complete Guide: Use All 11 AceData Cloud MCPs in Claude Code →

You are a heavy terminal user: tmux splits, Neovim coding, Claude Code assistance — everything done in the command line. Suddenly your project needs several concept images. Previously, you had to open Discord, go to the Midjourney channel, use /imagine, wait for images, download, then upload back to the project. Now with Midjourney MCP Server connected, one command in the terminal is enough.

Obtain API Token

Before using Midjourney MCP Server, you need an AceData Cloud API Token:

  1. Open AceData Cloud Platform, supports login via GitHub, Google, WeChat, email, phone number; registration grants free quota
  2. After login, you can see the API Token on the homepage; click to copy
  3. When quota runs out, go to Console → Top-up to recharge, supporting Alipay, WeChat, Stripe

AceData Cloud Platform Homepage Token

One Token grants access to all 11 MCP Servers, no need to apply separately for each service.

💡 Using claude.ai web or Claude Desktop? They support OAuth one-click authorization, no need to manually fill in the Token. See Claude + Midjourney MCP Illustrated Tutorial.

Configure Claude Code

Run one command in the terminal, replacing 你的Token with the API Token copied above:

claude mcp add midjourney --transport http https://midjourney.mcp.acedata.cloud/mcp \
  -H "Authorization: Bearer 你的Token"

⚠️ -H must be uppercase. Lowercase -h is --help, not a header parameter.

Without -s, the default scope is local, effective only in the directory where the command is run. It is recommended to explicitly specify the scope:

Scope Command Parameter Config File Scope of Effect
local (default) no -s or -s local ~/.claude.json Only the project directory where the command runs
user -s user ~/.claude.json Global effect, available in all projects
project -s project .mcp.json in project root Current project, can be committed to git for team sharing

💡 To share the same configuration with your team, add -s project: the config is written to .mcp.json in the project root, which can be committed to git and used by teammates after cloning. Do not commit real Tokens to public repositories; use ${ENV_VAR} placeholders + environment variables instead.

Confirm it works: run claude mcp list, you should see midjourney showing ✓ Connected.

Terminal Workflow

After configuration, return to the Claude Code session and use natural language to call Midjourney directly, image URLs are returned immediately:

Text-to-Image

Generate a cyberpunk style city street scene with neon lights reflecting on the rain-soaked street using Midjourney

Iterative Refinement

Upscale and refine the third image from the previous set

Style Reference

Use this image as a style reference to create a dark cyberpunk themed tech company homepage banner

Reverse Prompt Analysis

Analyze what Midjourney prompt might have been used for this image

Tool List

Tool Description
imagine Text-to-image generation
blend Blend multiple images
describe AI describes image content
edits Image editing (local repaint, variants)
video Generate video from images
translate Translate to English description