Skip to main content
Glama

mcp-asset-gen

npmバージョン

このツールを使うと、ClaudeはOpenAIと通信し、 gpt-image-1を使って画像アセットを生成できます。これは、ゲームやWeb開発で個々のアセットを印刷する必要がある場合に非常に便利です。

要件

  • ノード

  • OpenAI APIキー

    • 現時点では、これには ID 検証を伴う組織が必要であることに注意してください。

インストール

  1. OpenAI Web サイトから API KEY を取得します。

  2. シェルで API_KEY としてエクスポートします。

export API_KEY=sk-proj-....
  1. 次に、これを同じシェルに貼り付けます。

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
  1. 完了です!クロードに画像生成を依頼すると、

> 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
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Resources

Looking for Admin?

Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.

Latest Blog Posts

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/jbrower95/mcp-asset-gen'

If you have feedback or need assistance with the MCP directory API, please join our Discord server