プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Media Gen MCP

作者:strato-spaceバージョン 1.0.4i★ –iパソコンで動く
レジストリ名io.github.strato-space/media-gen-mcp

インストール

概要

作者による説明(英語の原文)

MCP server for OpenAI Images/Videos and Google GenAI (Veo) media generation.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: デザイン・画像・音声
  • 入力が必要なもの:OPENAI_API_KEY, GEMINI_API_KEY, GOOGLE_API_KEY, AZURE_OPENAI_API_KEY

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: OPENAI_API_KEY, GEMINI_API_KEY, GOOGLE_API_KEY, GOOGLE_GENAI_USE_VERTEXAI, GOOGLE_CLOUD_PROJECT, GOOGLE_CLOUD_LOCATION, AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT, OPENAI_API_VERSION, AZURE_OPENAI_DEPLOYMENT, MEDIA_GEN_DIRS, MEDIA_GEN_URLS, MEDIA_GEN_MCP_URL_PREFIXES, MEDIA_GEN_MCP_TEST_SAMPLE_DIR

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "media-gen": {
      "command": "npx",
      "args": [
        "-y",
        "@strato-space/media-gen-mcp"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "GEMINI_API_KEY": "your-value",
        "GOOGLE_API_KEY": "your-value",
        "GOOGLE_GENAI_USE_VERTEXAI": "your-value",
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "GOOGLE_CLOUD_LOCATION": "your-value",
        "AZURE_OPENAI_API_KEY": "your-value",
        "AZURE_OPENAI_ENDPOINT": "your-value",
        "OPENAI_API_VERSION": "your-value",
        "AZURE_OPENAI_DEPLOYMENT": "your-value",
        "MEDIA_GEN_DIRS": "your-value",
        "MEDIA_GEN_URLS": "your-value",
        "MEDIA_GEN_MCP_URL_PREFIXES": "your-value",
        "MEDIA_GEN_MCP_TEST_SAMPLE_DIR": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add media-gen --env OPENAI_API_KEY=your-value --env GEMINI_API_KEY=your-value --env GOOGLE_API_KEY=your-value --env GOOGLE_GENAI_USE_VERTEXAI=your-value --env GOOGLE_CLOUD_PROJECT=your-value --env GOOGLE_CLOUD_LOCATION=your-value --env AZURE_OPENAI_API_KEY=your-value --env AZURE_OPENAI_ENDPOINT=your-value --env OPENAI_API_VERSION=your-value --env AZURE_OPENAI_DEPLOYMENT=your-value --env MEDIA_GEN_DIRS=your-value --env MEDIA_GEN_URLS=your-value --env MEDIA_GEN_MCP_URL_PREFIXES=your-value --env MEDIA_GEN_MCP_TEST_SAMPLE_DIR=your-value -- npx -y @strato-space/media-gen-mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "media-gen": {
      "command": "npx",
      "args": [
        "-y",
        "@strato-space/media-gen-mcp"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "GEMINI_API_KEY": "your-value",
        "GOOGLE_API_KEY": "your-value",
        "GOOGLE_GENAI_USE_VERTEXAI": "your-value",
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "GOOGLE_CLOUD_LOCATION": "your-value",
        "AZURE_OPENAI_API_KEY": "your-value",
        "AZURE_OPENAI_ENDPOINT": "your-value",
        "OPENAI_API_VERSION": "your-value",
        "AZURE_OPENAI_DEPLOYMENT": "your-value",
        "MEDIA_GEN_DIRS": "your-value",
        "MEDIA_GEN_URLS": "your-value",
        "MEDIA_GEN_MCP_URL_PREFIXES": "your-value",
        "MEDIA_GEN_MCP_TEST_SAMPLE_DIR": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "media-gen": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@strato-space/media-gen-mcp"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "GEMINI_API_KEY": "your-value",
        "GOOGLE_API_KEY": "your-value",
        "GOOGLE_GENAI_USE_VERTEXAI": "your-value",
        "GOOGLE_CLOUD_PROJECT": "your-value",
        "GOOGLE_CLOUD_LOCATION": "your-value",
        "AZURE_OPENAI_API_KEY": "your-value",
        "AZURE_OPENAI_ENDPOINT": "your-value",
        "OPENAI_API_VERSION": "your-value",
        "AZURE_OPENAI_DEPLOYMENT": "your-value",
        "MEDIA_GEN_DIRS": "your-value",
        "MEDIA_GEN_URLS": "your-value",
        "MEDIA_GEN_MCP_URL_PREFIXES": "your-value",
        "MEDIA_GEN_MCP_TEST_SAMPLE_DIR": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • OPENAI_API_KEY 秘密 env
    OpenAI API key (required for OpenAI image/video tools).
  • GEMINI_API_KEY 秘密 env
    Gemini API key (alternative to GOOGLE_API_KEY).
  • GOOGLE_API_KEY 秘密 env
    Google GenAI API key for Veo video tools.
  • GOOGLE_GENAI_USE_VERTEXAI env
    Set to true to use Vertex AI for Google GenAI.
  • GOOGLE_CLOUD_PROJECT env
    GCP project id for Vertex AI.
  • GOOGLE_CLOUD_LOCATION env
    GCP region for Vertex AI (e.g. us-central1).
  • AZURE_OPENAI_API_KEY 秘密 env
    Azure OpenAI API key (optional).
  • AZURE_OPENAI_ENDPOINT env
    Azure OpenAI endpoint hostname.
  • OPENAI_API_VERSION env
    Azure OpenAI API version.
  • AZURE_OPENAI_DEPLOYMENT env
    Azure OpenAI deployment name.
  • MEDIA_GEN_DIRS env
    Comma-separated output directories for media files.
  • MEDIA_GEN_URLS env
    Comma-separated URL prefixes allowed for fetch tools.
  • MEDIA_GEN_MCP_URL_PREFIXES env
    Public URL prefixes for mapping local output files.
  • MEDIA_GEN_MCP_TEST_SAMPLE_DIR env
    Path to sample images for the test-images tool.

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月9日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント strato-space で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

デザイン・画像・音声のほかのサーバーとの比較i

  • このカテゴリのほかの2815件のうち0%よりスターが多い
  • このカテゴリのほかの2815件のうち1%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの2815件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Media Gen MCPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:OPENAI_API_KEY, GEMINI_API_KEY, GOOGLE_API_KEY, AZURE_OPENAI_API_KEY

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.0.4)がレジストリに届いたのは11 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Figma Context MCP, Claude Real Video, Figma MCP Server

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Figma Context MCP

Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.

作者:GLips広く使われている↓ 16.1万/週★ 1.6万5 か月前更新

パソコンで動く

Claude Real Video

Let any LLM watch a video locally — and search everything it has ever watched.

作者:HUANGCHIHHUNGLeo広く使われている↓ 1106/週★ 22842 か月前更新

パソコンで動く

Figma MCP Server

The Figma MCP server brings Figma design context directly into your AI workflow.

作者:figma広く使われている★ 215213 か月前更新

クラウドで動く✓ mcp.figma.com

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

media-gen-mcp


Media Gen MCP is a strict TypeScript Model Context Protocol (MCP) server for OpenAI Images (gpt-image-1.5, gpt-image-1), OpenAI Videos (Sora), and Google GenAI Videos (Veo): generate/edit images, create/remix video jobs, and fetch media from URLs or disk with smart resource_link vs inline image outputs and optional sharp processing. Production-focused (full strict typecheck, ESLint + Vitest CI). Works with fast-agent, Claude Desktop, ChatGPT, Cursor, VS Code, Windsurf, and any MCP-compatible client.

Design principle: spec-first, type-safe image tooling – strict OpenAI Images API + MCP compliance with fully static TypeScript types and flexible result placements/response formats for different clients.

  • Generate images from text prompts using OpenAI's gpt-image-1.5 model (with gpt-image-1 compatibility and DALL·E support planned in future versions).
  • Edit images (inpainting, outpainting, compositing) from 1 up to 16 images at once, with advanced prompt control.
  • Generate videos via OpenAI Videos (sora-2, sora-2-pro) with job create/remix/list/retrieve/delete and asset downloads.
  • Generate videos via Google GenAI (Veo) with operation polling and file-first downloads.
  • Fetch & compress images from HTTP(S) URLs or local file paths with smart size/quality optimization.
  • Fetch documents from HTTP(S) URLs or local file paths and return resource_link/resource outputs.
  • Debug MCP output shapes with a test-images tool that mirrors production result placement (content, structuredContent, toplevel).
  • Integrates with: fast-agent, Windsurf, Claude Desktop, Cursor, VS Code, and any MCP-compatible client.

✨ Features

  • Strict MCP spec support Tool outputs are first-class CallToolResult objects from the latest MCP schema, including: content items (text, image, resource_link, resource), optional structuredContent, optional top-level files, and the isError flag for failures.
  • Full gpt-image-1.5 and sora-2/sora-2-pro parameters coverage (generate & edit)
  • openai-images-generate mirrors the OpenAI Images create API for gpt-image-1.5 (and gpt-image-1) (background, moderation, size, quality, output_format, output_compression, n, user, etc.).
  • openai-images-edit mirrors the OpenAI Images createEdit API for gpt-image-1.5 (and gpt-image-1) (image, mask, n, quality, size, user).
  • OpenAI Videos (Sora) job tooling (create / remix / list / retrieve / delete / content)
  • openai-videos-create mirrors videos/create and can optionally wait for completion.
  • openai-videos-remix mirrors videos/remix.
  • openai-videos-list mirrors videos/list.
  • openai-videos-retrieve mirrors videos/retrieve.
  • openai-videos-delete mirrors videos/delete.
  • openai-videos-retrieve-content mirrors videos/content and downloads video / thumbnail / spritesheet assets to disk, returning MCP resource_link (default) or embedded resource blocks (via tool_result).
  • Google GenAI (Veo) operations + downloads (generate / retrieve operation / retrieve content)
  • google-videos-generate starts a long-running operation (ai.models.generateVideos) and can optionally wait for completion and download .mp4 outputs. Veo model reference
  • google-videos-retrieve-operation polls an existing operation.
  • google-videos-retrieve-content downloads an .mp4 from a completed operation, returning MCP resource_link (default) or embedded resource blocks (via tool_result).
  • Fetch and process images from URLs or files fetch-images tool loads images from HTTP(S) URLs or local file paths with optional, user-controlled compression (disabled by default). Supports parallel processing of up to 20 images.
  • Fetch videos from URLs or files fetch-videos tool lists local videos or downloads remote video URLs to disk and returns MCP resource_link (default) or embedded resource blocks (via tool_result).
  • Fetch documents from URLs or files fetch-document tool downloads remote files or reuses local paths and returns MCP resource_link (default) or embedded resource blocks (via tool_result).
  • Mix and edit up to 16 images openai-images-edit accepts image as a single string or an array of 1–16 file paths/base64 strings, matching the OpenAI spec for GPT Image models (gpt-image-1.5, gpt-image-1) image edits.
  • Smart image compression Built-in compression using sharp — iteratively reduces quality and dimensions to fit MCP payload limits while maintaining visual quality.
  • Resource-aware file output with `resource_link`
  • Automatic switch from inline base64 to file when the total response size exceeds a safe threshold.
  • Outputs are written to disk using output_ _media-gen__ _ . filenames (images/documents use a generated UUID; videos use the OpenAI video_id) and exposed to MCP clients via content[] depending on tool_result (resource_link/image for images, resource_link/resource for video/document downloads).
  • Built-in test-images tool for MCP client debugging test-images reads sample images from a configured directory and returns them using the same result-building logic as production tools. Use tool_result and response_format parameters to test how different MCP clients handle content[] and structuredContent.
  • Structured MCP error handling All tool errors (validation, OpenAI API failures, I/O) are returned as MCP errors with isError: true and content: [{ type: "text", text: }], making failures easy to parse and surface in MCP clients.

🚀 Installation

git clone https://github.com/strato-space/media-gen-mcp.git

cd media-gen-mcp

npm install npm run build

Build modes:

  • npm run build – strict TypeScript build with all strict flags enabled, including skipLibCheck: false. Incremental builds via .tsbuildinfo (~2-3s on warm cache).
  • npm run esbuild – fast bundling via esbuild (no type checking, useful for rapid iteration).
Development mode (no build required)

For development or when TypeScript compilation fails due to memory constraints:

npm run dev  # Uses tsx to run TypeScript directly
Quality checks
npm run lint        # ESLint with typescript-eslint

npm run typecheck # Strict tsc --noEmit npm run test # Unit tests (vitest) npm run test:watch # Watch mode for TDD npm run ci # lint + typecheck + test

Unit tests

The project uses vitest for unit testing. Tests are located in test/.

Covered modules:

ModuleTestsDescription
compression12Image format detection, buffer processing, file I/O
helpers31URL/path validation, output resolution, result placement, resource links
env19Configuration parsing, env validation, defaults
logger10Structured logging + truncation safety
pricing5Sora pricing estimate helpers
schemas69Zod schema validation for all tools, type inference
fetch-images (integration)3End-to-end MCP tool call behavior
fetch-videos (integration)3End-to-end MCP tool call behavior

Test categories:

  • compression — isCompressionAvailable, detectImageFormat, processBufferWithCompression, readAndProcessImage
  • helpers — isHttpUrl, isAbsolutePath, isBase64Image, ensureDirectoryWritable, resolveOutputPath, getResultPlacement, buildResourceLinks
  • env — config loading and validation for MEDIA_GEN_* / MEDIA_GEN_MCP_* settings
  • logger — truncation and error formatting behavior
  • schemas — validation for openai-images-*, openai-videos-*, fetch-images, fetch-videos, test-images inputs, boundary testing (prompt length, image count limits, path validation)
npm run test

✓ test/compression.test.ts (12 tests)

✓ test/helpers.test.ts (31 tests)

✓ test/env.test.ts (19 tests)

✓ test/logger.test.ts (10 tests)

✓ test/pricing.test.ts (5 tests)

✓ test/schemas.test.ts (69 tests)

✓ test/fetch-images.integration.test.ts (3 tests)

✓ test/fetch-videos.integration.test.ts (3 tests)

Tests: 152 passed

Run directly via npx (no local clone)

You can also run the server straight from a remote repo using npx:

npx -y github:strato-space/media-gen-mcp --env-file /path/to/media-gen.env

The --env-file argument tells the server which env file to load (e.g. when you keep secrets outside the cloned directory). The file should contain OPENAI_API_KEY, optional Azure variables, and any MEDIA_GEN_MCP_* settings.

secrets.yaml (optional)

You can keep API keys (and optional Google Vertex AI settings) in a secrets.yaml file (compatible with the fast-agent secrets template):

openai:

api_key: anthropic: api_key: google: api_key: vertex_ai: enabled: true project_id: your-gcp-project-id location: europe-west4

media-gen-mcp loads `secr

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く