A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

Game Asset Generator MCP server for 2D and 3D assets
An MCP server that creates 2D sprites and 3D models from text prompts using AI models hosted on Hugging Face Spaces and the Hugging Face Inference API.
WHAT IT DOES
- •Generates 2D assets such as pixel art sprites from text prompts.
- •Generates 3D models in OBJ and GLB formats with automatic image-to-model conversion.
- •Saves generated assets to a local assets directory and returns resource URIs.
- •Supports multiple 3D generation spaces: InstantMesh, Hunyuan3D-2, and Hunyuan3D-2mini-Turbo.
BEST FOR
- •Game developers who want to rapidly prototype 2D and 3D assets from text descriptions.
- •Users of MCP-compatible clients like Claude Desktop who want to generate game assets conversationally.
ABOUT GAME-ASSET-MCP
Game Asset Generator MCP server for 2D and 3D assets is cataloged as an MCP server attributed to mubarakhalketbi. An MCP server that creates 2D sprites and 3D models from text prompts using AI models hosted on Hugging Face Spaces and the Hugging Face Inference API. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力检查器
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
Tools (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Resources (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Prompts (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for Game Asset Generator MCP server for 2D and 3D assets are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Are generated assets saved locally?
Yes, assets are saved in an assets directory within the working directory, and a custom directory can be specified.
Can I customize 3D generation parameters?
Yes, parameters like inference steps, guidance scale, octree resolution, seed, and turbo mode can be customized via environment variables.
上游原版 README
README.md · d6769f7ad076 · 采集于 2026-11-13 09:32:11 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Project owner will look into this repository soon, expect an update in JUNE 2026
Game Asset Generator using MCP and Hugging Face Spaces
This project is an innovative tool that simplifies game asset creation by leveraging AI-powered generation. Whether you're a game developer seeking rapid prototypes or an AI enthusiast exploring generative models, this tool enables you to create 2D and 3D game assets from text prompts effortlessly. It integrates AI models from Hugging Face Spaces—powered by "gokaygokay/Flux-2D-Game-Assets-LoRA", "gokaygokay/Flux-Game-Assets-LoRA-v2", and one of three 3D model generation spaces (InstantMesh, Hunyuan3D-2, or Hunyuan3D-2mini-Turbo, which you must duplicate to your account)—and uses the Model Context Protocol (MCP) for seamless interaction with AI assistants like Claude Desktop.
Table of Contents
- Project Overview
- Features
- How It Works
- Prerequisites
- Installation
- Usage
- Configuration
- File Management
- MCP Integration
- Troubleshooting
- Advanced
- Contributing
- License
Project Overview
The Game Asset Generator (version 0.3.0) harnesses AI to streamline the creation of game assets. It supports generating 2D assets (e.g., pixel art sprites) and 3D assets (e.g., OBJ and GLB models) from text prompts, integrating with Hugging Face Spaces and the Model Context Protocol (MCP). This release introduces support for multiple 3D model generation spaces—InstantMesh, Hunyuan3D-2, and Hunyuan3D-2mini-Turbo—offering flexibility and enhanced performance. Built with Node.js and the MCP TypeScript SDK (v1.7.0), it provides a robust, cross-platform solution for asset generation.
Features
- 2D Asset Generation: Create pixel art, sprites, or other 2D assets from text prompts (e.g., "pixel art sword").
- 3D Asset Generation: Generate 3D models (OBJ and GLB formats) from text descriptions, with automatic image-to-model conversion.
- Multiple 3D Model Spaces: Supports
InstantMesh,Hunyuan3D-2, andHunyuan3D-2mini-Turbofor varied 3D generation workflows. - MCP Integration: Seamlessly interact with the tool via MCP-compatible clients like Claude Desktop.
- File Management: Automatically saves and organizes assets in a local
assetsdirectory with resource URIs (e.g.,asset://{type}/{id}). - Robust Input Validation: Uses Zod for secure and reliable input processing.
- Multi-Client Support: Handles multiple simultaneous connections via SSE transport.
- Secure Remote Access: Optional HTTPS support for safe remote communication.
- Extensible Backend: Modular design for easy integration of new models or features.
- Cross-Platform: Compatible with Windows, macOS, and Linux using Node.js.
- Configurable 3D Generation: Customize parameters like inference steps, guidance scale, and turbo mode via environment variables.
How It Works
The Game Asset Generator transforms text prompts into game-ready assets through an automated pipeline:
- User Input: Submit a text prompt (e.g., "pixel art sword" or "isometric 3D castle").
- MCP Server: Routes the prompt to the appropriate tool (
generate_2d_assetorgenerate_3d_asset). - AI Model Interaction:
- 2D Assets: Utilizes the Hugging Face Inference API with
"gokaygokay/Flux-2D-Game-Assets-LoRA"(50 steps). - 3D Assets:
- Generates an initial image using
"gokaygokay/Flux-Game-Assets-LoRA-v2"(30 steps). - Converts the image to a 3D model using one of:
- InstantMesh: Multi-step process (
/preprocess,/generate_mvs,/make3d). - Hunyuan3D-2: Single-step process (
/generation_all). - Hunyuan3D-2mini-Turbo: Single-step process (
/generation_all) with configurable turbo modes.
- InstantMesh: Multi-step process (
- Generates an initial image using
- 2D Assets: Utilizes the Hugging Face Inference API with
- File Output: Saves assets (PNG for 2D, OBJ/GLB for 3D) in the
assetsdirectory. - Response: Returns resource URIs (e.g.,
asset://3d_model/filename.glb) for immediate use.
Workflow Diagram
User Prompt → MCP Server → AI Model(s) → Local File → Resource URI Response
Prompts are automatically enhanced with "high detailed, complete object, not cut off, white solid background" for optimal quality.
Prerequisites
- Node.js: Version 16+ (includes
npm). - Git: For cloning the repository.
- Internet Access: Required for Hugging Face API connectivity.
- Hugging Face Account: Needed for API access; obtain your token from huggingface.co/settings/tokens.
- NPM Packages:
@gradio/client: Interacts with Hugging Face Spaces.@huggingface/inference: For direct model inference.@modelcontextprotocol/sdk: Implements the MCP server.dotenv: Loads environment variables.express: Enables SSE transport.zod: Ensures input validation.sharp: Handles image processing.
- Optional: Claude Desktop (or another MCP client) for enhanced interaction.
Installation
-
Clone the Repository:
git clone https://github.com/yourusername/game-asset-mcp.git cd game-asset-mcp -
Install Dependencies:
npm install -
Configure Environment:
- Copy the example
.envfile:cp .env.example .env - Edit
.envwith your Hugging Face API token and duplicated MODEL_SPACE. See Configuration for details.
- Copy the example
-
Run the Server:
- Local (stdio transport):
npm start - Custom Working Directory:
node src/index.js /path/to/directory - Remote (SSE transport):
node src/index.js --sse - Remote with HTTPS:
Requiresnode src/index.js --sse --httpsssl/key.pemandssl/cert.pem(see ssl/README.md).
- Local (stdio transport):
Note: Uses ES modules (
"type": "module"inpackage.json). Ensure Node.js 16+ is installed (node --version).
Usage
Interact with the server via an MCP client (e.g., Claude Desktop) or programmatically:
-
Generate a 2D Asset:
- Command:
generate_2d_asset prompt:"pixel art sword" - Output: Saves a PNG file (e.g.,
2d_asset_generate_2d_asset_1698765432.png) and returns its URI.
- Command:
-
Generate a 3D Asset:
- Command:
generate_3d_asset prompt:"isometric 3D castle" - Output: Saves OBJ/GLB files and intermediate images, returning their URIs. Provides an operation ID for long-running tasks.
- Command:
Prompt Examples
- Natural Interaction:
generate_2d_sprite prompt:"pixel art sword"generate_3d_model prompt:"isometric 3D castle"
With Claude Desktop
After configuring (see Configuration), type commands directly in the interface.
Configuration
Customize the server via the .env file:
Required Settings
- HF_TOKEN: Hugging Face API token.
HF_TOKEN=your_hf_token - MODEL_SPACE: Your duplicated 3D model space (e.g.,
your-username/InstantMesh).- Duplicate one of:
MODEL_SPACE=your-username/InstantMesh
Optional 3D Model Settings
| Variable | Description | Valid Range/Default |
|---|---|---|
MODEL_3D_STEPS | Inference steps | Varies by space (see below) |
MODEL_3D_GUIDANCE_SCALE | How closely the model follows the prompt | 0.0-100.0 (default: 5.0-5.5) |
MODEL_3D_OCTREE_RESOLUTION | Detail level of the 3D model | Varies by space (see below) |
MODEL_3D_SEED | Randomness control | 0-10000000 (default: varies) |
MODEL_3D_REMOVE_BACKGROUND | Remove image background | true/false (default: true) |
MODEL_3D_TURBO_MODE | Generation mode (Hunyuan3D-2mini-Turbo only) | Turbo, Fast, Standard (default: Turbo) |
MODEL_SPACE_TYPE | Override space type detection | instantmesh, hunyuan3d, hunyuan3d_mini_turbo |
Space-Specific Defaults
- InstantMesh:
- Steps: 30-75 (default: 75)
- Seed: Default 42
- Hunyuan3D-2:
- Steps: 20-50 (default: 20)
- Guidance Scale: Default 5.5
- Octree Resolution:
256,384,512(default:256) - Seed: Default 1234
- Hunyuan3D-2mini-Turbo:
- Steps: 1-100 (default: 5 for
Turbo, 10 forFast, 20 forStandard) - Guidance Scale: Default 5.0
- Octree Resolution: 16-512 (default: 256)
- Seed: Default 1234
- Steps: 1-100 (default: 5 for
Transport Settings
- PORT: SSE transport port (default: 3000).
PORT=3000
Claude Desktop Setup
Edit the config file:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"game-asset-generator": {
"command": "node",
"args": ["/full/path/to/game-asset-mcp/src/index.js"]
}
}
}
Restart Claude Desktop after editing.
File Management
- Storage Location: Assets are saved in
./assetswithin the working directory. - Naming Convention: Files use a prefix, tool name, timestamp, and unique ID (e.g.,
2d_asset_generate_2d_asset_1698765432_abcd1234.png). - Customization: Set a custom directory:
node src/index.js /path/to/custom/directory - Resource Access: Use MCP URIs (e.g.,
asset://2d_asset/filename.png) to list or read assets.
MCP Integration
The Model Context Protocol (MCP) enables this tool to serve AI clients securely:
- Tools:
generate_2d_asset,generate_3d_asset. - Resources: Managed via
asset://URIs. - Prompts:
generate_2d_sprite,generate_3d_model. - Compatibility: Works with Claude Desktop and other MCP clients.
Troubleshooting
- API Errors: Check network connectivity or rate limits; review
./logs/server.log. - Authentication Issues: Verify
HF_TOKENandMODEL_SPACEin.env. - ES Modules Error: Ensure Node.js 16+ (
node --version). - Logs: Inspect detailed logs:
tail -f ./logs/server.log
Advanced
API Endpoints and Integration
- 2D Asset Generation: Uses
"gokaygokay/Flux-2D-Game-Assets-LoRA"(50 steps). - 3D Asset Image Generation: Uses
"gokaygokay/Flux-Game-Assets-LoRA-v2"(30 steps). - 3D Model Conversion:
- InstantMesh: Multi-step (
/check_input_image,/preprocess,/generate_mvs,/make3d). - Hunyuan3D-2: Single-step (
/generation_all). - Hunyuan3D-2mini-Turbo: Single-step (
/generation_all) with turbo modes.
- InstantMesh: Multi-step (
Versioning
- Current Version: 0.3.0 (Added Hunyuan3D-2mini-Turbo support).
- MCP SDK Version: 1.7.0.
- Format: MAJOR.MINOR.PATCH (SemVer).
Backend Architecture
- Core File:
src/index.js. - Dependencies: See
package.json. - Security: Zod validation, path traversal prevention, HTTPS support, rate limiting.
- Performance: Async processing, retry with backoff, GPU quota handling.
Contributing
We welcome contributions! To participate:
- Fork the Repository: Create your copy on GitHub.
- Make Changes: Add features, fix bugs, or enhance docs.
- Submit a Pull Request: Detail your changes.
- Open Issues: Report bugs or suggest improvements.
Follow standard coding conventions and include tests where applicable.
License
Licensed under the MIT License. See the LICENSE file for details.
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Game Asset Generator MCP server for 2D and 3D assets from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/game-asset-mcp)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
下载与拉取统计
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Related media design MCP Servers
Alternative and complementary servers in the same category

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.
