n8n
Agent in n8n — the MCP Client Tool node
- Add the MCP Client Tool tool to the AI Agent node.
- Endpoint —
https://mcp.smartpdf.ru/mcp, Server Transport — HTTP Streamable. - Authentication — Bearer Auth; put only the
sk_live_…key in the credentials — n8n adds the wordBeareritself. - Select the SmartPDF tools the agent needs.
For a regular workflow step without an agent, there’s the MCP Client node with the same settings.
Without an agent — HTTP Request
Fixed workflows are more reliable when built on the REST API with HTTP Request nodes:
POST https://api.smartpdf.ru/v1/upload— Form-Data body, fieldfilewith the binary data;X-API-Keyheader.POST https://api.smartpdf.ru/v1/pdf/<operation>— JSON with thefile_idfrom step 1.- Waiting: a loop with Wait and
GET https://api.smartpdf.ru/v1/tasks/{task_id}until the status isdone— or a webhook to a Webhook node. GET https://api.smartpdf.ru/v1/tasks/{task_id}/downloadand downloaddownload_url.
Operation parameters are in the Operations section.