Ideogram MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Used for environment variable management to store Ideogram API credentials

  • Used for source code hosting and version control for the Ideogram MCP Server project

  • Used for package distribution and dependency management for the Ideogram MCP Server

🎨 表意文字 MCP 服务器

使用表意文字 API 提供图像生成功能的模型上下文协议 (MCP) 服务器

https://github.com/user-attachments/assets/041553d3-6fbc-4dfa-b149-d195dcb9e8f8

📋 功能

  • 基于提示的图像生成
  • 可定制参数
    • 长宽比
    • 模型选择
    • 魔法提示
    • 样式类型
    • 负面提示
    • 生成的图像数量

🚀 设置

  1. 安装所需的依赖项:
npm install
  1. 设置环境变量:创建一个.env文件并向其中添加以下内容:
IDEOGRAM_API_KEY=your_api_key_here
  1. 建造:
npm run build
  1. (可选)全局安装:
npm link

💻如何使用

MCP 工具

生成图像

生成图像的工具。

必需参数:

  • prompt :用于图像生成的提示

可选参数:

  • aspect_ratio :图像的纵横比。
    • ASPECT_1_1
    • ASPECT_4_3
    • ASPECT_3_4
    • ASPECT_16_9
    • ASPECT_9_16
  • model :要使用的模型
    • V_1
    • V_1_TURBO
    • V_2
    • V_2_TURBO
  • magic_prompt_option :魔法提示设置
    • AUTO
    • ON
    • OFF
  • style_type :生成的样式
  • negative_prompt :要排除的元素的描述
  • num_images :要生成的图像数量(1-8)

使用示例

const result = await use_mcp_tool({ server_name: "ideagram-mcp-server", tool_name: "generate_image", arguments: { prompt: "A beautiful sunset over mountains", aspect_ratio: "ASPECT_16_9", model: "V_2", num_images: 1 } });

🔧 开发

目录结构

ideagram-mcp-server/ ├── src/ │ ├── index.ts # メインのサーバーコード │ └── ideogram-client.ts # Ideogram APIクライアント ├── package.json ├── tsconfig.json └── README.md

脚本

  • npm run build :编译 TypeScript
  • npm run watch :以开发模式运行(监视文件更改)
  • npm run lint :检查你的代码
  • npm test :运行测试

📄 许可证

麻省理工学院

🤝 贡献

  1. Fork此存储库
  2. 创建新分支( git checkout -b feature/amazing-feature
  3. 提交更改( git commit -m '✨ feat: Add amazing feature'
  4. 推送到分支( git push origin feature/amazing-feature
  5. 创建拉取请求

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

模型上下文协议服务器使用表意文字 API 提供图像生成功能,允许用户使用可自定义的参数从文本提示创建图像。

  1. 📋 機能
    1. 🚀 セットアップ
      1. 💻 使用方法
        1. MCPツール
        2. 使用例
      2. 🔧 開発
        1. ディレクトリ構造
        2. スクリプト
      3. 📄 ライセンス
        1. 🤝 コントリビューション
          ID: xzcx34d305