# Cloudlayer — MCP server on mcp.ai > Connect your Cloudlayer account and use 16 tools for documents straight from your AI agent. Connect with your own API key. cloudlayer.io is a document and asset generation service that enables users to dynamically create PDFs and images through a REST-based API, SDKs, or no-code integrations. By: mcp.ai · official Page: https://mcp.ai/cloudlayer ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_cloudlayer?ms=1787295720000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/cloudlayer/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/cloudlayer/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/cloudlayer/skill.md Postman collection (v2.1): https://mcp.ai/cloudlayer/postman.json ## Tools - cloudlayer_add_storage(name: string, path?: string, region: string, provider: string, accessKey: string, container: string, secretAccessKey: string) — Add a user-owned S3-compatible storage configuration for storing generated assets. This action allows Enterprise plan users to configure their own S3-compatible storage (AWS S3, DigitalOcean Spaces, W - cloudlayer_convert_html_to_image(html: string, trim?: boolean, async?: boolean, delay?: integer, scale?: number, width?: integer, height?: integer, inline?: boolean, storage?: boolean|object, timeout?: integer, webhook?: string, filename?: string, timeZone?: string, viewPort?: object, imageType?: string, landscape?: boolean, projectId?: string, waitUntil?: string, autoScroll?: boolean, transparent?: boolean, generatePreview?: object, waitForSelector?: object, preferCSSPageSize?: boolean) — Convert HTML content to an image (PNG, JPG, or WebP) using the v2 API endpoint. Renders the provided HTML string using a headless browser and returns job details with the generated image asset. Suppor - cloudlayer_convert_html_to_pdf_v2(html: string, async?: boolean, delay?: integer, scale?: number, width?: string, format?: string, height?: string, inline?: boolean, margin?: object, storage?: boolean|object, timeout?: integer, webhook?: string, filename?: string, timeZone?: string, viewPort?: object, landscape?: boolean, projectId?: string, waitUntil?: string, autoScroll?: boolean, pageRanges?: string, footerTemplate?: object, headerTemplate?: object, generatePreview?: boolean|object, printBackground?: boolean, waitForSelector?: object, preferCSSPageSize?: boolean) — Tool to convert HTML content to PDF using CloudLayer v2 API. Use when you need to generate a PDF from raw HTML with advanced options like custom paper size, margins, headers/footers, and viewport sett - cloudlayer_convert_url_to_pdf_get(url: string, timeout?: integer) — Tool to convert a URL to PDF using GET request. Use when you need quick PDF conversion with minimal parameters and immediate result. - cloudlayer_delete_storage(id: string) — Tool to delete a specific user storage configuration. Use when you need to remove an external bucket configuration by its ID after confirming the ID is correct. - cloudlayer_get_account_info() — Tool to retrieve Cloudlayer account usage, credits, and document counts. Use when monitoring account limits and subscription status. - cloudlayer_get_asset(id: string) — Tool to retrieve a specific asset by its ID. Use when you need to fetch metadata or download URL of an existing asset after its generation. - cloudlayer_get_job_by_id(id: string) — Retrieve details of a specific Cloudlayer job by its ID. Use this to check the status of an async job, get the asset download URL after completion, or view job parameters. Returns 401 if the job ID do - cloudlayer_get_status() — Tool to test API reachability. Use when checking if the Cloudlayer API is available. - cloudlayer_get_storage_by_id(id: string) — Tool to retrieve a specific storage configuration by its ID. Use when you need to inspect or validate details of a user storage configuration. - cloudlayer_list_assets(limit?: integer, start_after_id?: string) — List assets in your CloudLayer account with cursor-based pagination. Returns PDFs and images generated via HTML/URL conversion jobs. Use this to find asset IDs for further operations like downloading - cloudlayer_list_jobs(limit?: integer, start_after_id?: string) — List jobs in your CloudLayer account with cursor-based pagination. Use when you need to view your recent jobs and their statuses. - cloudlayer_list_storage() — Retrieves all user storage configurations (S3-compatible buckets) for the authenticated Cloudlayer account. Use this to view configured external storage destinations where generated documents can be s - cloudlayer_template_to_pdf(data: string, async?: boolean, delay?: integer, format?: string, inline?: boolean, margin?: object, storage?: boolean|object, filename?: string, template?: string, landscape?: boolean, autoScroll?: boolean, pageRanges?: string, templateId?: string, footerTemplate?: string, headerTemplate?: string, generatePreview?: object|boolean, printBackground?: boolean, preferCSSPageSize?: boolean) — Generate a PDF document from an HTML/Nunjucks template with dynamic data. Provide either: - A `templateId` for predefined templates from CloudLayer's template library, OR - A base64-encoded `template` - cloudlayer_url_to_image_post(url: string, clip?: object, trim?: boolean, delay?: integer, scale?: number, inline?: boolean, cookies?: object[], headers?: object, quality?: integer, timeout?: integer, filename?: string, timeZone?: string, viewPort?: object, imageType?: string, userAgent?: string, waitUntil?: string, autoScroll?: boolean, transparent?: boolean, authentication?: object, generatePreview?: object, waitForSelector?: object) — Converts a webpage URL to an image (PNG, JPG, or WebP). Supports custom viewport settings, wait conditions, transparency, auto-scroll, and thumbnail preview generation. The API is asynchronous - use t - cloudlayer_url_to_pdf_post(url: string, delay?: integer, scale?: number, width?: string, format?: string, height?: string, inline?: boolean, margin?: object, cookies?: object[], timeout?: integer, filename?: string, viewPort?: object, landscape?: boolean, projectId?: string, waitUntil?: string, autoScroll?: boolean, pageRanges?: string, authentication?: object, footerTemplate?: string, headerTemplate?: string, printBackground?: boolean, preferCSSPageSize?: boolean) — Tool to convert a URL to PDF with full parameter support. Use when you need advanced control over paper size, margins, headers/footers, or webhook callbacks. ## Example prompts - "What can I do in Cloudlayer?" - "Show me a summary of my Cloudlayer account" ## Links Docs: https://mcp.ai/docs/mcps/cloudlayer Website: https://mcp.ai/mcps/cloudlayer