Skip to main content
Layer provides an MCP (Model Context Protocol) server that lets you generate images, 3D assets, video, and audio directly from AI conversations — no code required.

Connect to Layer

Connect using your Layer account — recommended for most agents.
The simplest way is to add Layer as a custom connector through the UI — no config files or Node.js required.
  • Pro / Max (single seat): Open Settings > Connectors, click + Add custom connector, enter https://mcp.app.layer.ai/mcp, and click Add.
  • Team / Enterprise: Only an Owner can add a connector for the organization, via Organization settings > Connectors > Add > Custom > Web. Members then authenticate individually under Settings > Connectors.
OAuth triggers on first use — log in with your Layer account when prompted.
Custom connectors are currently in beta. The connection runs from Anthropic’s cloud, not your machine, so Layer must be reachable over the public internet (it is by default).
If your version doesn’t support custom connectors, add Layer as a local server via mcp-remote (requires Node.js):
  1. Open Settings > Developer > MCP Servers.
  2. Add this config:
  3. mcp-remote is installed automatically via npx.

Available tools

The MCP server exposes the following tools. Your AI agent selects and calls them automatically based on your prompts.

Instructions

These are called automatically to understand how to use the platform. You don’t need to invoke them directly.

Workspaces

Models

Models can be filtered by modality (image, video, three_d, audio) and by capabilities like inpainting, style_reference, text_to_3d, lipsync, and more.

Workflows

Workflows are multi-step pipelines built in the Layer app’s Blueprint editor.

Forge (direct model execution)

Forge runs a single model directly, giving you full control over parameters. Forge supports the full range of generation parameters: prompts, dimensions, batch size, style weight (LoRA strength, 0–2, default 1.0), guidance files (reference images, masks, poses, depth maps), video effects, 3D options, audio settings, and post-processing (upscale, vectorize, remove background). Style weight only affects LoRA/adapter-backed styles and is ignored for models without a trainable adapter.

Files

request_file_upload_url supports PNG, JPEG, WebP (up to 100 MB), MP4 (up to 5 GB), and WAV/MP3 (up to 64 MB). upload_file supports PNG, JPEG, WebP, and MP4 (up to 64 MB).
request_file_upload_url is available in Claude Code CLI and similar clients. It does not work in Claude.ai or Claude Desktop due to URL allowlisting restrictions.

Example prompts

Once connected, try prompts like:
  • “Generate 4 variations of a crystal sword icon on a transparent background”
  • “Show me what image models are available for my workspace”
  • “Create a 3D model of a treasure chest from this reference image”
  • “Run the product shot workflow with a photo of my item”
  • “How many Creative Units do I have left?”
Your AI agent will pick the right tools, estimate costs, run the generation, and show you the results.

Error codes

Troubleshooting

Layer doesn’t appear in my Connectors list (Claude) On a personal Pro / Max account, add it yourself under Settings > Connectors > + Add custom connector. On Team / Enterprise, an Owner must add it org-wide first (Organization settings > Connectors) — after that, authenticate it individually under Settings > Connectors. Authorization fails or times out Make sure you have an active Layer account at layer.ai. If you’re behind a VPN or corporate firewall, the OAuth redirect may be blocked — try on a direct connection. Agent doesn’t seem to use Layer tools Start a new conversation after connecting — existing conversations may not pick up new MCP servers. Check that the connector status shows as connected. Claude Code: “unknown transport” error Try --transport sse instead of --transport http — the correct flag depends on your Claude Code version. Codex: MCP server not loading Make sure mcp-remote is installed correctly. Try running npx -y mcp-remote@latest to verify. If using API Key, ensure the LAYER_PAT environment variable is set in your shell profile and you’ve restarted Codex. Cursor / VS Code / Windsurf: connection fails Verify the MCP server URL is exactly https://mcp.app.layer.ai/mcp. If using API Key, check that the Authorization header value starts with Bearer (with a space) followed by your token. Manus: tools not working Verify that your Personal Access Token is valid and the Authorization header value starts with Bearer (with a space) followed by your token. Make sure the transport type is streamableHttp in the JSON config. Gemini CLI: authentication error If using API Key, ensure the header flag is formatted correctly: --header "Authorization: Bearer YOUR_PAT". If using OAuth, the flow should trigger automatically on first tool use.