npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@takeshijuan/ideogram-mcp-server

v2.2.0

Published

Production-grade Ideogram MCP server for AI image generation integration with Claude Desktop, Cursor, and VS Code

Readme

Ideogram MCP Server

GitHub Stars MCP Protocol Node.js TypeScript License: MIT CodeRabbit Pull Request Reviews

⚠️ Disclaimer: This is an unofficial, community-driven project and is not affiliated with, endorsed by, or sponsored by Ideogram AI. For official Ideogram resources, please visit ideogram.ai.

🤖 AI-Generated Project: This project was entirely implemented by an AI agent (Claude) using the auto-claude autonomous development system. The codebase, tests, and documentation were all generated through AI-assisted development. Human oversight was provided for requirements and review.

A production-grade Model Context Protocol (MCP) server that provides seamless integration between LLM applications (Claude Desktop, Cursor, VS Code) and the Ideogram AI image generation API.

demo

✨ Features

  • 🎨 Image Generation - Generate high-quality AI images from text prompts using Ideogram V3
  • ✏️ Image Inpainting - Edit specific parts of images using mask-based inpainting
  • ⚡ Async Support - Queue generation requests for background processing
  • 💰 Cost Tracking - Estimated credit and USD costs included in all responses
  • 📁 Local Storage - Automatically save generated images locally (URLs expire)
  • 🔄 Enterprise Error Handling - User-friendly messages with retry guidance
  • 🛡️ Type Safety - Full TypeScript strict mode with Zod validation

🚀 Quick Start

Prerequisites

Installation

Install in Cursor Install in VS Code

# Clone the repository
git clone https://github.com/takeshijuan/ideogram-mcp-server.git
cd ideogram-mcp-server

# Install dependencies
npm install

# Build
npm run build

Configuration

Create a .env file (or set environment variables):

# Required
IDEOGRAM_API_KEY=your_ideogram_api_key_here

# Optional
LOG_LEVEL=info                    # debug, info, warn, error
LOCAL_SAVE_DIR=./ideogram_images  # Where to save images
ENABLE_LOCAL_SAVE=true            # Auto-download generated images

Claude Desktop Setup

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "ideogram": {
      "command": "node",
      "args": ["/path/to/ideogram-mcp-server/dist/index.js"],
      "env": {
        "IDEOGRAM_API_KEY": "your_api_key_here"
      }
    }
  }
}

Restart Claude Desktop to load the server.

🛠️ Available Tools

ideogram_generate

Generate images from text prompts.

// Basic usage
{
  prompt: "A beautiful sunset over mountains"
}

// With all options
{
  prompt: "A cute cat wearing a wizard hat",
  aspect_ratio: "16x9",    // 15 ratios: 1x1, 16x9, 9x16, 4x3, 3x4, etc.
  num_images: 4,           // 1-8 images
  rendering_speed: "QUALITY", // FLASH, TURBO, DEFAULT, QUALITY
  magic_prompt: "ON",      // AUTO, ON, OFF - enhance prompts
  style_type: "REALISTIC", // AUTO, GENERAL, REALISTIC, DESIGN, FICTION
  save_locally: true       // Save to local disk
}

Response includes:

  • Image URLs and local paths (if saved)
  • Seeds for reproducibility
  • Cost estimates (credits and USD)

ideogram_inpaint

Edit specific parts of existing images using inpainting with masks.

// Edit parts of an image using a mask
{
  prompt: "Add a red balloon in the sky",
  image: "https://example.com/photo.jpg",  // URL, file path, or base64 data URL
  mask: maskImageData,  // Black pixels=edit, White pixels=preserve
  model: "V_2",  // or "V_2_TURBO" for faster processing
  num_images: 1,  // Generate 1-8 variations
  magic_prompt: "AUTO",  // AUTO, ON, or OFF
  style_type: "AUTO"  // AUTO, GENERAL, REALISTIC, DESIGN, FICTION, RENDER_3D, ANIME
}

Mask Requirements:

  • Same dimensions as source image
  • Black and white pixels only (black=areas to edit, white=areas to preserve)
  • Black area must be at least 10% of total image
  • Supported formats: PNG, JPEG, WebP

ideogram_generate_async

Queue generation requests for background processing.

{
  prompt: "A complex scene with many details",
  num_images: 8
}
// Returns immediately with prediction_id
// Poll with ideogram_get_prediction

ideogram_get_prediction

Check status and retrieve results of async requests.

{
  prediction_id: "pred_abc123..."
}
// Returns: status (queued/processing/completed/failed)
// When completed: includes images and cost

ideogram_cancel_prediction

Cancel queued async requests (before processing starts).

{
  prediction_id: "pred_abc123..."
}
// Only works for predictions in 'queued' status

📊 Cost Tracking

All generation responses include estimated cost information:

{
  "total_cost": {
    "credits_used": 8,
    "estimated_usd": 0.08,
    "note": "Cost estimate based on known Ideogram pricing"
  }
}

Note: Costs are estimated locally based on known pricing. The Ideogram API does not return actual cost information.

🔧 Development

# Development with hot reload
npm run dev

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Type checking
npm run typecheck

# Lint
npm run lint

# Format code
npm run format

# Test with MCP Inspector
npm run inspect

📁 Project Structure

ideogram-mcp-server/
├── src/
│   ├── index.ts          # Entry point
│   ├── server.ts         # MCP server setup
│   ├── config/           # Configuration
│   ├── services/         # Core services
│   │   ├── ideogram.client.ts    # API client
│   │   ├── cost.calculator.ts    # Cost estimation
│   │   ├── prediction.store.ts   # Async job queue
│   │   └── storage.service.ts    # Local file storage
│   ├── tools/            # MCP tools
│   │   ├── generate.ts
│   │   ├── generate-async.ts
│   │   ├── edit.ts
│   │   ├── get-prediction.ts
│   │   └── cancel-prediction.ts
│   ├── types/            # TypeScript types
│   └── utils/            # Utilities
├── docs/                 # Additional documentation
├── dist/                 # Built output
└── package.json

🔐 Security

  • API keys are passed via environment variables, never stored in code
  • All inputs validated with Zod schemas
  • File operations restricted to configured directories
  • No sensitive data logged

🤝 Contributing

Contributions are welcome! Please read our Contributing Guide for details on:

  • Development setup
  • Coding standards
  • Testing requirements
  • Pull request process

Quick start:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

MIT License - see LICENSE for details.

⭐ Star History

Star History Chart

📚 Resources


Built with ❤️ for the AI developer community