home / mcp / mcp asset gen server
An MCP Server for generating images via OpenAI's `gpt-image-1`
Configuration
View docs{
"mcpServers": {
"jbrower95-mcp-asset-gen": {
"command": "npx",
"args": [
"mcp-asset-gen"
],
"env": {
"API_KEY": "YOUR_API_KEY"
}
}
}
}You can use the MCP server to bridge Claude with OpenAI for generating image assets through the mcp-asset-gen workflow. This lets you request visuals from Claude and have assets produced and saved to a local path, which is useful for game or web development projects.
You connect a client to the MCP server and enable the mcp-asset-gen workflow. With this setup you can ask Claude to generate image assets by providing a clear prompt. The server runs locally and uses the npx command to trigger the asset generator, passing your API key to the underlying tool. When you request an image, the tool creates the asset and saves it to a path you specify, such as a PNG file for a logo or icon.
Practical usage pattern: - Start your MCP-enabled Claude session and ensure the mcp-asset-gen server is configured. - Provide a concrete prompt describing the asset you want (style, colors, theme, and resolution). - Specify the output path for the generated image if your setup requires an explicit location. - Retrieve and use the generated asset in your project directory.
Prerequisites you need before proceeding: - Node installed on your system - An OpenAI API Key with organization verification enabled - Basic shell access to set environment variables and edit JSON config files.
Step 1: Obtain an API key from the OpenAI platform.
Step 2: Export your API key in your shell session.
export API_KEY=sk-proj-....Step 3: Register the MCP server integration by updating your Claude config. Run this in the same shell session to wire the mcp-asset-gen into Claude’s MCP bridge.
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.jsonStep 4: You’re ready to generate an image. Prompt Claude to create an asset and specify the desired description, output path, and quality. The system will indicate where the generated image is saved.
The standard workflow uses a local MCP server entry named mcp-asset-gen. It runs via npx and passes your API key to the underlying tool. Expect a message indicating the output location once an image is generated, such as the path to a PNG file that has been created.
Requests an image generation from Claude via the mcp-asset-gen workflow and saves the resulting asset to a specified path with a given prompt.