An open‑source Model Context Protocol (MCP) server for AI virtual staging and real‑estate photography editing. It turns the AI HomeDesign photo API into natural‑language tools, so Claude — or any MCP client — can do virtual home staging, AI interior design, photo enhancement, decluttering, and day‑to‑dusk conversions just by being asked.
AI HomeDesign MCP Server exposes the AI HomeDesign V3 API as a set of Model Context Protocol tools over streamable HTTP. Any MCP‑compatible AI client — Claude Desktop, Claude in the browser, Cursor, and more — can then run professional real‑estate photo editing in plain English:
- 🛋️ Virtual staging — furnish an empty room with photorealistic AI furniture in a chosen design style. Digital home staging in seconds, with no physical furniture.
- 🎨 Virtual restaging & AI interior design — replace existing furniture or fully redesign a furnished room.
- ✨ Image enhancement — fix lighting, sharpness, and color balance for listing‑ready photos.
- 🧹 Item removal / decluttering — automatically remove furniture and clutter to reveal a clean space.
- 🌆 Day to dusk — convert a daytime exterior into a warm twilight / dusk scene.
- 🧱 Wall, floor & ceiling changes — restyle surfaces with a tasteful AI finish.
Because it speaks MCP, there is no SDK to learn — you describe what you want and the model calls the right tool with the right parameters.
Traditional home staging means renting furniture and scheduling a shoot. Virtual staging for realtors replaces that with an edited photo — but it still costs hours in editing tools or days of turnaround from a staging service.
This server collapses that into a conversation: drop in a listing photo, pick a style, and get back a downloadable, market‑ready image. It's multi‑tenant (every caller uses their own AI HomeDesign key), stateless, and self‑hostable, so it fits both a single agent and a production PropTech product.
| Tool | What it does | Input |
|---|---|---|
list_capabilities |
List every tool, grouped by category | — |
list_styles |
List allowed design styles, room types & widget options | — |
describe_tool |
Show a tool's inputs + a ready‑to‑use example payload | tool slug |
virtual_staging |
Furnish an empty room in a design style | image + style + room |
virtual_restaging |
Swap furniture in an already‑furnished room | image + style + room |
interior_design |
Fully redesign a furnished room | image + style + room |
enhance_image |
Improve lighting, sharpness & color | image |
remove_items |
Declutter / remove furniture | image |
day_to_dusk |
Turn a daytime exterior into dusk | image |
change_wall / change_floor / change_ceiling |
Restyle a surface | image + room |
create_project · create_order · run_process · get_process · wait_for_result |
Low‑level primitives for full control | see describe_tool |
Every helper accepts an image URL or a base64 image, and returns downloadable result‑image URLs.
Supported design styles: prime, modern, farmhouse, scandinavian,
hampton, industrial, traditional, contemporary.
Supported room types: bedroom, living‑room, kitchen, bathroom, dining‑room,
home‑office, outdoor, nursery.
-
Get your API key. Sign in at aihomedesign.com, open API / Developer settings, and copy your
x-api-key. -
Generate your connector link. Paste that key into the generator at aihomedesign.com/mcp. The key is validated server‑side once, then stored encrypted; you get back a personal endpoint:
https://mcp.aihomedesign.com/aihd_<your-token>/mcpYour raw key never appears in the URL.
-
Add it to your AI assistant. In Claude: Settings → Connectors → Add custom connector, name it AI HomeDesign, and paste the URL. Every tool shows up automatically. Works with any MCP‑compatible client.
⚠️ The connector link does not contain your raw key, but it grants access to your account — treat it like a password. Rotating your key in the AI HomeDesign dashboard revokes every link previously issued for it.
Server health check, no key needed: mcp.aihomedesign.com/health
git clone https://github.com/AIHomeDesign/aihomedesign-mcp.git
cd aihomedesign-mcp
cp .env.example .env # add your AIHD_API_KEY (and DB_DSN/TOKEN_SECRET for multi-tenant)
docker build -t aihomedesign-mcp .
docker run -p 8080:8080 --env-file .env aihomedesign-mcpThe MCP endpoint is served at http://localhost:8080/mcp (streamable HTTP), with a
health check at GET /health.
pip install -r requirements.txt
export AIHD_API_KEY=your_key_here
python app/server.pyAll configuration is via environment variables — see .env.example.
| Variable | Purpose | Default |
|---|---|---|
AIHD_API_KEY |
Default/fallback AI HomeDesign x‑api‑key | — |
AIHD_API_BASE |
API base URL | https://api.aihomedesign.com/v3 |
PORT |
Listen port | 8080 |
DB_DSN |
Postgres DSN for token map + usage log (optional) | — |
TOKEN_SECRET |
Fernet key to encrypt user keys at rest (optional) | — |
MCP_CONNECTOR_BASE |
Base used to build connector links | — |
UPLOAD_DIR / PUBLIC_BASE |
Enable the built‑in image‑upload endpoint | — |
- Bring‑your‑own‑key: each request carries the caller's own AI HomeDesign key; jobs run under that key.
- Keys never sit in the URL: the landing page validates a key, then mints an opaque
aihd_…connector token; the raw key is stored encrypted at rest (Fernet) and swapped back in per request. - Usage logging records the tool, status, and timing per call — never the raw key (only a short, non‑reversible fingerprint).
- Graceful degradation: if the database is unreachable, the server keeps serving.
MCP client (Claude, Cursor, …)
│ streamable HTTP /mcp
▼
AI HomeDesign MCP server ──► AI HomeDesign V3 API ──► result image URLs
(this repo) (api.aihomedesign.com)
The server is built on FastMCP and Starlette/uvicorn, with a pure‑ASGI auth middleware that binds the per‑request key.
Python 3.12 · MCP (FastMCP) · Starlette · uvicorn · httpx · PostgreSQL (optional) · Docker.
An MCP server exposes tools, data, and prompts to an AI model through the Model Context Protocol — an open standard introduced by Anthropic. The model discovers the available tools at runtime and calls them itself, so you never write glue code against a bespoke SDK. This repo is an MCP server whose tools happen to edit real‑estate photos.
Connect the server to Claude, then send an empty‑room photo and ask for a style —
for example "stage this living room in a scandinavian style." Claude calls the
virtual_staging tool with the right parameters and returns a downloadable,
photorealistic image. No manual editing, no design software.
The MCP server itself is open source and MIT‑licensed, so you can self‑host it at no cost. The image processing runs on the AI HomeDesign API and uses your own API key.
Yes. It speaks standard MCP over streamable HTTP, so any MCP‑compatible client — Claude Desktop, Claude in the browser, Cursor, and others — can use it.
Virtual staging furnishes an empty room. Virtual restaging swaps the
furniture in an already‑furnished room. Use interior_design when you want to
redesign a furnished room completely rather than just replace the furniture.
- 🔌 Connect in one click: aihomedesign.com/mcp
- 🌐 Website: aihomedesign.com
- 📖 Model Context Protocol: modelcontextprotocol.io
Issues and pull requests are welcome. Please open an issue to discuss substantial changes first.
Released under the MIT License.
Keywords: MCP server · Model Context Protocol · Claude MCP · Anthropic MCP · MCP tools · virtual staging · AI virtual staging · virtual staging software · home staging · virtual staging for realtors · AI home design · AI interior design · real estate photography · real estate photo editing · virtual restaging · day to dusk · image enhancement · item removal · real estate AI · PropTech.