About mcp-asset-gen
mcp-asset-gen is an MCP server for Claude that uses OpenAI's gpt-image-1 to create image assets from prompts, including assets for game and web development.
Key features
- 01Generate images with gpt-image-1
- 02Create assets from prompts
- 03Save output to a specified path
Use cases
- 01Create individual assets for a game
- 02Generate images for a website
MCP support
The MCP server lets Claude use OpenAI's gpt-image-1 for image generation and exposes a generation tool.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEmcp-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
- Note that this requires an organization, with ID verification at the moment.
Installation
-
Get an API KEY from the OpenAI website.
-
Export it in your shell as API_KEY.
export API_KEY=sk-proj-....
- Then, paste this into that same shell:
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
- 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 game
I'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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.