Guide
How to Generate Images in Cursor with an MCP Server
Published By DreamClip
To generate images in Cursor, install an image MCP server and ask the agent in plain words. DreamClip's server installs from a single Add to Cursor link on the connect page, or from a short entry in a mcp.json file pointing at https://dreamclip.ai/mcp. After one sign-in, Cursor's agent can call Nano Banana 2, Krea 2 or GPT Image 2.5 Sunburst, among the other image models in the DreamClip studio, and drop the results into your project.
Cursor is a code editor and, as of November 2026, its agent calls the MCP tools you add to it; what it can draw by itself is for Cursor's own documentation to say. The server gives it real image models, priced before each run, with a failed run never charged.
What you get inside Cursor
Ten tools appear under the dreamclip server. For pictures, four matter: list_models to see every image model with its sizes and shapes, estimate_cost to price a run, generate_image to start it, and get_generation to wait for it and collect the files. The same server makes video, speech and music, so a later request for a demo clip or a voice line uses the connection you already have.
Results come back as links to stored files, plus a small preview of each image. Whether the preview shows inline in the chat panel is up to Cursor's interface.
Install with one click
- Open the connect page and choose the Cursor panel.
- Choose Add to Cursor. The link opens Cursor with the server filled in; confirm the install there.
- When Cursor asks you to sign in, a DreamClip page opens in the browser. Sign in and choose Allow.
Cursor registers itself with DreamClip's sign-in server on the fly, so there is no client id or key to create. Allow grants two things: reading your DreamClip account and starting generations on it.
Or add it by hand in mcp.json
The manual route is a small JSON file. Inside an mcpServers object, add an entry called dreamclip whose url is https://dreamclip.ai/mcp. Nothing else is needed: no command, no arguments, no environment variables, because the server runs on DreamClip and Cursor reaches it over HTTPS. The exact snippet, ready to copy, is on the connect page.
| File | Where the server is available | Good for |
|---|---|---|
| .cursor/mcp.json in the project | Where the server is availableThat project only | Good forA repo where the team wants the same tools |
| ~/.cursor/mcp.json in your home folder | Where the server is availableEvery project you open | Good forYour own machine, all your work |
The config holds only the server address, no secret, so a project file is safe to commit. Each teammate still signs in with their own DreamClip account, and each person's images are billed to that person's account.
How to generate images in Cursor while you build
The agent reads the file you have open, which makes short requests work:
- Open the component that needs art, for example an onboarding screen with an empty image slot.
- Ask: "Make the illustration this onboarding step needs, square, 2K, on Nano Banana 2, in the style of our other illustrations."
- The agent writes a prompt from the component and the copy around it, and calls estimate_cost.
- Once you have seen the price, approve the generate_image call in Cursor's prompt.
- It polls get_generation until the image is delivered, then saves it into your assets and sets the path in the component.
Size and shape are worth naming every time. Left out, a run takes the model's smallest size, which is fine for a quick look and soft on a retina screen.
Choosing the image model
Every image model in the Image studio is reachable from Cursor. Five with different strengths, printed from our catalog:
| Model | Maker | Sizes | Edits a photo |
|---|---|---|---|
| Nano Banana 2 | MakerGoogle | Sizes0.5K, 1K, 2K, 4K | Edits a photoYes |
| Seedream 5.0 Pro | MakerByteDance | Sizes1K, 2K | Edits a photoYes |
| GPT Image 2.5 Sunburst | MakerOpenAI | Sizes1K, 2K, 4K | Edits a photoYes |
| Krea 2 | MakerKrea | Sizes1K | Edits a photoNo |
| Nano Banana Lite | MakerGoogle | Sizes1K | Edits a photoYes |
- Nano Banana Lite for fast drafts at 1K while you are still deciding on the layout.
- Nano Banana 2 for general art and edits, up to 4K.
- Seedream 5.0 Pro for photoreal product and lifestyle shots at 1K or 2K.
- GPT Image 2.5 Sunburst for vivid, high-contrast scenes.
- Krea 2 for quick 1K images with a painterly edge; it makes new images only and does not edit.
These summaries follow each model's own catalog line. The image generator page and the Nano Banana page show real outputs, and the best AI image generators compares the families at length.
Prompts written from your code
| You are working on | Ask the agent |
|---|---|
| A 404 page | "Make a playful illustration for this 404 page, a lost robot holding a map, 16:9" |
| A pricing section | "Three small square icons-style images for these three tiers, same flat style" |
| A blog template | "A wide header image for this post's title, abstract, in our brand colors" |
| A store listing mockup | "A phone on a desk showing this screen, soft daylight, 9:16" |
| Test fixtures | "Four different photos of a living room for the listing card tests, at 1K" |
Ask the agent to show the prompt it built before it runs, if you want to adjust the wording, and to keep the final prompt in a comment next to the asset for the next revision.
Edits, variations and batches
Most image models here edit or restyle one photo: the agent sends the photo and the change, such as "put this product on a marble counter" or "make this screenshot look hand drawn". It has to come from a public https address, or be inlined as one data URL no bigger than 3 MB for the whole call; the formats are PNG, JPEG and WebP. A file attached to the chat panel is not passed through on its own, so a link is the dependable route. Two models here, Krea 2 and Grok Imagine 2.0, only create new images.
For variations, ask for a count. Image models on DreamClip make up to four images per run, so four options for one slot is a single call. The image to image page shows what photo edits look like.
Keeping costs in check
- Prices are the Image studio's own, quoted by estimate_cost before each run.
- Queuing a run reserves its credits; delivery is what spends them. A failure gives the reservation back.
- Set a per run ceiling and the agent sends it as max_credits; anything priced over it is refused without a charge.
- Free accounts render one job after another, never two together, and are refilled each day only after a browser visit to dreamclip.ai.
Checking the install, and fixing it
The quickest test is a question that spends nothing: ask the agent "what is my DreamClip balance?". If it answers with a number, the server is installed and signed in. If not, the reply usually says why, in the server's own words:
| The agent says | What to do |
|---|---|
| "Connect DreamClip again: this connection is not signed in." | Sign in again from Cursor's MCP settings |
| "This connection was not allowed to read this account. Reconnect DreamClip and allow it." | Reconnect and approve both permissions |
| "DreamClip takes 120 agent calls a minute. Wait a moment." | A loop is calling too fast; pause it |
| "DreamClip could not fetch that image URL. Use a public https link." | The photo link is private, local or broken |
If the dreamclip server does not appear at all, check that the JSON is valid and sits in one of the two mcp.json locations, then restart Cursor. Cursor's own MCP documentation covers where its settings panel lists installed servers.
A design pass in practice
A realistic use is a design pass over a new app before launch. Ask the agent to find every image slot that still holds a placeholder, list them with the size each component renders, and propose a prompt per slot in one consistent style. You review the list, cut the ones you will photograph yourself, and set a ceiling per run. The agent then works down the list, one generate_image call per slot, each with the size and shape the component needs, and swaps the placeholder paths for the delivered files as they arrive.
Keeping one style line, the same few words about palette, medium and light, in every prompt is what makes the set look like it belongs together. Ask the agent to repeat it verbatim rather than paraphrase it slot by slot.
Files, the library and disconnecting
The Assets page of your account keeps each image, and the agent's links lead to those files and keep working. For production, keep a copy in the repo or your own bucket. If you use Claude as well, the same account and library serve the guide to images in Claude, and you can always refine an image by hand in the Nano Banana 2 studio.
Revoking happens on the DreamClip side: "Connected agents" in your account, then "Disconnect". Only deleting the entry from mcp.json leaves a token that can refresh for up to 30 days.
Questions
How do I add an image MCP server to Cursor?
Use the Add to Cursor link on DreamClip's connect page, or add an mcpServers entry named dreamclip with the url https://dreamclip.ai/mcp to your mcp.json, then sign in when Cursor asks.
Where does mcp.json go?
In .cursor/mcp.json inside a project for that project only, or in ~/.cursor/mcp.json for every project on your machine.
Is it safe to commit the config?
Yes. It holds only the server address. Each person signs in with their own DreamClip account, and the token stays in their Cursor.
Which image models can Cursor use?
Every image model in the DreamClip Image studio, from Krea 2 to Seedream 5.0 Pro. Ask the agent to list them all with their sizes.
Can I attach an image in Cursor's chat and edit it?
Send it as a public https link or a small data URL instead. Files attached to the chat are not imported by the server.
Can the same server make video in Cursor?
Yes. The connection also carries generate_video, generate_speech and generate_music, so a demo clip or a voice line uses the same install and the same account.
Is a failed image charged?
No. The held credits go back to your balance.
Related
- GuideHow to Generate Images in Claude Code from the TerminalAdd DreamClip's MCP server to Claude Code with one command, then ask for hero images, share cards and placeholders from GPT Image 2.5 or Nano Banana 2.
- GuideCan Claude Generate Images? What It Does and How to Add ItClaude reads images and writes code that draws, but it does not paint pictures itself. Here is what it can do alone and how a connector adds image models.
- RoundupBest AI Image Generators in 2026, Ranked by JobThe best AI image generator for photorealism, text and posters, product photos, stylised art, photo edits and 4K, across twelve models, with ten prompts.