On this page
Connect Qencode to Gemini
Gemini connects to Qencode through the Gemini CLI. You will install and authenticate the CLI first, then add the Qencode MCP server to its settings file.
- Open your terminal and install the Gemini CLI globally using npm or Homebrew. Skip this step if you already have it set up.
# Via npm npm install -g @google/gemini-cli # Via Homebrew (macOS / Linux) brew install gemini-cli - Get a Gemini API key. Go to aistudio.google.com/app/apikey, click Create API key, name it, choose a project, then copy the key.
- Start the CLI:
If prompted to trust the folder, choose Trust folder. At the authentication prompt, select Use Gemini API Key, paste the key, and press Enter. The CLI stores it in your system keychain.
gemini - Open your Gemini configuration file in a text editor:
- macOS / Linux:
~/.gemini/settings.json - Windows:
%USERPROFILE%\.gemini\settings.json
- macOS / Linux:
- Add Qencode inside the
mcpServersblock, then save the file:{ "mcpServers": { "qencode": { "httpUrl": "https://mcp.qencode.com/mcp", "timeout": 30000, "trust": false } } } - Close and reopen your terminal session, then start Gemini again:
gemini - Authorize Qencode by running the following inside the Gemini CLI prompt:
When asked to continue, choose Yes.
/mcp auth qencode - A browser window opens to the Qencode authorization page. Sign in with your Qencode account, review the requested permissions, choose your project from the dropdown, then click Allow. The browser confirms authentication and you can return to the terminal.
- Confirm the connection by running:
Qencode should appear in the list with a ready status, alongside the video processing tools it provides.
/mcp
Need More Help?
For additional information, tutorials, or support, visit the Qencode Documentation page or contact Qencode Support at support@qencode.com.