Native MCP Support
Don't build a UI if you don't have to. YourSpaceLab exposes a Model Context Protocol (MCP) server that lets Claude, Gemini, and other agents use our tools directly.
- ➜Staging (Furnish empty rooms)
- ➜Defurnish (Remove furniture)
- ➜Credits (Check balance)
# Install locally
cd repositories
git clone https://github.com/repop0/yourspacelab-mcp.git
cd yourspacelab-mcp
npm install && npm run build
# Configuration (claude_desktop_config.json)
{
"mcpServers": {
"yourspacelab": {
"command": "node",
"args": ["/absolute/path/to/yourspacelab-mcp/build/index.js"],
"env": {
"YSL_API_KEY": "ysl_..."
}
}
}
}Simple REST API
Standard JSON API. 3 lines of code to transform real estate.
POST
/v1/stagingGenerate a virtually staged image from an empty room photo. Supports style customization.
curl -X POST https://app.yourspacelab.com/api/v1/staging \
-H "Authorization: Bearer $YSL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/room.jpg",
"room_type": "living",
"style": "scandinavian"
}'POST
/v1/defurnishIntelligently remove existing furniture to create a clean canvas. Cost: 1 credit per image.
curl -X POST https://app.yourspacelab.com/api/v1/defurnish \
-H "Authorization: Bearer $YSL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image_url": "https://example.com/messy.jpg"
}'