Midjourney MCP Integration Guide

MCP (Model Context Protocol) is a model context protocol introduced by Anthropic that allows AI models (such as Claude and GPT) to call external tools through standardized interfaces. Through the Midjourney MCP Server provided by AceData Cloud, you can generate and edit AI images directly in AI clients such as Claude Desktop, VS Code, and Cursor.

Feature Overview

Midjourney MCP Server provides the following core features:

  • Image Generation (Imagine) — Generate high-quality images from text prompts
  • Image Editing — Modify specific areas of generated images
  • Image Transformation — Upscale, zoom, and pan existing images
  • Image Blending (Blend) — Combine multiple images into a new image
  • Reference Image Generation — Use reference images to guide generation
  • Image Description (Describe) — Generate text descriptions from images
  • Prompt Translation — Translate Chinese prompts into English
  • Seed Retrieval — Obtain an image's seed value for reproduction
  • Video Generation — Generate animated videos from images
  • Task Queries — Monitor generation progress and retrieve results

Prerequisites

Log in to the application list, open General Application, and click the copy button to the right of API KEY.

Get an Ace Data Cloud API Key

Replace the Token placeholder in the configuration below with the copied Key. When running locally, you can provide the raw Key through ACEDATACLOUD_API_TOKEN.

Method 1: Use the Hosted MCP Server (Recommended, No Installation)

AceData Cloud already hosts the Midjourney MCP Server in the cloud. No local dependencies need to be installed; simply enter the following URL in your AI client to use it:

https://midjourney.mcp.acedata.cloud/mcp

Authentication: Add Authorization: Bearer Your API Token to the request header (Claude.ai completes this automatically through OAuth, so there is no need to enter the Token manually).

Claude.ai (Web Version, OAuth Login, Easiest)

  1. Open Claude.ai → Customize in the lower-left corner → Connectors → Add More
  2. Enter the URL: https://midjourney.mcp.acedata.cloud/mcp
  3. Complete the OAuth authorization login (automatically redirects to the AceData Cloud login page)
  4. Return to the conversation interface, and the tools will be available

Claude Desktop

Edit the configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "midjourney": {
      "type": "http",
      "url": "https://midjourney.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer 你的API Token"
      }
    }
  }
}

Save the file and restart Claude Desktop for the changes to take effect.

Claude Code (Terminal Command Line)

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

VS Code (GitHub Copilot)

Create .vscode/mcp.json in the project root directory:

{
  "servers": {
    "midjourney": {
      "type": "http",
      "url": "https://midjourney.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer 你的API Token"
      }
    }
  }
}

Cursor

Create .cursor/mcp.json in the project root directory:

{
  "mcpServers": {
    "midjourney": {
      "url": "https://midjourney.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer 你的API Token"
      }
    }
  }
}

Other MCP-Supported Clients

Any client that supports the MCP Streamable HTTP protocol (Windsurf, Cline, ChatGPT Connectors, Gemini CLI, JetBrains AI Assistant, etc.) can connect by entering the following two items:

  • URL: https://midjourney.mcp.acedata.cloud/mcp
  • Header: Authorization: Bearer Your API Token

Method 2: Run Locally (pip / uvx Installation)

If you need to run offline, customize the code, or deploy on an internal network, you can install the MCP Server locally and start it through stdio.

Installation

Install with pip (recommended):

pip install mcp-midjourney

Or install from source:

git clone https://github.com/AceDataCloud/MidjourneyMCP.git
cd MidjourneyMCP
pip install -e .

Once installation is complete, you can start the service using the mcp-midjourney command.

Use in Claude Desktop (Local)

Edit the Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the following configuration:

{
  "mcpServers": {
    "midjourney": {
      "command": "mcp-midjourney",
      "env": {
        "ACEDATACLOUD_API_TOKEN": "你的API Token"
      }
    }
  }
}

If using uvx (no need to install the package in advance):

{
  "mcpServers": {
    "midjourney": {
      "command": "uvx",
      "args": ["mcp-midjourney"],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "你的API Token"
      }
    }
  }
}

Save the configuration and restart Claude Desktop for the changes to take effect.

Use in VS Code / Cursor (Local)

Create .vscode/mcp.json in the project root directory:

{
  "servers": {
    "midjourney": {
      "command": "mcp-midjourney",
      "env": {
        "ACEDATACLOUD_API_TOKEN": "你的API Token"
      }
    }
  }
}

Or use uvx:

{
  "servers": {
    "midjourney": {
      "command": "uvx",
      "args": ["mcp-midjourney"],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "你的API Token"
      }
    }
  }
}

Available Tools

Tool Name Description
midjourney_imagine Generate images from text prompts
midjourney_edit Edit specific areas of an existing image
midjourney_transform Upscale, zoom, and pan existing images
midjourney_blend Blend multiple images into one
midjourney_with_reference Generate images using a reference image
midjourney_describe Generate text descriptions from images
midjourney_translate Translate prompts into English
midjourney_get_seed Obtain an image's seed value
midjourney_generate_video Generate videos from images
midjourney_extend_video Extend an existing video
midjourney_get_task Query the status of a single task
midjourney_get_tasks_batch Query the status of multiple tasks in a batch

Usage Examples

Once configured, you can call these features directly in your AI client using natural language, for example:

  • "Help me generate a cyberpunk-style city nightscape"
  • "Change the background of this image to a seaside scene"
  • "Blend these four images into one"
  • "Describe the contents of this image"
  • "Turn this image into a video"
  • "Upscale the second variation of this image"

More Information