---
title: "How to Generate AI Images LOCALLY Using LM Studio + Stable Diffusion WebUI"
source_url: https://youtu.be/mA8gM9JEtFQ
captured_at: 2026-07-31
author: "AsapGuide"
contributor: "ชิดชนก"
platform: youtube
---
# How to Generate AI Images LOCALLY Using LM Studio + Stable Diffusion WebUI

youtube video by **AsapGuide**, 14m09s, uploaded 2026-04-07. URL: https://youtu.be/mA8gM9JEtFQ
Tags: AsapGuide, How to Guide, AI Tutorial, AI Tools, AI for Productivity, AI for Business

## Shared in LINE Note+
- 2026-07-31 00:28 by ชิดชนก

## Description
👉  In this video, I will show you how to enable image generation directly inside LM Studio by connecting it to Stable Diffusion Web UI through a local MCP server, so you can describe a picture in chat and have AI generate it on your computer. The setup uses Node.js, Stability Matrix, and a small open source MCP package, and everything runs fully offline using your own hardware and models with no subscription needed. This is a great option for anyone who wants to run a local AI image workflow, use Stable Diffusion through a chat interface, or build a free and private text to image setup at home.



MCP.JSON:
{
  "mcpServers": {
    "image-gen": {
      "command": "node",
      "args": [
        "INDEX.JS LOCATION HERE"
      ],
      "env": {
        "SD_BASE_URL": "SD WEBUI ADDRESS HERE",
        "SD_OUTPUT_DIR": "OUTPUT LOCATION HERE"
      }
    }
  }
}

PS: Turns out, I indeed forgot to add a few more backslash characters (LOL).

❤️ Subscribe:
