io.github.qmediat/ideogram-mcp

السجل الرسمي التجارة الإلكترونية

Ideogram platform MCP (api v2): 18 image models, price quotes, async generations, raw call

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package @qmediat.io/ideogram-mcp
Claude Code
claude mcp add ideogram-mcp -e 'IDEOGRAM_API_KEY=<your ideogram_api_key>' -e 'IDEOGRAM_OUTPUT_DIR=<IDEOGRAM_OUTPUT_DIR>' -- npx -y @qmediat.io/ideogram-mcp@2.0.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "ideogram-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@qmediat.io/ideogram-mcp@2.0.0"
            ],
            "env": {
                "IDEOGRAM_API_KEY": "<your ideogram_api_key>",
                "IDEOGRAM_OUTPUT_DIR": "<IDEOGRAM_OUTPUT_DIR>"
            }
        }
    }
}

متغيرات البيئة

  • IDEOGRAM_API_KEY إلزامي سري Your Ideogram API key (create one at https://ideogram.ai/platform)
  • IDEOGRAM_OUTPUT_DIR Directory for saved images (default: /tmp/ideogram-output)

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. @qmediat.io/ideogram-mcp
  2. Why this server?
  3. Quick Start
  4. Configuration
  5. Available Tools
  6. Security
  7. Development
  8. Contributing
  9. Trademarks and affiliation
  10. License

@qmediat.io/ideogram-mcp

MCP server for the Ideogram platform through its v2 API: every image and video model Ideogram sells through one API key — Ideogram 4.5, 4.0, 3.0, 2a and 2.0, GPT Image, Nano Banana, P-Image, Z-Image, the Topaz upscalers; Seedance 2.5 and 2, Kling 3, MiniMax H3 for video — for generate, precise edit, inpaint, remix, reframe, replace background, remove background, remove object, upscale, describe, layerize and video (from a prompt, an image or references), the commercial tools (ad localizer, resizer and variations, colorways, ghost mannequin, material swap, model pose variants, sketch to render), the utilities (magic prompt, layerize logos, provenance, snap mask), plus the account's usage, invoices and keys and custom-model training, from Claude Code, Claude Desktop or any MCP client over stdio. Every call can be priced first (the API's own dry run), long jobs are returned by id and collected later, and any other operation the release serves is one validated raw call away. Built from Ideogram's OpenAPI specification (ADR-0001).

Why this server?

  • The platform, not one model — model on every tool, with each model's own fields (a field the model does not take is refused, naming the models that do). The model lists and fields come from Ideogram's specification, so a new model is a reviewed snapshot update, not a rewrite
  • Price before you pay — ideogram_quote asks the API what exactly this call would cost (USD and credits; nothing generated or billed)
  • Private by default — every curated tool whose model takes private sends it as true unless you set it (on remove background, replace background and the auto models the API's own default is your plan's setting); a model without the field (reframe with Ideogram 3.0, remove object) follows the API's own behaviour, and ideogram_api sends what you give it
  • Never billed twice — a job is returned the moment Ideogram accepts it; the tool waits up to wait_s and otherwise hands back the generation_id for ideogram_generation. A request is resent only when it never left the machine or got a 429
  • Everything else, validated — ideogram_operations lists what the API offers; ideogram_api calls any served operation by id, checked against its own schema first
  • Guarded I/O — per-operation upload limits checked before any file is read, streamed downloads with a 50 MB cap (512 MB for a video) from allow-listed HTTPS hosts, typed 402/429 errors that say what to do (details)
  • 2 runtime dependencies — @modelcontextprotocol/sdk + zod; native fetch

Quick Start

Requires Node.js 22 or newer and an IDEOGRAM_API_KEY — create one in Ideogram's API dashboard at ideogram.ai/platform → API Keys → Create key (setup guide).

claude mcp add --scope user ideogram -e IDEOGRAM_API_KEY=your-api-key -e IDEOGRAM_OUTPUT_DIR=/tmp/ideogram-output -- npx -y @qmediat.io/ideogram-mcp

or by hand (below). npm install -g @qmediat.io/ideogram-mcp installs the ideogram-mcp command, which can replace the npx line in any config.

Configuration

Claude Code

Add to ~/.claude.json → mcpServers:

