Game Asset Generator
An MCP server that generates 2D and 3D game assets from text prompts using AI models from Hugging Face Spaces, allowing developers to easily create game art through Claude Desktop or other MCP clients.
What is Game Asset Generator?
Game Asset Generator is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server that generates 2d and 3d game assets from text prompts using ai models from hugging face spaces, allowing developers to easily create game art through claude desktop or other mcp clients....
An MCP server that generates 2D and 3D game assets from text prompts using AI models from Hugging Face Spaces, allowing developers to easily create game art through Claude Desktop or other MCP clients.
This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- An MCP server that generates 2D and 3D game assets from text
Use Cases
Maintainer
Works with
Installation
NPM
npx -y game-asset-generatorManual Installation
npx -y game-asset-generatorConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Game Asset Generator
Game Asset Generator is an MCP server that enables AI assistants like Claude to generate 2D and 3D game assets directly from text descriptions using AI models hosted on Hugging Face Spaces. It exposes two core tools — one for 2D pixel art and sprites, and one for 3D models in OBJ/GLB formats — making it easy for indie developers to prototype game art without specialized design skills. Assets are automatically saved to a local directory and returned as resource URIs for immediate use.
Prerequisites
- Node.js 18+ and npm installed
- A Hugging Face account with an API token (free tier available at huggingface.co)
- A duplicated Hugging Face Space for 3D generation (e.g., InstantMesh or Hunyuan3D-2) linked to your account
- An MCP-compatible client such as Claude Desktop
Clone the repository
Clone the game-asset-mcp repository from GitHub to your local machine.
git clone https://github.com/MubarakHAlketbi/game-asset-mcp.git
cd game-asset-mcpInstall Node.js dependencies
Install the project's dependencies using npm.
npm installSet up environment variables
Copy the example environment file and fill in your Hugging Face token and model space name.
cp .env.example .env
# Edit .env and set:
# HF_TOKEN=your_huggingface_api_token
# MODEL_SPACE=your-username/InstantMeshConfigure Claude Desktop
Add the game asset generator to your Claude Desktop MCP configuration. The server will use the env vars from your .env file.
{
"mcpServers": {
"game-asset-generator": {
"command": "npx",
"args": ["-y", "game-asset-generator"],
"env": {
"HF_TOKEN": "your_huggingface_api_token",
"MODEL_SPACE": "your-username/InstantMesh"
}
}
}
}Generate your first game asset
Ask Claude Desktop to generate a 2D or 3D asset. Generated files are saved to the local assets/ directory.
Game Asset Generator Examples
Client configuration
Claude Desktop configuration for the Game Asset Generator MCP server with Hugging Face credentials.
{
"mcpServers": {
"game-asset-generator": {
"command": "npx",
"args": ["-y", "game-asset-generator"],
"env": {
"HF_TOKEN": "hf_your_api_token_here",
"MODEL_SPACE": "your-username/InstantMesh"
}
}
}
}Prompts to try
Example prompts for generating game assets using Claude Desktop.
- "Generate a pixel art sword for a 2D RPG game"
- "Create a 3D model of an isometric castle for a strategy game"
- "Make a pixel art character sprite of a knight in blue armor"
- "Generate a 3D low-poly tree suitable for a mobile game"
- "Create a 2D pixel art coin with a gold shine effect"Troubleshooting Game Asset Generator
generate_3d_asset fails with 'Space not found' error
The MODEL_SPACE env var must point to a Hugging Face Space you have duplicated to your own account. Go to the original space (e.g., InstantMesh), click Duplicate, and set MODEL_SPACE to your-username/InstantMesh.
HF_TOKEN authentication errors
Generate a new token at huggingface.co/settings/tokens with at least 'read' scope. If using a duplicated private Space, the token needs 'write' scope. Paste the full token value including the 'hf_' prefix.
2D asset generation returns empty or corrupt image files
The 2D generation relies on Hugging Face Inference API availability. Check the model status at huggingface.co/models and try again during off-peak hours. Ensure your HF account has sufficient API credits for the model being used.
Frequently Asked Questions about Game Asset Generator
What is Game Asset Generator?
Game Asset Generator is a Model Context Protocol (MCP) server that mcp server that generates 2d and 3d game assets from text prompts using ai models from hugging face spaces, allowing developers to easily create game art through claude desktop or other mcp clients. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Game Asset Generator?
Install via npm with the command: npx -y game-asset-generator. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).
Which AI clients work with Game Asset Generator?
Game Asset Generator works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Game Asset Generator free to use?
Yes, Game Asset Generator is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Game Asset Generator Alternatives — Similar Cloud Services Servers
Looking for alternatives to Game Asset Generator? Here are other popular cloud services servers you can use with Claude, Cursor, and VS Code.
Open WebUI
★ 138.2kUser-friendly AI Interface (Supports Ollama, OpenAI API, ...)
Anything LLM
★ 60.4kThe all-in-one AI productivity accelerator. On device and privacy first with no annoying setup or configuration.
LocalAI
★ 46.4kLocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.
Nacos
★ 33.0kan easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.
Xiaozhi ESP32
★ 26.7k本项目为xiaozhi-esp32提供后端服务,帮助您快速搭建ESP32设备控制服务器。Backend service for xiaozhi-esp32, helps you quickly build an ESP32 device control server.
Gateway
★ 11.8kA blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API.
Browse More Cloud Services MCP Servers
Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Game Asset Generator in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Game Asset Generator?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.