# DocRaptor — MCP server on mcp.ai > Connect your DocRaptor account and use 10 tools for developer tools straight from your AI agent. Connect with your own API key. The best and easiest HTML-to-PDF API. By: mcp.ai · official Page: https://mcp.ai/docraptor ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_docraptor?ms=1787293560000 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/docraptor/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/docraptor/ 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/docraptor/skill.md Postman collection (v2.1): https://mcp.ai/docraptor/postman.json ## Tools - docraptor_create_async_doc(tag?: string, help?: boolean, name: string, test?: boolean, strict?: string, pipeline?: string, referrer?: string, javascript?: boolean, callback_url?: string, document_url?: string, document_type: string, prince_options?: object, document_content?: string, hosted_expires_at?: string, hosted_download_limit?: integer, ignore_resource_errors?: boolean, ignore_console_messages?: boolean) — Tool to create documents asynchronously from HTML content. Use when generating PDF, XLS, or XLSX documents and you need to poll for completion status or use a callback URL for notification. Returns a - docraptor_create_doc(tag?: string, help?: boolean, name: string, test?: boolean, strict?: string, pipeline?: string, referrer?: string, javascript?: boolean, callback_url?: string, document_url?: string, document_type: string, prince_options?: object, document_content?: string, hosted_expires_at?: string, hosted_download_limit?: integer, ignore_resource_errors?: boolean, ignore_console_messages?: boolean) — Tool to create a PDF or Excel document synchronously from HTML content or URL. Use when you need to generate a document file from HTML data. The document is returned immediately as a downloadable file - docraptor_create_document_from_referrer(name?: string, type?: string, javascript?: boolean, prince_option_media?: string) — Tool to convert webpages into documents using referrer-based authentication without an API key. Use when you need to generate PDFs or Excel files from registered domains without explicit API credentia - docraptor_create_hosted_async_doc(tag?: string, help?: boolean, name: string, test?: boolean, strict?: string, pipeline?: string, referrer?: string, javascript?: boolean, callback_url?: string, document_url?: string, document_type: string, prince_options?: object, document_content?: string, hosted_expires_at?: string, hosted_download_limit?: integer, ignore_resource_errors?: boolean, ignore_console_messages?: boolean) — Tool to create a hosted document asynchronously. Use when you need to generate a PDF, XLS, or XLSX document and track its completion status via callback_url or the status API. - docraptor_get_async_doc(id: string) — Tool to download a completed asynchronous document using the download URL from status response. Use when you have a download_id and need to retrieve the generated document file. - docraptor_get_async_doc_status(id: string) — Tool to check the status of an asynchronously created document. Use when monitoring progress of async documents by polling for completion status. - docraptor_list_documents_json(page?: integer, per_page?: integer) — Tool to retrieve a paginated list of previously created documents with metadata in JSON format. Use when you need to see document creation history or query past documents. - docraptor_list_documents_xml(page?: integer, per_page?: integer) — Tool to retrieve a paginated list of previously created documents with metadata in XML format. Use when you need to see document creation history or query past documents in XML format. - docraptor_list_ips_json() — Tool to get list of IP addresses that DocRaptor uses to download assets. Use when you need to know which IPs DocRaptor uses for asset downloading. Note: Using IPs for securing assets is not recommende - docraptor_list_ips_text() — Tool to retrieve a list of IP addresses that DocRaptor uses to download assets in plain text format. Use when you need to identify DocRaptor's IP addresses for network configuration or security purpos ## Example prompts - "What can I do in DocRaptor?" - "Show me a summary of my DocRaptor account" ## Links Docs: https://mcp.ai/docs/mcps/docraptor Website: https://mcp.ai/mcps/docraptor