MCP-ImageGen
MCP server ให้ agent สร้างภาพและแก้ภาพในเครื่อง Apple Silicon ด้วย Qwen Image 2.1 (4-bit, mflux) แบบ low-RAM ใช้ RAM ราว 5.8 GiB ตอนสร้างภาพและ 6.7 GiB ตอนแก้ภาพ ไม่มี API key ไม่ส่งข้อมูลออกนอกเครื่อง
ต้องการเครื่อง: Mac Apple Silicon, Python 3.11, RAM ว่างราว 6-7 GiB ขณะรันงาน และดิสก์ว่างราว 32 GB สำหรับ weights Active Development
ดูซอร์สโค้ดบน GitHub → · ดาวน์โหลด →
ใช้ทำอะไรได้บ้าง
- ให้ agent อย่าง Claude Code ที่สร้างภาพเองไม่ได้ สร้างภาพประกอบหรือภาพปกจาก prompt โดยใช้ GPU ของเครื่องคุณ
- แก้ภาพที่มีอยู่ด้วยคำสั่งสั้นๆ เช่น เปลี่ยนสีเสื้อ หรือเอาวัตถุออก โดยภาพต้นฉบับไม่ถูกแตะ
- รันคู่กับโมเดลภาษาใหญ่ในเครื่องได้ เพราะ process ทั้งต้นไม้ใช้ RAM ราว 5.8 GiB (แก้ภาพ 6.7 GiB)
- ใช้งานเองผ่านหน้าเว็บ UI ในเครื่องโดยไม่ต้องมี agent
ตัวอย่างภาพที่สร้างด้วย MCP-ImageGen
ทุกภาพสร้างบนเครื่อง Apple Silicon ขณะที่โมเดล 35B เปิดอยู่ ไม่ผ่าน API ภายนอก

ดู prompt
A middle-aged Thai street food vendor in an apron smiling behind a steaming wok at a night market, warm string lights glowing in the blurred background. Medium shot, 50mm lens, shallow depth of field. Photorealistic photograph.

ดู prompt
A sea of mist filling the valleys between layered mountain ridges at sunrise, a warm orange glow on the horizon, northern Thailand. Wide telephoto landscape, soft haze, rich depth. Photorealistic landscape photograph.

ดู prompt
A woman reading a book by a rain-streaked cafe window, a cup of tea beside her, warm interior light, three-quarter view. Medium shot, 50mm lens, shallow depth of field. Photorealistic photograph.
ดูแกลเลอรีทั้งหมดพร้อม prompt และ seed →
บทความในหมวดนี้
แกลเลอรีภาพตัวอย่างจาก MCP-ImageGen — คน ธรรมชาติ และข้อความในภาพ
ภาพที่สร้างและแก้ด้วย MCP-ImageGen บนเครื่อง Apple Silicon ทั้งหมด มีทั้งภาพคน ทิวทัศน์ธรรมชาติ และข้อความอังกฤษในภาพ พร้อม prompt, seed และเวลาที่ใช้จริงของทุกภาพให้ทำซ้ำได้
เริ่มต้นใช้งาน MCP-ImageGen
ให้ agent สร้างภาพและแก้ภาพในเครื่อง Apple Silicon ของคุณเองด้วย Qwen Image 2.1 แบบ low-RAM ใช้ RAM ราว 5.8 GiB ไม่ต้องใช้ API key และไม่ส่ง prompt หรือภาพออกนอกเครื่อง
MCP-ImageGen ทำงานอย่างไร — สร้างภาพ Qwen Image 2.1 ด้วย RAM 5.8 GiB
เจาะสูตร low-RAM ของ MCP-ImageGen: ประเมิน prompt embeddings ก่อนปล่อย text encoder, decode VAE เป็น tile 256 px, แยก decode ไว้ใน process ของตัวเอง พร้อมตัวเลขที่วัดได้และเหตุผลของแต่ละข้อ
MCP-ImageGen 2 tools — generate_image และ edit_image
คู่มือ MCP surface ของ MCP-ImageGen: generate_image กับ edit_image พารามิเตอร์ ขนาดภาพ ข้อจำกัด วิธีเขียน prompt และข้อผิดพลาดที่พบบ่อย