codex-ergouzi-media-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codex-ergouzi-media-mcpgenerate an image of a serene mountain lake"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
codex-ergouzi-media-mcp
一个将 Ergouzi 媒体任务封装为 Codex 插件的本地 MCP 适配器。仓库本身是普通 GitHub 项目,不依赖 Codex marketplace。
功能
查询 API Key 可见的模型列表
创建、查询和取消图片/视频预测任务
下载任务输出并自动识别 JPEG、PNG、WebP、MP4 等文件后缀
支持本地媒体文件转换为 data URI
下载结果使用流式写入、大小限制和临时文件原子落盘
Related MCP server: gemini-nano-banana-mcp
目录结构
codex-ergouzi-media-mcp/
├─ plugins/ergouzi-media-mcp/
│ ├─ .codex-plugin/plugin.json # Codex 插件清单
│ ├─ .mcp.json # MCP 启动配置
│ ├─ README.md # 插件说明
│ └─ scripts/
│ ├─ server.mjs # MCP 协议入口
│ └─ lib.mjs # API、媒体、任务和下载逻辑
├─ scripts/validate.mjs # 清单和入口校验
├─ scripts/smoke.mjs # 工具注册 Smoke 校验
├─ test/lib.test.mjs # 本地契约测试
├─ .github/workflows/ci.yml # GitHub Actions
├─ package.json
├─ package-lock.json
└─ CHANGELOG.md环境要求
Node.js
20.0.0或更高版本一个可用的 Ergouzi API Key
Codex Desktop 或其他支持 stdio MCP 的客户端
安装
git clone https://github.com/miao111994/codex-ergouzi-media-mcp.git
cd codex-ergouzi-media-mcp
npm ci在 Windows PowerShell 中也可以使用同样的命令。
配置凭据
Windows 默认读取:
C:\Users\<你的用户名>\AppData\Roaming\ergouzi\credentials.jsonmacOS / Linux 默认读取:
~/.config/ergouzi/credentials.json文件内容示例:
{
"api_key": "YOUR_API_KEY",
"base_url": "https://ergouzi.life"
}也可以用环境变量覆盖:
ERGOUZI_MEDIA_API_KEYERGOUZI_MEDIA_BASE_URLERGOUZI_CONFIG_FILE
在 Codex 中安装
完成 npm ci 和凭据配置后,在 Codex 的插件管理界面添加本地插件目录:
<仓库目录>/plugins/ergouzi-media-mcpCodex 会读取 .codex-plugin/plugin.json,再根据 .mcp.json 执行:
node scripts/server.mjs不需要把仓库根目录当作 MCP 入口,也不需要创建 marketplace 文件。
调用工具
插件提供以下 MCP 工具:
list_modelscreate_predictionget_predictioncancel_predictiondownload_prediction
在 Codex 中可以直接使用自然语言调用,例如:
调用 ergouzi-media-mcp 的 list_models,列出可用模型。使用 ergouzi/e-image 创建一张雨夜街道图片,完成后下载到 F:\生图MCP制作\outputs。默认下载目录为:
<当前工作目录>/outputs/ergouzi-media-mcp回执会写入该目录下的 receipts/YYYY-MM-DD/ 子目录。
模型和本地文件行为
list_models 以服务端返回为准。创建任务不再依赖本地硬编码模型名单,因此服务端新增普通 JSON 模型时无需同步发布插件。
本地文件输入使用以下形式,并且只允许出现在插件已声明的媒体字段中:
{
"$local_file": "C:/path/to/file.png"
}未知模型可以使用普通 JSON 或 HTTPS 媒体 URL,但未知媒体字段中的 $local_file 会被拒绝。
本地验证
npm run validate
npm test
npm run smoke
npm run audit测试不会调用真实 API,下载测试使用本地模拟响应。
依赖审计
npm audit 依赖当前配置的 registry audit 接口。部分镜像只提供包下载,不提供 npm audit endpoint,因此可能返回 NOT_IMPLEMENTED;官方 endpoint 也可能因本机网络或 npm 版本返回接口错误。
本仓库提供了带 fallback 的审计命令:
npm run audit它会先尝试官方 npm audit endpoint,失败后自动使用 OSV Scanner API 扫描 package-lock.json 中的 npm 依赖。GitHub 仓库同时启用了 Dependabot,用于持续发现依赖更新和已知漏洞。
发布版本
当前版本为 0.2.1。版本变更记录见 CHANGELOG.md。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for generating images and videos using Volcengine's Jimeng APIs, supporting text-to-image, image-to-image, multi-image fusion, text-to-video, and image-to-video.31MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that enables Claude Code to generate images using Google's Gemini image generation models.MIT
- FlicenseNot gradedqualityCmaintenanceMCP server for generating and editing images via PackyAPI's gpt-image-2 model, enabling Codex to create and modify images based on prompts.
- FlicenseNot gradedqualityDmaintenanceAn MCP server for generating images and videos via external multimodal models, providing unified tools like imageGenerate, videoGenerate, and materialWrite with support for normal and smart generation modes.
Related MCP Connectors
MCP server for Wan AI video generation
MCP server for Hailuo (MiniMax) AI video generation
MCP server for Grok Imagine AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/miao111994/codex-ergouzi-media-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server