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
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>
Run
gemini.The first tool call opens a browser tab on localhost. Sign in with your Tolstoy account.
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.