{
  "ideogram": {
    "command": "npx",
    "args": ["-y", "@qmediat.io/ideogram-mcp"],
    "env": {
      "IDEOGRAM_API_KEY": "your-api-key",
      "IDEOGRAM_OUTPUT_DIR": "/tmp/ideogram-output"
    }
  }
}
Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "ideogram": {
      "command": "npx",
      "args": ["-y", "@qmediat.io/ideogram-mcp"],
      "env": {
        "IDEOGRAM_API_KEY": "your-api-key",
        "IDEOGRAM_OUTPUT_DIR": "/tmp/ideogram-output"
      }
    }
  }
}
Environment Variables
VariableRequiredDefaultDescription
IDEOGRAM_API_KEYYes—Your Ideogram API key (ideogram.ai/platform → API Keys)
IDEOGRAM_OUTPUT_DIRNo/tmp/ideogram-outputAny folder where you want images saved. Use absolute paths (e.g. /home/user/images/ideogram)

Available Tools

ToolWhat it doesModels
ideogram_generateImages from a text promptideogram-3 (default), ideogram-4-5, ideogram-4, ideogram-3-character, ideogram-3-custom-model, ideogram-4-custom-model, ideogram-3-transparent, ideogram-4-transparent, ideogram-2a, ideogram-2, gpt-image-2, gpt-image-2-5-flare, gpt-image-2-5-sunburst, nano-banana-2, nano-banana-pro, p-image-ideogram, z-image, auto
ideogram_precise_editEdit an image at its exact size: a prompt, an optional mask (black = edit), up to 4 reference images, context_window to confine the editideogram-4-5
ideogram_inpaintRepaint the masked part of an image (black = repaint)ideogram-3 (default), ideogram-3-character, ideogram-3-custom-model
ideogram_editThe 1.x name of ideogram_inpaint (kept through 2.x)as inpaint
ideogram_remixNew images from a source image and a promptideogram-3 (default), ideogram-3-character, ideogram-3-custom-model, ideogram-4, auto
ideogram_reframeExtend an image to a new size (outpainting)ideogram-3 (default), nano-banana-2
ideogram_replace_backgroundA new background, the subject keptideogram-3 (default), gpt-image-2
ideogram_remove_backgroundThe foreground as a transparent PNGideogram-1
ideogram_remove_objectRemove what the mask marks (white = remove) and fill the gapideogram-1
ideogram_upscaleEnlarge an imageauto (default), topaz-bloom-2, topaz-redefine, topaz-standard-2, topaz-text-refine, topaz-wonder-3-5, nano-banana-pro
ideogram_describeDescribe an image: words (ideogram-3, default) or a structured JSON prompt (ideogram-4)ideogram-3, ideogram-4
ideogram_video_textA video from a prompt: duration, aspect ratio, resolution, audio per model; saved as mp4 (give duration: omitted, Seedance is quoted at its maximum length)seedance-2-5-text-to-video (default), seedance-2-text-to-video, kling-3-standard-text-to-video, minimax-h3-text-to-video
ideogram_video_imageA video from a start image (and an end image): files, URLs or assetsseedance-2-5-image-to-video (default), seedance-2-image-to-video, kling-3-standard-image-to-video, minimax-h3-image-to-video
ideogram_video_referenceA video guided by reference images, MP3/WAV clips (2-30 s on Seedance 2.5, 2-15 s elsewhere) and videos stored with Ideogram, in prompt order; at least one reference image or videoseedance-2-5-reference-to-video (default), seedance-2-reference-to-video, minimax-h3-reference-to-video
ideogram_layerizeA flat image as an editable design: the text-free base image (saved) and the detected text blocks (JSON: text, position, font, size, colour); optional font_candidate_files (.ttf, .otf, .woff, .woff2) to match againstideogram-3
ideogram_ad_localizerTranslate an ad's copy into one language, keeping layout, logos and product; exact_copy pins wordingsone operation (post_ad_localizer)
ideogram_ad_resizerReframe an ad to a platform's exact ad size inside its safe zoneone operation (post_ad_resizer)
ideogram_ad_variationsVary an ad along one axis: people, setting, group_size or sceneone operation (post_ad_variations)
ideogram_colorwaysRecolor a product photo: up to 4 masks paired with hex coloursone operation (post_colorways)
ideogram_ghost_mannequinA garment on an invisible mannequin from its photos, in the view askedone operation (post_ghost_mannequin)
ideogram_material_swapApply reference materials to the masked regions of a product photoone operation (post_material_swap)
ideogram_model_pose_variantsRe-pose the model of a fashion image by instructionone operation (post_model_pose_variants)
ideogram_sketch_to_renderRender a fashion sketch as a product photoone operation (post_sketch_to_render)
ideogram_magic_promptRewrite a prompt into an Ideogram 4.0 structured JSON prompt (nothing generated)one operation (post_magic_prompt_v4)
ideogram_layerize_logosDetect and remove reference logos from a flat design: the base image saved, the layers listedone operation (post_layerize_logos)
ideogram_provenanceCheck whether an image was created by Ideogram (free)one operation (post_provenance_verify)
ideogram_snap_maskSnap a hand-drawn mask to the object it marks; the PNG savedone operation (post_snap_mask)
ideogram_quoteThe price of a call: {"tool": "ideogram_generate", "arguments": {…}}every operation that offers a dry run (not describe, ad variations, pose variants, sketch to render, nor the v1 utilities)
ideogram_generationCollect a generation by generation_id — its images or its video—
ideogram_usageBilled usage as Ideogram reports it: buckets of line items summed per product and currency, the buckets handed on (the shape ai-cost reads); default the last 7 days by day—
ideogram_invoicesThe organization's invoices with their line items (organization-admin key)—
ideogram_api_keysThe organization's API keys, redacted (organization-admin key)—
ideogram_datasetsYour training datasets: the list (searched by name) or one with its files and models—
ideogram_dataset_uploadImages, .txt captions and .zip archives into a dataset (an existing one, or a new one from a name); local paths or public https URLs—
ideogram_trainTrain a custom model from a dataset of 15–100 images; hyperparameters route to the advanced operationideogram-4 (default), ideogram-3
ideogram_modelsYour custom models and the shared ones, or one with its training runs; a completed model's custom_model_uri generates through ideogram_generate—
ideogram_operationsWhat the API offers: families, operations, fields, limits—
ideogram_apiAny served operation by id, including the ones the documentation index does not list (the reframe models auto, bria-expand, gpt-image-2-5-flare, nano-banana-pro)—

