Skip to content

Remote MCP server

Fresh

​ Authentication

The remote MCP server uses OAuth 2.0. When you connect for the first time, your MCP client will initiate an OAuth flow and redirect you to Recraft to authorize access. Once authorized, the client stores the token and handles authentication automatically on subsequent requests.

​ Setup by client

​ Claude Code

Run the following command in your terminal:

claude mcp add --transport http recraft

Then run /mcp in a session to authenticate via OAuth.

​ Claude Desktop

Open your claude_desktop_config.json file and add the following configuration:

{
  "mcpServers": {
    "recraft": {
      "command": "npx",
      "args": [\
        "-y",\
        "mcp-remote",\
        "
      ]
    }
  }
}

On first use, mcp-remote will open a browser window to complete the OAuth flow.

​ Cursor

Open your ~/.cursor/mcp.json file and add the following configuration:

{
  "mcpServers": {
    "recraft": {
      "url": "
    }
  }
}

​ Visual Studio Code

Open your .vscode/mcp.json file (or your user settings) and add:

{
  "servers": {
    "recraft": {
      "type": "http",
      "url": "
    }
  }
}

​ Other MCP clients

Any MCP-compatible client that supports Streamable HTTP transport and OAuth can connect using:

  • URL:`
  • Transport: Streamable HTTP

If your client does not support remote OAuth flows directly and requires a stdio-based command, use mcp-remote:

npx -y mcp-remote

​ Supported operations

The remote server supports the full set of image operations available through the Recraft API, including:

  • Generate raster and vector images from text prompts
  • Create image variations and image-to-image transformations
  • Edit selected parts of an image
  • Remove selected objects or regions
  • Remove, replace, or generate backgrounds
  • Convert raster images into vector graphics
  • Upscale images for either sharper or more detailed results
  • Create custom styles from reference images
  • View account details such as your remaining credits

Getting started Local MCP Server

Ctrl+I

Assistant

Responses are generated using AI and may contain mistakes.

Recraft AI documentation. Not affiliated with Recraft.ai.