MyArchitectAI MCP server
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MyArchitectAI MCP server Turn this house sketch into a photorealistic exterior render: https://example.com/sketch.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MyArchitectAI MCP server
A Model Context Protocol (MCP) server for the MyArchitectAI rendering API. It gives MCP-compatible assistants (Claude Code, Claude Desktop, Cursor, …) tools to generate photorealistic architectural renders, edit images, change textures and atmosphere, animate renders, generate prompts, transfer styles, create images from text, and upscale to 4K/8K — plus tools to preview, save, and track results.
Features
API tools (charged in USD, except balance):
Tool | What it does | Required | Optional |
| Photorealistic exterior render from a sketch, drawing, 3D screenshot, or photo |
|
|
| Photorealistic interior render |
|
|
| Apply a reference image's style to a source image |
|
|
| Generate an architectural image from text |
|
|
| Describe an image as a render prompt (plain text) |
| — |
| Apply an edit instruction |
|
|
| Retexture masked surfaces |
|
|
| Change interior lighting or exterior atmosphere |
| Additional exterior controls, |
| Animate a frame or transition between frames (video URL) |
|
|
| Upscale to 4K or 8K |
|
|
| Legacy 4K endpoint; prefer |
|
|
| Read the current account balance without a charge | — | — |
Stdio quality-of-life tools (no API charge):
Tool | What it does |
| Fetch a URL and return the image inline, so the assistant (and GUI clients) can see it |
| Download an image URL to disk |
| Check an input URL is a reachable image before a paid generation |
| Session totals: requests, USD spent, last-known balance |
| Recent image/video/text results, cost, balance and request IDs |
Image inputs accept a public HTTPS URL reachable by MyArchitectAI or an inline data:image/<mime>;base64,<payload> URI. Output formats are endpoint-specific: upscale accepts jpg/webp/png, but PNG is unavailable at 8K and AVIF is unsupported. Text-to-image dimensions are 128–2048px. Requests have a 10 MB body limit; prefer URLs for large inputs.
The API responds synchronously, streaming while it works. Animation typically takes 60–90 seconds, or 20–30 seconds with speed: "fast"; configure your MCP host's tool timeout to accommodate it. Image utilities do not preview or download videos; open the returned animation URL in a video-capable client.
The stdio server exposes 17 tools, covering all 12 API operations in the published API reference. The hosted connector exposes those 12 API operations. API contract maintenance describes the snapshot and automated drift checks.
Related MCP server: mcp-image
Install
Local stdio installations require Node.js 24 or newer. Use a current patch release of a supported LTS version; CI covers Node 24 and 26. Node 18, 20 and 22 are no longer supported. Hosted connector users do not need to install Node.js.
You need a MyArchitectAI API key — create one in the portal. It
is passed via the MYARCHITECTAI_API_KEY environment variable and sent as the x-api-key header.
Requests also include x-myarchitectai-source: mcp for reported usage attribution; this marker grants no permissions.
Claude Code
claude mcp add myarchitectai \
--env MYARCHITECTAI_API_KEY=your-api-key \
-- npx -y @myarchitectai/mcpClaude Desktop
Add to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"myarchitectai": {
"command": "npx",
"args": ["-y", "@myarchitectai/mcp"],
"env": { "MYARCHITECTAI_API_KEY": "your-api-key" }
}
}
}Cursor, Windsurf, VS Code, and other MCP hosts
Use the same stdio launch — command npx, args ["-y", "@myarchitectai/mcp"], with
MYARCHITECTAI_API_KEY in env — in that host's MCP config. (Note: VS Code's config uses the key
servers, not mcpServers.)
Claude Code plugin
For one-command setup with a bundled image-compare skill and a /render workflow, install the
companion plugin: myarchitectai-claude-plugin.
/plugin marketplace add MyArchitectAI/myarchitectai-claude-plugin
/plugin install myarchitectai@myarchitectaiDocker
A Dockerfile is included. Build and run the stdio server (keep stdin attached with -i; no port
is exposed):
docker build -t myarchitectai-mcp .
docker run -i -e MYARCHITECTAI_API_KEY=your-api-key myarchitectai-mcpConfiguration
Variable | Required | Default | Description |
| yes | — | Your API key (sent as |
| no |
| Override the API base URL. |
| no |
| Total call timeout including retries, backoff and body in ms (1000–600000). |
| no |
| Safe retries inside the total timeout, 0 disables (0–10). |
| no |
| Directory |
| no |
| Max bytes |
| no | — | Optional path to persist generation history across restarts. |
Stdio requests have a 64 MiB buffer limit, enough for the base64 representation of the largest supported inline preview (50,000,000 image bytes). For larger source images, preview_image and save_image accept a local file path or HTTPS URL. Clients requesting large inline previews must also allow the corresponding response size; otherwise keep MYARCHITECTAI_MAX_PREVIEW_BYTES within the client's response limit. Tool arguments are limited to 10,000 object members and array elements before schema validation. Hosted requests retain their separate 1,000,000-byte default body limit.
Behavior
Success → a text summary listing the generated image URL(s), cost, and balance, plus
structuredContentof the shape{ output: string[], balance: number, cost: number, requestId?: number }.auto_promptreturnsoutput: stringcontaining text;balancereturns only{ balance }. Amounts are USD. Request IDs are preserved for support.API/validation errors (bad input, invalid key, rate limits, server errors) are returned as tool results with
isError: trueand a clear message. Public safety errors includestructuredContentwith{ error, code, balance?, cost?, requestId? }; absent fields remain absent. API output schemas declare separate strict success and public safety alternatives, so clients can validate errors after discovering tools. Other hosted errors keep upstream details masked.Content safety:
CONTENT_POLICY_VIOLATIONreturnsRequest blocked by content policy; its positivecostremains charged even though there is no usable output.SAFETY_CHECK_UNAVAILABLEreturnsContent safety check unavailableand follows the automatic refund path;costbecomes0once the refund succeeds. If the refund fails,costmay remain positive; trust the returned finalcostandbalance. Both preserve the API'scode,balance,costandrequestIdwhen provided, including streamed HTTP 200 failures. Neither triggers an automatic retry or provider fallback, even at HTTP 429/502. An unavailable check may be retried later only by an explicit caller decision.Session usage:
usage_summary.totalCostand per-tool costs include retained positive policy charges. Successful generation totals, per-tool counts andlist_recent_generationsstill include successful outputs only; rejected requests incrementfailedGenerations. WithMYARCHITECTAI_STATE_FILE, successful history, failure count, retained charges and the last-known balance are saved together. Existing history-only files remain readable.Safe retries: direct paid operations retry ordinary HTTP 429 and 502 responses, which the API guarantees were not charged; safety codes always take precedence. Hosted paid operations are never retried automatically. Unknown outcomes (network errors, timeouts and other 5xx responses) are never automatically replayed. Read-only balance lookups can retry transient failures. Backoff, every attempt and response-body consumption share one
MYARCHITECTAI_TIMEOUT_MSbudget. Inspect the API request log before manually retrying an uncertain paid call.
API diagnostics are JSON lines on stderr; stdout remains the MCP protocol channel. Logs include endpoint, status, outcome, duration and request ID without prompts, media, keys or response bodies. No production analytics or error telemetry is sent.
Keeping the API current
npm run build
npm run api:check # registered tools against the reviewed snapshot
npm run api:check:live # also compare with the current published OpenAPI
npm run api:update # refresh snapshot; then align code and testsCI checks the live contract on PRs, main pushes and manual dispatch. A spec change fails the check and requires review; runtime capabilities never change silently.
Authentication
The stdio server authenticates to the MyArchitectAI API with an API key (x-api-key) from your environment. It also sends x-myarchitectai-source: mcp as a client-reported analytics marker, separate from authentication. Credential handling is isolated in src/config.ts and the client's header injection. The executable is myarchitectai-mcp; the generic mcp alias has been removed. Existing npx -y @myarchitectai/mcp configurations still select the package's single executable.
The repository also prepares an OAuth-protected stateless Streamable HTTP connector for the company's Vercel account. It verifies an audience-bound OAuth token and delegates the 12 existing API operations to the API Portal backend with a separate signed internal request. The hosted runtime uses API Portal accounts and API balance. Portal retains customer keys, ownership checks and billing. Hosted MCP has no history store, Redis, or local media utilities; stdio retains its existing tools and local history. The connector is live at https://mcp.myarchitectai.com/mcp (OAuth 2.0 with dynamic client registration via portal.myarchitectai.com). See the integration contract, hosted runtime configuration, and production deployment setup. The deployment workflow is production-only; there are no preview deployments. Hosted paid calls through Portal are never automatically retried, because an intermediary error cannot prove that generation was uncharged.
Contributing
Contributions are welcome — please open an issue or PR. The published npm package is built from this repository.
Use the latest Node 24 LTS patch release and its bundled npm for development and release tooling. The .nvmrc file selects this major version for local development and workflow setup; run nvm install and nvm use after cloning if you use nvm. The container uses Node 24. Vercel currently selects Node 24 for the package's >=24 engine range, but can select a newer major when it becomes available on Vercel; this range does not pin the managed runtime. The npm package supports Node 24 or newer; CI builds and tests on Node 24 and 26.
git clone https://github.com/MyArchitectAI/myarchitectai-api-mcp.git
cd myarchitectai-api-mcp
npm install
npm run build # compile TypeScript to dist/
npm run typecheck # strict type-check of src + tests
npm test # unit + integration tests (node:test)
node scripts/smoke.mjs # spawn the built server and list its tools over stdio
npm run smoke:remote # built HTTP server, synthetic accounts only; no API chargesRun npm run build && npm run typecheck && npm test before submitting a PR.
To point an MCP host at your local build instead of the published package, use the command
node with args ["/absolute/path/to/dist/index.js"].
Project layout
src/
index.ts entry point: load config, register tools, serve over stdio
config.ts env loading/validation + server identity
client.ts HTTP client: auth, timeout, retries, response/error mapping
errors.ts typed error hierarchy (retryable vs not)
schemas.ts Zod input/output schemas (mirror the API)
tools.ts tool registration + result/error formatting
media.ts image fetch/save/preview helpers (the QoL tools)
session.ts in-memory (optionally persisted) generation history
test/ node:test suites (config, client, media, session, end-to-end MCP)
docs/ DISTRIBUTION.md — per-host coverage & transport notesReleasing (maintainers)
Published as @myarchitectai/mcp via npm
Trusted Publishing (OIDC) — no token is stored. CI runs
build/typecheck/tests on every push and PR; pushing a vX.Y.Z tag triggers
.github/workflows/release.yml, which publishes with provenance.
npm version patch # or minor / major — bumps package.json and creates the tag
git push --follow-tagsOne-time setup: publish once manually (npm publish --access public) so the package exists, then
attach the GitHub Actions trusted publisher under the npm package's Settings → Trusted Publisher
(organization MyArchitectAI, repository myarchitectai-api-mcp, workflow release.yml).
License
MIT © MyArchitectAI
Available Tools
17 toolsanimateAnimate ImageAInspect
Animate a start frame with a motion prompt and optional end frame. Returns a VIDEO URL; image preview/save utilities do not support videos. Standard speed usually takes 60–90 seconds and fast about 20–30 seconds; set the MCP host tool timeout accordingly. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Inputs: prompt (required), startFrameUrl (required), speed, endFrameUrl. Returns: code, cost, error, output, +2 more
auto_promptAuto PromptAInspect
Analyze an image and return a descriptive render prompt as plain text, not a URL. Charges the API account; cost and balance are in USD.
Inputs: image (required). Returns: code, cost, error, output, +2 more
balanceCheck Account BalanceARead-onlyIdempotentInspect
Fetch the current API account balance in USD without spending USD. Unlike usage_summary, this reads the live balance.
Inputs: no named parameters. Returns: code, cost, error, balance, +1 more
change_texturesChange TexturesAInspect
Retexture masked surfaces while preserving geometry. Mask white = change, black = keep. Provide exactly one of referenceImage or prompt. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Inputs: mask (required), image (required), prompt, outputFormat, +1 more. Returns: code, cost, error, output, +2 more
edit_by_promptEdit by PromptAInspect
Edit an image with a natural-language instruction, optionally using an attached reference image. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Inputs: image (required), prompt (required), referenceImage. Returns: code, cost, error, output, +2 more
list_recent_generationsList Recent GenerationsARead-onlyInspect
List recent generations from this session (tool, time, output URLs, cost, balance) so you can re-preview or reuse an earlier result without regenerating it — and without spending USD.
Inputs: limit. Returns: generations
preview_imagePreview ImageARead-onlyInspect
Load an image and return it inline so you (the agent) and GUI clients can actually see it — useful for inspecting a generation result before continuing. Accepts a public HTTPS URL, an inline base64-encoded data:image URI, or a local file path. Optionally also opens it in the default browser when a display is available. Does not charge the API account.
Inputs: url (required), open.
render_exteriorRender ExteriorAInspect
Generate a photorealistic exterior render from a CAD export, sketch or photo. Optionally guide it with a prompt. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Inputs: image (required), outputFormat (required), prompt. Returns: code, cost, error, output, +2 more
render_interiorRender InteriorAInspect
Generate a photorealistic interior render from a CAD export, sketch or photo. Optionally guide it with a prompt. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Inputs: image (required), outputFormat (required), prompt. Returns: code, cost, error, output, +2 more
save_imageSave ImageAInspect
Save an image to local disk (defaults to the configured download directory) and return the saved file path. Accepts a public HTTPS URL, an inline data:image/;base64, URI, or a local file path. Generation output URLs are public but may expire, so saving keeps a permanent copy. Consumes no API balance.
Inputs: url (required), dir, filename. Returns: path, bytes, mimeType
set_atmosphereSet AtmosphereAInspect
Relight interiors or change exterior atmosphere. Interior requires lighting only. Exterior requires at least one of timeOfDay, season or weather and rejects lighting. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Inputs: image (required), sceneType (required), season, weather, +3 more. Returns: code, cost, error, output, +2 more
style_transferStyle TransferBInspect
Transfer a reference image style onto an architectural image, with optional prompt, negativePrompt and styleTransferStrength (0–1). Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Inputs: image (required), outputFormat (required), referenceImage (required), prompt, +2 more. Returns: code, cost, error, output, +2 more
text_to_imageText to ImageAInspect
Generate an architectural image from text. Choose width and height (128–2048 pixels) and png, jpg or webp format. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Inputs: prompt (required), outputWidth (required), outputFormat (required), outputHeight (required), +1 more. Returns: code, cost, error, output, +2 more
upscaleUpscale to 4K or 8KAInspect
Upscale to 3840 (4k) or 7680 (8k) pixels on the longer side. Defaults to 4k and jpg. At 8k, only jpg or webp output is available. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Inputs: image (required), outputFormat, targetResolution. Returns: code, cost, error, output, +2 more
upscale_4kUpscale to 4K (legacy)AInspect
Deprecated compatibility tool for 4K upscaling. Prefer upscale, which supports explicit 4k/8k targets. No avif output. Image inputs accept public HTTPS URLs or image data URIs. Charges the API account; cost and balance are in USD.
Inputs: image (required), outputFormat. Returns: code, cost, error, output, +2 more
usage_summaryUsage SummaryARead-onlyInspect
Report this session's MyArchitectAI usage: number of generations, total USD spent, the last known balance (from the most recent generation — no paid call), and a per-tool breakdown. Spend includes retained content policy charges; generation counts include successful outputs only. Does not charge the API account.
Inputs: no named parameters. Returns: since, byTool, totalCost, lastKnownBalance, +3 more
validate_image_urlValidate Image URLARead-onlyInspect
HEAD-check that a URL is reachable and returns an image, before using it as a render input (which would otherwise spend money on a request guaranteed to fail). Does not charge the API account.
Inputs: url (required). Returns: ok, bytes, status, isImage, +1 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools map to clearly distinct operations (interior vs exterior render, texture swap vs atmosphere, preview vs save vs validate). The one real overlap is upscale_4k versus upscale, which is mitigated by an explicit deprecation note but still leaves two tools that do the same job. The editing family (edit_by_prompt, style_transfer, change_textures, set_atmosphere) is distinguishable but requires reading descriptions carefully.
All names are snake_case, but the grammatical pattern is mixed: verb_noun (render_exterior, save_image, validate_image_url), bare verbs (animate, upscale), noun_noun (style_transfer, usage_summary, text_to_image), and noun-only (balance). Readable, but there is no single predictable convention an agent can rely on to guess a tool name.
17 tools for a broad image-generation-plus-utility surface is on the heavy side, and one of them (upscale_4k) is a deprecated duplicate of upscale that earns no place. The rest of the surface is reasonably justified by the split between paid generation tools and free inspection/cost tools.
Coverage is strong: generation (text, exterior, interior), editing (prompt, style, texture, atmosphere), upscaling, animation, plus asset inspection/saving and cost tracking. Minor gaps remain — no explicit job status/cancel for long-running animate calls, no mask-authoring helper for change_textures, and no batch operations.
Maintenance
Related MCP Connectors
Generate images, video and audio in Claude, Codex and any MCP-ready AI agent.
Direct AI video, image, music and storyboard production from any MCP client.
Generate images, video, audio and short films with 140+ AI models from any MCP client.
AI video, image and audio generation with 140+ AI models from any MCP agent
Related MCP Servers
FlicenseAqualityBmaintenanceEnables AI-driven interior, exterior, and landscape design, photoreal rendering, image editing, video generation, and 3D model creation directly inside Claude, Cursor, VS Code, and other MCP clients. It also supports virtual staging, sketching to render, texture and pattern generation, background removal, and architectural consultation through natural language.24497 npm-- AlicenseNot gradedqualityAmaintenanceEnables AI assistants in MCP clients to generate and edit images by automatically expanding short requests into detailed prompts with composition, lighting, and camera direction, then saving results to disk. Supports Gemini, OpenAI, and BytePlus Seedream providers with selectable quality presets, aspect ratios, and image sizes.1,038 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables assistants in any MCP client to generate new images or edit existing ones, automatically enriching short requests with composition, lighting, and camera details before sending them to Gemini, OpenAI, or BytePlus Seedream. Supports quality presets, aspect ratios, image sizes, character consistency, blended inputs, and Google Search grounding for current information.1,038 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables assistants in any MCP client to generate new images and edit existing ones by automatically enriching short requests with composition, lighting, and camera detail before routing them to Gemini, OpenAI, or BytePlus Seedream. Supports selectable quality presets, aspect ratios, image sizes, and saved output files returned as resources.1,038 npmMIT