https://github.com/jbrower95/mcp-asset-gen
An MCP Server for generating images via OpenAI's `gpt-image-1`
https://github.com/jbrower95/mcp-asset-gen
Last synced: 5 months ago
JSON representation
An MCP Server for generating images via OpenAI's `gpt-image-1`
- Host: GitHub
- URL: https://github.com/jbrower95/mcp-asset-gen
- Owner: jbrower95
- License: mit
- Created: 2025-05-04T03:09:04.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2025-05-04T03:21:45.000Z (5 months ago)
- Last Synced: 2025-05-04T04:20:43.400Z (5 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- mcp-index - Asset Image Generator - Generate high-quality image assets for game or web development by providing descriptive prompts. Streamline asset creation workflows with automated image generation through AI. (Developer Tools)
README
# mcp-asset-gen
[](https://badge.fury.io/js/mcp-asset-gen)This tool allows Claude to speak to OpenAI, and use `gpt-image-1` to generate image assets. This can be pretty useful for game or web development, when you need to print individual assets.
# Requirements
- Node
- An OpenAI [API Key](https://platform.openai.com/settings/organization/api-keys)
- Note that this requires an organization, with ID verification at the moment.# Installation
1. Get an API KEY from the [OpenAI website](https://platform.openai.com/settings/organization/api-keys).
2. Export it in your shell as API_KEY.
```bash
export API_KEY=sk-proj-....
```3. Then, paste this into that same shell:
```bash
jq --arg apiKey "$API_KEY" \
'.mcpServers = (.mcpServers // {}) |
.mcpServers["mcp-asset-gen"] = {
type: "stdio",
command: "npx",
args: ["mcp-asset-gen"],
env: { API_KEY: $apiKey }
}' ~/.claude.json > ~/.claude.tmp && mv ~/.claude.tmp ~/.claude.json
```4. You're done! Ask Claude to generate you an image for something, and you'll see
```
> generate a small logo image that i could use for my arcade gameI'll generate a logo for your arcade game. Please provide a more specific description of what you'd like to see in the logo (colors, style,
game theme, etc.) for better results.> It should look like an old school pacman machine (liek a wooden arcade machine)
⏺ mcp-asset-gen:generateImag(outputPathAbsolute: "/Users/jbrower/projects/mcp-asset-gen/arcade-logo.png", prompt: "An old school wooden arcade…
(MCP) machine logo in the style of Pacman, with retro colors and pixelated elements, top-down view of the cabinet,
nostalgic arcade gaming feel, vibrant colors against dark background", quality: "high", size: "1024x1024")
⎿ The image is now available at /Users/jbrower/projects/mcp-asset-gen/arcade-logo.png.⏺ Generated arcade logo saved to /Users/jbrower/projects/mcp-asset-gen/arcade-logo.png
```