Use saved CLI credentials
convertrilo-mcp reads the API key saved by convertrilo login, so local clients do not need to duplicate secrets in every config file.
Agent guide
Install @convertrilo/sdk, save an API key with the CLI, configure convertrilo-mcp in an MCP client, and verify the available video encoding tools.
The Convertrilo MCP server is a local stdio server for agents and workflow tools. It exposes a narrow set of video encoding tools while using the same credentials and API behavior as the CLI and SDK.
npm install -g @convertrilo/sdk
convertrilo login
{
"mcpServers": {
"convertrilo": {
"command": "convertrilo-mcp"
}
}
}Node.js 22.13 or newer.
An MCP client that supports local stdio server commands.
A scoped Convertrilo API key from Developer Settings.
The @convertrilo/sdk npm package installed globally or available by absolute path.
Recipe
These guides focus on primitives that can be reused by dashboards, queue workers, scripts, CLIs, MCP tools, and agent runtimes.
Install the npm package to get both convertrilo and convertrilo-mcp.
Run convertrilo login or set CONVERTRILO_API_KEY in the MCP client environment.
Add convertrilo-mcp as a stdio server command in your MCP client config.
List tools in the client and verify get_token_balance before creating an encode job.
convertrilo-mcp reads the API key saved by convertrilo login, so local clients do not need to duplicate secrets in every config file.
Expose only the Convertrilo MCP server to agents that need video encoding, then use scoped keys for job creation, status reads, cancellation, and tokens.
Call get_token_balance first. Once authentication works, create an encode job with explicit codec, resolution, quality, and idempotency instructions.
No. The current server uses stdio. Configure your MCP client with the command convertrilo-mcp, or point it at a local dist/src/mcp.js build during development.
Run convertrilo login --open to open Developer Settings, then paste the key into the CLI. MCP will reuse the saved key unless CONVERTRILO_API_KEY is set.
create_encode_job, get_job_status, wait_for_job, cancel_job, and get_token_balance.
Choose your codec, resolution, FPS, bitrate, quality, and optimization settings. Convertrilo shows the NEU estimate before credits are reserved, and failed jobs release reserved credits back to your balance.