Skip to main content

Connect Tolstoy MCP to Gemini CLI

Connect Studio MCP or Library MCP to Gemini CLI.

Written by Nimrod Popper

Before you start

Choose which Tolstoy MCP connection you want to add. The client setup steps are the same for Studio MCP and Library MCP; the URL is the part that changes.

  • Studio MCP: generate and iterate on Studio images or videos.

  • Library MCP: browse, search, inspect, rename, or favorite Tolstoy library assets.

Studio MCP URL:  https://apilb.gotolstoy.com/mcp/v1/mcp
Library MCP URL: https://apilb.gotolstoy.com/mcp/v1/library/mcp

How to connect Gemini CLI

  1. Run the setup command in your terminal. Replace <MCP_URL> with the Studio or Library MCP URL.

gemini mcp add --transport http tolstoy <MCP_URL>

  1. Run gemini.

  2. The first tool call opens a browser tab on localhost. Sign in with your Tolstoy account.

  3. Gemini will call the Tolstoy tools and return results inline.

After you connect

Return to Use the Tolstoy MCP for examples, prompt patterns, and troubleshooting.

Did this answer your question?