rightcodes-image-mcp-server
v1.2.2
Published
MCP server for Right Codes image generation API (gpt-image-2)
Maintainers
Readme
rightcodes-image-mcp-server
MCP server for Right Codes image generation API, with default model gpt-image-2.
Install
npx rightcodes-image-mcp-serverConfiguration
Add to your Claude Code MCP settings (~/.claude/.mcp.json):
{
"mcpServers": {
"rightcodes-image": {
"command": "npx",
"args": ["-y", "rightcodes-image-mcp-server"],
"env": {
"RIGHTCODES_API_KEY": "sk-your-key-here"
}
}
}
}Tool: generate_image
| Parameter | Required | Description |
|------------|----------|-------------|
| prompt | Yes | Text prompt (1-4000 chars) |
| save_path| Yes | Directory to save the generated image |
| model | No | Model name, default gpt-image-2 |
| size | No | Image size, e.g. 1024x1024 |
| image | No | Reference image (URL or base64 data URI) |
| filename | No | Custom filename (without extension) |
Example
"Generate a picture of a cat wearing a hat"
Claude will call:
{
"prompt": "A cat wearing a top hat",
"save_path": "./assets"
}The image is automatically downloaded and saved locally.
Development
npm install
npm run build
npm run devLicense
MIT
