Use Layer’s AI models directly from Claude and other MCP-compatible clients
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 using your Layer account — recommended for most agents.
Claude.ai / Claude Desktop
Claude Code (CLI)
Codex
Manus
Cursor
Windsurf
Gemini CLI
VS Code
Amp
OpenCode
Warp
Zed
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).
Older clients: add Layer with a local config file
If your version doesn’t support custom connectors, add Layer as a local server via mcp-remote (requires Node.js):
OAuth triggers automatically on first use — log in with your Layer account when prompted.
Connect using a Personal Access Token (PAT) — works with any MCP client.First, generate a PAT in Layer: go to User Settings > New Token and copy the token (starts with pat_).
Claude.ai / Claude Desktop
Claude Code (CLI)
Codex
Manus
Cursor
Windsurf
Gemini CLI
VS Code
Amp
OpenCode
Warp
Zed
Open Settings > Developer > MCP Servers.
Add this config (replace YOUR_PAT with your token):
Forge runs a single model directly, giving you full control over parameters.
Tool
Description
estimate_forge_price
Check the Creative Unit cost for a generation
execute_forge
Run inference on a model (async — returns an inference_id)
get_forge_run
Poll for forge run status and generated assets
Forge supports the full range of generation parameters: prompts, dimensions, batch size, guidance files (reference images, masks, poses, depth maps), video effects, 3D options, audio settings, and post-processing (upscale, vectorize, remove background).
Get a signed upload URL for a local file (image, video, or audio)
upload_file
Upload a file from a public URL for use as input in workflows or forge
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.
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.