On this page
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.

  1. 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
  2. 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.
  3. Start the CLI:
    gemini
    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.
  4. Open your Gemini configuration file in a text editor:
    • macOS / Linux: ~/.gemini/settings.json
    • Windows: %USERPROFILE%\.gemini\settings.json
  5. Add Qencode inside the mcpServers block, then save the file:
    {
      "mcpServers": {
        "qencode": {
          "httpUrl": "https://mcp.qencode.com/mcp",
          "timeout": 30000,
          "trust": false
        }
      }
    }
  6. Close and reopen your terminal session, then start Gemini again:
    gemini
  7. Authorize Qencode by running the following inside the Gemini CLI prompt:
    /mcp auth qencode
    When asked to continue, choose Yes.
  8. 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.
  9. Confirm the connection by running:
    /mcp
    Qencode should appear in the list with a ready status, alongside the video processing tools it provides.

Need More Help?

For additional information, tutorials, or support, visit the Qencode Documentation pageLink or contact Qencode Support at support@qencode.com.