Billing
The local MCP server consumes API units — the pay-as-you-go balance used by the Recraft API. Each operation deducts API units according to the rates in API pricing. API units are separate from the subscription credits used by the Recraft Studio app and the Remote MCP server; you must purchase API units before you can generate an API key. If you’d rather pay from your subscription credits balance, use the Remote MCP server instead.Prerequisites
- Recraft API key
- Access it in the API section of your account Profile.
- Note: You will need to buy API units 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
npxornodecommands 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):
From source
-
Clone the repository:
-
Navigate into the cloned directory and build the project:
-
Modify your
claude_desktop_config.jsonfile 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_DIRECTORYis ignored.