Recraft for VS Code
io.github.bartwaardenburg/recraft-mcp
AI image generation, transformation, and style management via the Recraft API
client:VS Code
transport:stdio
runtime:npm
Install Recraft in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "recraft-api-token",
"description": "RECRAFT_API_TOKEN",
"password": true
},
{
"type": "promptString",
"id": "recraft-toolsets",
"description": "RECRAFT_TOOLSETS",
"password": true
},
{
"type": "promptString",
"id": "recraft-cache-ttl",
"description": "RECRAFT_CACHE_TTL",
"password": true
},
{
"type": "promptString",
"id": "recraft-max-retries",
"description": "RECRAFT_MAX_RETRIES",
"password": true
}
],
"servers": {
"recraft-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"recraft-mcp"
],
"env": {
"RECRAFT_API_TOKEN": "${input:recraft-api-token}",
"RECRAFT_TOOLSETS": "${input:recraft-toolsets}",
"RECRAFT_CACHE_TTL": "${input:recraft-cache-ttl}",
"RECRAFT_MAX_RETRIES": "${input:recraft-max-retries}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs