How to add image generation to Claude Code with MCP
Install the Beatra Skill in Claude Code. It connects Claude Code to the Beatra MCP server and runs the sign-in, a one-time approval in your browser, so the image tools are ready right away. Ask for text-to-image, image-to-image, or targeted edits, up to 4 PNG images per request.
Updated
Set it up in your agent
Install the Beatra Skill once. The steps are the same for every task on this site.
Install Beatra and tell me when I need to sign in: https://beatra.ai/install.md
Claude Code
- Send Claude Code the install message above.
- Or run
claude plugin marketplace add beatra-ai/ai-media-generator-skill, thenclaude plugin install beatra@ai-media-generator-skill. - When Claude Code shows a sign-in link, open it, sign in, and click Allow.
Codex
- Send Codex the install message above.
- Or run
codex plugin marketplace add beatra-ai/ai-media-generator-skill, thencodex plugin add beatra@ai-media-generator-skill. - When Codex shows a sign-in link, open it, sign in, and click Allow.
Cursor
- Send the install message above in Cursor's agent chat.
- When the agent shows a sign-in link, open it, sign in, and click Allow.
Other agents
- Send the install message above to any agent that can install a Skill and run scripts.
- When the agent shows a sign-in link, open it, sign in, and click Allow.
Then ask in plain words, for example:
Generate four 1:1 icon options for a note-taking app, flat style, blue and white.
Edit hero.png: replace the sky with a clear sunset and keep everything else.
How the connection works
The Beatra MCP server is https://mcp.beatra.cn/mcp over streamable HTTP, and it signs in with a device code. The Skill runs that sign-in and keeps the credential in ~/.beatra, so you never handle tokens. To connect your own MCP client, follow the MCP setup in the docs.
What you get
- Text-to-image, image-to-image, and targeted edits.
- Up to 4 images per request, up to 16.8 megapixels on the largest models.
- Input images: up to 4 per request, as BMP, GIF, JPEG, PNG, TIFF, or WEBP.
- Output: PNG.
Limits depend on the model. Figures as of ; the live model list is always current.
Price
Installing is free. Each render uses Beatra credits, and new accounts start with free credits. Plans are on the pricing page, and the price of each model is in the live model list.
Skills for this task
The Beatra Skill covers everything on this page. These Skills add a ready-made workflow for one task:
Questions
Does this work in Codex and Cursor too?
Yes. The same Skill installs in Codex and Cursor with the steps above, and the image tools work the same way.
Can I see every MCP tool and its arguments?
Yes. The MCP tool reference in the docs lists every tool, its arguments, what it returns, and whether it uses credits.
Where do the images go?
They come back into your Claude Code conversation and are saved on the Work page of the Beatra console.
More use cases
- Text-to-video, image-to-video, and editing, 480p to 4K. →
- Text-to-speech in 40 languages, preset or cloned voices. →
- Songs with your lyrics, instrumentals, and background music. →
- White-background shots, lifestyle scenes, and listing sets. →
- One install and one balance, compared with each model's API. →