English
LazyRelay
← Back to guides

Post to Social Media from Gemini CLI

Connect LazyRelay's MCP server to Google's Gemini CLI and schedule, check, and verify social posts right from your terminal.

What you can ask Gemini

The part most AI-agent schedulers skip

Most integrations stop at the API call — the agent asks for a post, the API says 200 OK, and that's treated as done. It isn't. Rate limits, silent moderation holds, and platform-side failures can all eat a "successful" request. LazyRelay's list_scheduled_posts tool returns real Proof-of-Publish status, so you can ask Gemini to check whether a post actually went live, not just whether the request was accepted.

Setup

  1. From a terminal, run:
    gemini mcp add --transport http lazyrelay https://mcp.lazyrelay.com/mcp
  2. Gemini CLI detects that the server requires OAuth (it responds with a 401) and walks you through signing in with your LazyRelay account automatically — no client ID or secret to configure by hand.

This adds the server to your user-level config (~/.gemini/settings.json); add -s project to the command instead to scope it to the current project's .gemini/settings.json. All 28 tools are available, covering scheduling, drafts, approvals, reschedule and pause, platform rules, analytics, client review links and more. Full tool reference (every tool, with what it does) at lazyrelay.com/docs.

Don't have an API key yet? An API key is a secret code that lets your assistant use your account. Open More, then API Keys in your dashboard, type a name and create one. It is available on every plan, including Free.

See plans and get started free

How we know: the setup for Gemini CLI was checked against Gemini CLI's own documentation when this guide was written (2 September 2026). We have not run it ourselves. If a step looks different on your version, tell us at support@lazyrelay.com and we will fix this page.