Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
RECRAFT_API_KEY | Yes | Your Recraft AI API key from https://www.recraft.ai/profile/api | |
IMAGE_STORAGE_DIRECTORY | No | Optional, absolute path to directory where generated images will be stored. Default is $HOME_DIR/.mcp-recraft-server |
Schema
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
generate_image | Generate an image using Recraft AI from a text prompt. You can specify the image size, style, model, and number of images to generate. You don't need to change default parameters if you don't have any specific requirements. You can use styles to refine the image generation, and also to generate raster or vector images. Local paths or URLs to generated images and their previews will be returned in the response. |
create_style | Create a style in Recraft AI from the set of style reference images. A style is extracted from the provided images and can be used in image generation tools. ID of the created style will be returned in the response. |
vectorize_image | Vectorize an input image using Recraft AI. This operation takes an input image and returns a vector SVG image, close to it. Local path or URL to resulting image and its preview will be returned in the response. |
image_to_image | Generate an image using Recraft AI from an input image and a text prompt. You can specify the reference input image, style, model, and number of images to generate. You should provide the same style/substyle/styleID settings as were used for input image generation (if exists) if there are no specific requirements to change the style. Other parameters are recommended to keep default if you don't have any specific requirements on them. You can use styles to refine the image generation, and also to generate raster or vector images. Local paths or URLs to generated images and their previews will be returned in the response. |
remove_background | Remove background in the input image using Recraft AI. This operation takes an input image and returns the same image with detected background removed. Raster image will be always returned. Local path or URL to resulting image and its preview will be returned in the response. |
replace_background | Generate an image using Recraft AI from an input image with its detected background replaced based on the prompt. You can specify the input image, style, model, and number of images to generate. You should provide the same style/substyle/styleID settings as were used for input image generation (if exists) if there are no specific requirements to change the style. Other parameters are recommended to keep default if you don't have any specific requirements on them. You can use styles to refine the image background generation, and also to generate raster or vector images. Local paths or URLs to generated images and their previews will be returned in the response. |
crisp_upscale | Crisp upscale of the input image using Recraft AI. This operation takes an input image and returns an upscaled image, making the image sharper and cleaner. This version of upscale is much cheaper and faster than creative upscale. Local path or URL to resulting image and its preview will be returned in the response. |
creative_upscale | Creative upscale of the input image using Recraft AI. This operation takes an input image and returns an upscaled image, boosting resolution with a focus on refining small details and faces. This version of upscale is expensive and slower than crisp upscale. Local path or URL to resulting image and its preview will be returned in the response. |
get_user | Get information about the current Recraft AI API user (their email, name, and credit balance). |