Prerequisites
- Recraft API key
- Access it in the API section of your account Profile.
- Note: You will need to buy API units (credits) before you can generate an API key.
- MCP client installed
- For example, Claude Desktop.
Option 1: Claude Desktop Extensions
You can set up the Recraft MCP server in Claude using Claude Desktop Extensions.- Download mcp-recraft-server.dxt from the latest release.
- Double-click the file to open it with Claude Desktop Extensions.
- In Claude Desktop, click Install.
- Fill out the setup form:
- Paste your Recraft API key obtained from your Profile API page.
- (Optional) Specify a local path for generated image storage, or indicate that all results should be stored remotely.
- Enable the server.
Option 2: Smithery
- Find this MCP server on Smithery.
- Install from Smithery.
- Note: all generation results will be stored remotely.
- If you want to store results locally, use Claude Desktop Extensions or manual setup instead.
Option 3: Manual setup
Requirements
- Ensure Node.js is installed on your machine.
- If not, install from nodejs.org.
- You will need to run
npx
ornode
commands in your terminal.
From NPM
- Open your Claude Desktop configuration file:
claude_desktop_config.json
. - Modify the file to add the following configuration snippet (replace with your API key and desired settings):
Manual setup
To set up the Recraft MCP server manually, you will need Node.js installed so you can runnpx
or node
commands in your terminal.
If you don’t already have Node.js, download it from nodejs.org.
From NPM
- Open your
claude_desktop_config.json
file. - Add the following configuration block, replacing the placeholders with your details:
From source
-
Clone the repository:
-
Navigate into the cloned directory and build the project:
-
Modify your
claude_desktop_config.json
file with the following configuration:
Environment variables
You can configure the following parameters in theenv
section:
-
RECRAFT_API_KEY
(required) Your Recraft API key. -
IMAGE_STORAGE_DIRECTORY
(optional) Local directory to store generated images. Defaults to:This value is ignored ifRECRAFT_REMOTE_RESULTS_STORAGE="1"
. -
RECRAFT_REMOTE_RESULTS_STORAGE
(optional) Set to"1"
to store all generated images remotely. In this case, only URLs are returned andIMAGE_STORAGE_DIRECTORY
is ignored.