Each model's fields are listed in the tool's schema (one variant per model) and in docs/API-REFERENCE.md, generated from the specification. Image inputs are local file paths or public https URLs (or Ideogram asset identifiers where a model takes them); each operation's own upload limits apply, checked each file against its field's limit before any is read, the whole encoded request against the request cap before it is sent.

A client without files: URL inputs and inline images

Any file field (image, images, mask, the reference and style images, the font files) takes a public https:// URL beside a local path: the file is fetched under the field's own limit and types, from a public host only (no IP address, no local name, no private address, no redirect), inside the call's budget, one input after another. inline_images: true on any tool that saves images returns each saved image under 3.75 MB, up to 10 MB per result, as image content beside the text (the others stay by path), so a client that cannot read this machine's files still sees the result. Both are off unless asked.

Usage, invoices, webhooks

ideogram_usage asks GET /v2/account/usage for a range (RFC 3339 times; 1d buckets over at most 92 days, 1h over at most 168 hours — the tool refuses a longer one before asking; the api and app sources) and answers with the sums per product, unit and currency — decimal strings, never floats; an amount it cannot read is counted, not summed — and writes the buckets exactly as Ideogram sent them to a JSON file in the output directory (named by the query, readable by the owner only — the line items carry member emails and key prefixes; printed too when under 64 KB): the shape a cost tool reads. The invoices and the API keys are written and shown the same way, and so is an answer off its specification (reported as such, never as a success). All three account tools need an API key owned by an organization admin (Ideogram answers 404 to any other key, and the tool says so with Ideogram's words).

Ideogram signs its webhooks with Ed25519: the canonical message is request_id\nuser_id\ntimestamp\nsha256_hex(body), the signature travels in X-Ideogram-Webhook-Signature (the key id in X-Ideogram-Webhook-Key-Id), the public keys are the JWKS at GET https://api.ideogram.ai/v1/.well-known/jwks.json (public; cache up to 24 h). Where request_id, user_id and timestamp travel is not stated by the specification (it names the two signature headers only): take them from the delivery as Ideogram's webhook documentation says. The receiver — not this server, which has no public URL — verifies with the helper this package ships; a delivery whose timestamp is more than maxAgeS (300 s by default; Infinity turns it off) from now is refused as a replay — the signature alone never expires:

import { verifyWebhook } from "@qmediat.io/ideogram-mcp/dist/webhooks.js";
const kid = verifyWebhook(
  { body, requestId, userId, timestamp, signature: headers["x-ideogram-webhook-signature"], keyId: headers["x-ideogram-webhook-key-id"] },
  jwks,
  { maxAgeS: 300 },
);
if (kid === null) reject(); // the key id that verified, else null
Training a custom model

Drop a folder of references: ideogram_dataset_upload {"name": "brand refs", "files": ["…/1.png", "…/1.txt", "…/more.zip"]} creates the dataset and uploads the assets (a caption sidecar x.txt goes with x.png; an archive may hold both), ideogram_train {"dataset_id": "…", "model_name": "Brand Refs"} starts an Ideogram 4.0 training ("model": "ideogram-3" for 3.0; training_steps, lora_rank, ema, learning_rate — and for 4.0 batch_size, base_variant, wandb_project — route to the advanced operation), ideogram_models {"model_id": "…"} follows it, and a COMPLETED model's custom_model_uri generates through ideogram_generate with model: "ideogram-4-custom-model". Training is billed by Ideogram per its plan; the tools say what was started, never start it twice.

Waiting, and collecting later

A generation is sent asynchronously and returned the moment Ideogram accepts it. The tool then waits up to wait_s seconds (default 45, at most 50: MCP clients time a call out at 60 s), polling at 2 s, ×1.5, up to 30 s apart. A job still running at the end of the wait comes back as its generation_id: ideogram_generation {"generation_id": "…"} collects it later, in this session or another. Sending the request again would start — and bill — a second job. Every tool call has one budget, fixed when it starts: 55 s (the caller's 60 s minus a margin), ended earlier by the caller's own cancellation (a client that times out or a user who cancels). Every request, retry sleep (Retry-After included), poll and download of the call is judged against what remains of it, so nothing of a call outlives its caller and a request that creates work is never resent after the caller has given up: a POST is resent only when the time left also covers an attempt as long as the one just rejected. A download the budget cuts is listed as not saved beside the generation id; ideogram_generation saves it in a new call. What that leaves open: an upload that needs more than 55 s cannot be served inside one MCP call at all; a request the budget cuts while it is in flight is reported as possibly accepted (never resent); and a job the API accepts after the caller gave up keeps an id nobody receives — a limit of the 60 s client, not of this server.

Prices

ideogram_quote sends exactly the request the tool would send, with Ideogram's dry_run: the answer is the price in USD and credits (at your account's credit rate), exact or an estimate with its upper bound; nothing is generated, stored or billed. Describe has no dry run, so it cannot be quoted. A completed generation shows the cost Ideogram reports for it. This server keeps no price table: prices are the API's, per request.

Compatibility with 1.x

Calls written for 1.x keep working through 2.x, and the result says what was mapped:

1.x input2.0
ideogram_generate without modelideogram-3, as before
model: "3.0" / "4.0"ideogram-3 / ideogram-4
rendering_speed: "TURBO" / "DEFAULT" / "QUALITY"turbo / default / quality on the models that take rendering_speed; quality: low / medium / high on those that take quality (Ideogram 4.5, GPT Image 2.5, P-Image)
rendering_speed: "FLASH"refused (v2 has no FLASH) — quality: very_low on the models that offer it
magic_prompt, style_type, color_palette.name in capitalslowercase
ideogram_editideogram_inpaint
describe_model_version: "V_3"model: "ideogram-3"

A 1.x field that the chosen v2 model does not take is refused with the models that take it (the changelog has the full table).

The raw call

ideogram_api runs any operation this release serves — the curated ones and every other /v2/image operation (the reframe models the documentation index does not list) — by its id, with its parameters kept in their places: {"operation": "…", "params": {"path": {}, "query": {}, "body": {}}, "files": [{"field": "image", "path": "…"}], "dry_run": false}. The parameters are checked against the operation's own schema and rules before anything is sent. Operations Ideogram's documentation does not list need allow_undocumented: true; web-app (Bearer) and internal operations are refused; the undocumented get_asset_reference_usage of the account family too; the customer-specific tools (skechers, swan, sole-swap) and the spec-only workflows run here and only here, behind allow_undocumented; the v1 model variants (ernie, flux-2 klein, the Ideogram 4.0 tiers, the P-Image tiers, design and graphic v3/v4) run here without opt-in — Ideogram documents them in its v1 reference (prefer an _async twin where one exists: a synchronous v1 generation must finish inside the call's budget); nothing is planned for a later release (plan).

Security

A defensive, minimal-dependency design:

  • SSRF protection — downloads over HTTPS only, from allow-listed hosts, redirects blocked; a URL given as an input is fetched from a public host only (no IP literal, no local name, no private or special-purpose address after resolution, no redirect), under the call's budget, over a connection pinned to the address that was judged (a DNS rebinding reaches nothing)
  • Symlink rejection — lstat() rejects a symlinked input file before reading (a symlinked parent directory is resolved)
  • Upload limits per operation — each file checked with stat() against its field's limit before any is read; the local file name is never sent (a file goes as <field>.<ext>) — except a training asset's own name (never its directory), which the API pairs captions by
  • Streamed, capped downloads — written to disk with a byte counter, stopped at 50 MB (512 MB for a video), the partial file removed; a video that cannot download within the call's budget (55 s) is "Not saved" with its link, for you to fetch before it expires; image/* or video/mp4 required
  • Schema validation — inputs against each model's generated schema before any request; a success response the specification's schema rejects is reported as a contract mismatch, never as a success
  • Input paths — the model may name any readable image file on the machine for upload; run the server as a user whose readable images you are willing to send to Ideogram

Full details in SECURITY.md.

Development

git clone https://github.com/qmediat/ideogram-mcp.git
cd ideogram-mcp
npm install
npm run build
npm run typecheck
npm run lint        # structure rules, repeated blocks, the baseline ratchet (docs/SYSTEMIC.md §1)
npm run format      # Prettier (npm run lint checks it)
npm test            # builds, then every test against a fake API (no key, no network); with IDEOGRAM_API_KEY set, the live dry-run suite runs too (below)

The specification snapshot drives the code: npm ci --prefix scripts/spec-gen && npm run spec:generate regenerates src/generated/ (CI checks it with npm run spec:check), npm run docs:api the API reference, npm run spec:pull compares the live specification with the snapshot. These scripts need Node.js 22.18 or newer (type stripping), and so does npm run lint (its Babel 8 parser: 22.18+ or 24.11+). With IDEOGRAM_API_KEY set, test/live-dry-run.test.mjs quotes every curated model at no cost and writes the prices to docs/PRICES-<date>.md.

Run locally:

IDEOGRAM_API_KEY=your-key node dist/index.js

Contributing

See CONTRIBUTING.md for architecture guidelines and PR requirements.

Trademarks and affiliation

Ideogram is a trademark of Ideogram. This is an independent, community-maintained integration published by Quantum Media Technologies sp. z o.o.; it is not affiliated with, sponsored by or endorsed by Ideogram. Use of the Ideogram API through this server is subject to Ideogram's own terms and to your own API key or account.

License

MIT — Quantum Media Technologies


Made by Quantum Media Technologies · more open source from qmediat

الأسئلة الشائعة

ما هو io.github.qmediat/ideogram-mcp؟

Ideogram platform MCP (api v2): 18 image models, price quotes, async generations, raw call

كيف أثبّت io.github.qmediat/ideogram-mcp؟

يعمل على جهازك. في Claude Code: claude mcp add ideogram-mcp -e 'IDEOGRAM_API_KEY=<your ideogram_api_key>' -e 'IDEOGRAM_OUTPUT_DIR=<IDEOGRAM_OUTPUT_DIR>' -- npx -y @qmediat.io/ideogram-mcp@2.0.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.qmediat/ideogram-mcp إلى مفتاح API؟

نعم. يتطلب IDEOGRAM_API_KEY، وتضبطها في إعداداته.

هل io.github.qmediat/ideogram-mcp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.qmediat/ideogram-mcp؟

ينشره qmediat. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.