09Manage servers with AI
Connect Gemini CLI to Nexthosting Connect – guide
How to connect the Gemini command line to Nexthosting Connect with a command or an extension and manage your Nexthosting servers in the terminal.
In short
One command adds the server: gemini mcp add --transport http nexthosting-connect https://mcp.nexthosting.net/mcp. After that, you sign in to Nexthosting in Gemini CLI with /mcp auth nexthosting-connect.
How to connect Gemini CLI
Section titled “How to connect Gemini CLI”-
Run this command in the terminal:
Terminal window gemini mcp add --transport http nexthosting-connect https://mcp.nexthosting.net/mcpWith
-s user, the entry applies to all projects, otherwise only to the current one. -
Start Gemini CLI and enter:
/mcp auth nexthosting-connect -
The browser opens with a Nexthosting page. Sign in and choose the permissions. The first time, only Read is preselected. Gemini CLI is not one of the verified apps, so the page shows you its return address.
By hand in settings.json
Section titled “By hand in settings.json”{ "mcpServers": { "nexthosting-connect": { "httpUrl": "https://mcp.nexthosting.net/mcp" } }}httpUrl stands for Streamable HTTP. The field url would be the older SSE connection and does not fit.
As an extension
Section titled “As an extension”Gemini CLI can also install the entry as an extension. It lives in the public repository github.com/nexthostingdotnet/nexthosting-connect.
gemini extensions install https://github.com/nexthostingdotnet/nexthosting-connectFrequently asked questions
Section titled “Frequently asked questions”Gemini CLI does not find the sign-in.
Section titled “Gemini CLI does not find the sign-in.”Start the sign-in with /mcp auth nexthosting-connect and check that a browser is available on the machine. On a server without a browser, sign in on another machine.