Skip to main content
Glama


๐Ÿ“ฆ Project Overview

  • A TypeScript tool that allows you to use Ideogram API (v3.0) via MCP server

  • Multi-function including image generation, style reference, magic prompt, aspect ratio, model selection, etc.

  • Can be used immediately with Claude Desktop and other MCP clients


Related MCP server: Image Generation MCP Server

โšก๏ธ Quick Start

If you want to connect to Claude Desktop or other MCP clients at lightning speed,
Just copy and paste the JSON snippet below into your configuration file!

{ "mcpServers": { "ideogram": { "command": "npx", "args": [ "@sunwood-ai-labs/ideagram-mcp-server" ], "env": { "IDEOGRAM_API_KEY": "your_api_key_here" } } } }

๐Ÿ› ๏ธ MCP Tool Specifications

generate_image

Parameter list (latest version)

Parameters

Type

explanation

Required/Optional

remarks

prompt

string

Image generation prompt (English recommended)

Required

aspect_ratio

string

Aspect ratio (e.g. "1x1", "16x9", "4x3", etc.)

any

15 types

resolution

string

Resolution (see official documentation, 69 types in total)

any

seed

integer

Random number seed (to ensure reproducibility)

any

0 to 2147483647

magic_prompt

string

Magic prompt ("AUTO"

"ON"

"OFF"

rendering_speed

string

Rendering speed for v3 ("TURBO"

"DEFAULT"

"QUALITY"

style_codes

string[]

8-character style code sequence

any

style_type

string

Style type ("AUTO"

"GENERAL"

"REALISTIC"

negative_prompt

string

Exclusions (English recommended)

any

num_images

number

Number of generated images (1 to 8)

any

style_reference

object

Style Reference (New in Ideogram 3.0)

any

Details below

โ”” urls

string[]

Reference image URL array (up to 3)

any

โ”” style_code

string

Style Code

any

โ”” random_style

boolean

Use random style

any

output_dir

string

Image storage directory (default: "docs")

any

base_filename

string

Base for saved filename (default: "ideogram-image")

any

Timestamp and ID assignment

blur_mask

boolean

Blur the edges of the image (set to true for mask compositing)

any

Default: false

๐Ÿ“ Usage example

const result = await use_mcp_tool({ server_name: "ideagram-mcp-server", tool_name: "generate_image", arguments: { prompt: "A beautiful sunset over mountains", aspect_ratio: "16x9", rendering_speed: "QUALITY", num_images: 2, style_reference: { urls: [ "https://example.com/ref1.jpg", "https://example.com/ref2.jpg" ], random_style: false }, blur_mask: true } });

๐Ÿง‘โ€๐Ÿ’ป Develop, build, and test

  • npm run build ... TypeScript build

  • npm run watch ... development mode (automatic build)

  • npm run lint ... Code linting

  • npm test ... run tests


๐Ÿ—‚๏ธ Directory structure

ideagram-mcp-server/ โ”œโ”€โ”€ assets/ โ”œโ”€โ”€ docs/ โ”‚ โ””โ”€โ”€ ideogram-image_2025-05-18T06-31-45-777Z.png โ”œโ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ tools/ โ”‚ โ”œโ”€โ”€ types/ โ”‚ โ”œโ”€โ”€ utils/ โ”‚ โ”œโ”€โ”€ ideogram-client.ts โ”‚ โ”œโ”€โ”€ index.ts โ”‚ โ”œโ”€โ”€ server.ts โ”‚ โ””โ”€โ”€ test.ts โ”œโ”€โ”€ .env.example โ”œโ”€โ”€ package.json โ”œโ”€โ”€ tsconfig.json โ”œโ”€โ”€ README.md โ””โ”€โ”€ ...๏ผˆ็œ็•ฅ๏ผ‰

๐Ÿ“ Contributions

  1. Fork this repository

  2. Create a new branch ( git checkout -b feature/awesome )

  3. Commit changes (Commit messages should be in Japanese and emojis are recommended!)

  4. Push and pull request creation


๐Ÿš€ Deploy & Release

  • Automatic npm publishing with GitHub Actions

  • Version update โ†’ Automatic deployment by pushing tags

npm version patch|minor|major git push --follow-tags

For details, see docs/npm-deploy.md !


๐Ÿ“„ License

MIT


One-click Deploy
A
security โ€“ no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sunwood-ai-labs/ideagram-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server