Purpose
This package is the MCP Server implementation in the official Transloadit Node.js SDK repository, used to expose Transloadit's file processing and media transcoding capabilities to AI clients as MCP tools. It is built on @transloadit/node and supports both Streamable HTTP and stdio transports.
Main capabilities
- Provides tools such as transloadit_create_assembly and transloadit_wait_for_assembly for creating and waiting for Assembly results.
- Provides account-related tools such as transloadit_list_templates and transloadit_get_profile.
- Provides the transloadit_search_docs and transloadit_get_doc document retrieval and reading tools, which can search the website's full-text documentation index and read Markdown with pagination.
- Provides transloadit_lint_assembly_instructions to locally validate the complete merged Assembly instructions.
- The create and wait tools are associated with the MCP Apps resource ui://transloadit/assembly-result, supporting image, video, and audio previews, download links, opening in Console, and saving as a Template.
- Each tool carries title, readOnlyHint, destructiveHint, idempotentHint, and openWorldHint annotations; transloadit_create_assembly is the only tool marked as destructive.
Usage
- Hosted connection (recommended): enter in the MCP client https://api2.transloadit.com/mcp,客户端会通过 The OAuth authorization code + PKCE flow opens the Transloadit Console consent page and saves a short-lived token and a refresh token.
- Claude.ai / Claude Desktop: enter the above URL in Settings → Connectors → Add custom connector.
- ChatGPT / Codex: the plugin manifest is located in this package's directory and points to the hosted server and the Agent Skills directory; Codex can log in again via codex mcp login transloadit.
- Self-hosting: set TRANSLOADIT_KEY and TRANSLOADIT_SECRET and then run the server; clients can start it via stdio; in HTTP mode you can use commands such as npx -y @transloadit/mcp-server http --host 127.0.0.1 --port 5723.
- CI and headless agents: via the CLI (npx -y @transloadit/node auth token --aud mcp), the API (POST https://api2.transloadit.com/token)或 The Node SDK's client.mintBearerToken({ aud: 'mcp' }) generates a Bearer Token, which is passed in via Authorization: Bearer <token>.
- The interactive CLI can run npx -y @transloadit/node auth login to use the device flow and reuse stored credentials.
Use cases
Suitable for developers and teams that need to call Transloadit from AI clients for file processing, media transcoding, template management, documentation queries, and instruction validation, and also suitable for CI, headless agents, and self-hosted deployment scenarios.
Limitations and caveats
- The hosted endpoint returns 401 for all unauthenticated requests and triggers OAuth, including the Robot documentation and lint tools; to use these tools without an account, you must host the server yourself.
- When the self-hosted HTTP mode binds to a non-localhost host, TRANSLOADIT_MCP_TOKEN must be set (or TRANSLOADIT_MCP_RESOURCE_METADATA_URL in hosted mode).
- TRANSLOADIT_MCP_TOKEN and TRANSLOADIT_MCP_RESOURCE_METADATA_URL cannot be used at the same time.
- The Auth Key's signing algorithm must match: Keys that are allowed by default in the Console to sign Smart CDN URLs require sha256, so TRANSLOADIT_SIGNATURE_ALGORITHM=sha256 must be set; other Keys default to sha384.
- transloadit_lint_assembly_instructions does not automatically fetch the Template specified by template_id; you must first resolve it and merge the overrides before validating.
- The documentation search and read tools have a 10-second timeout; search queries must be 2–200 characters, limit is 1–20 with a default of 8; page reads have max_chars of 1,000–50,000 with a default of 15,000.
- Browser request origins are restricted by allowedOrigins, which by default allows ChatGPT, Claude, Transloadit, and loopback origins; CLI/server requests without an Origin header are not restricted.
- Hosted mode requires TRANSLOADIT_MCP_UPSTREAM_SECRET to be set; self-hosted mode does not.
- The result component preview domain can be overridden via TRANSLOADIT_MCP_RESULT_DOMAINS or resultDomains, which by default allows https://.transloadit.com、https://.transloadit.net、https://*.r2.dev。
- Directory reads have a 3-second total timeout and are not retried; when the directory service is down, reviewed names are discovered with lenient fields, and the current contract is still fetched and validated at execution time.
- Social captioning is deferred; transcription language hints do not translate speech.
- Some environment variables and configuration items (such as TRANSLOADIT_MCP_METRICS_PATH, TRANSLOADIT_MCP_METRICS_USER, TRANSLOADIT_MCP_METRICS_PASSWORD, TRANSLOADIT_MCP_WIDGET_DOMAIN, TRANSLOADIT_MCP_CONSOLE_URL, TRANSLOADIT_ENDPOINT) are optional; see the official documentation for specific default values.