Gemini CLI + PostDovo MCP

How to Schedule Social Media Posts with Gemini CLI

Connect Google’s terminal AI agent to PostDovo, create platform-specific drafts, and schedule approved posts without leaving the command line.

A practical 5-step MCP setup guide, including browser sign-in, an access-token alternative, and a copy-ready publishing prompt.

5 setup stepsInstallation, MCP, sign-in, and connection test
19 platform optionsPublish supported posts to connected social accounts
Starter: $0/monthUp to five accounts and unlimited Single Post scheduling
How it works

Use Gemini CLI to Manage Social Media with MCP

Gemini CLI is Google’s open-source AI agent for the terminal. Its support for Model Context Protocol (MCP) lets it work with external tools, including PostDovo’s social media publishing functions.

Gemini CLI→PostDovo MCP→Connected social accounts

Ask Gemini CLI to prepare Facebook and LinkedIn captions, save drafts, check connected accounts, or arrange approved publishing dates. PostDovo handles the supported publishing operations; you don’t need to integrate each social platform’s API separately.

Important: Gemini CLI account eligibility changed in June 2026

On June 18, 2026, Google ended Gemini CLI access through the former free individual Gemini Code Assist flow and Google AI Pro/Ultra consumer plans, directing affected users toward Antigravity. Gemini CLI continues to support eligible Gemini Code Assist Standard/Enterprise and supported paid API or Google Cloud authentication methods.

This is a Google model-access restriction, not a PostDovo subscription restriction. Check Google’s account-transition notice before installing.

What you’ll need

Node.js 20 or newer if installing with npm, an eligible Gemini CLI authentication method, internet access, and a PostDovo workspace with the social accounts you want to manage.

Illustrated walkthrough

Connect Gemini CLI to PostDovo in 5 Steps

Install→Add MCP→Start CLI→Authorize→Verify
01

Install Gemini CLI

Open PowerShell or Command Prompt on Windows, or Terminal on macOS or Linux. Check your Node.js version:

Terminal
node --version

If you’re below Node.js 20 or Node isn’t installed, get a compatible version from nodejs.org. Then install Gemini CLI:

Install Gemini CLI
npm install -g @google/gemini-cli

Confirm the installation:

Version check
gemini --version
Other installation methods: Homebrew, MacPorts, npx
MethodCommand
Homebrew (macOS/Linux)brew install gemini-cli
MacPorts (macOS)sudo port install gemini-cli
npx (no global install)npx @google/gemini-cli

If using npx, launch with npx @google/gemini-cli instead of gemini. On Windows, if PowerShell blocks npm scripts, use Command Prompt or npm.cmd.

02

Add the PostDovo MCP Server

Run this complete command in your terminal:

Add PostDovo globally
gemini mcp add --scope user --transport http postdovo https://app.postdovo.com/mcp
Illustration of adding PostDovo MCP server in Gemini CLI
Add PostDovo as an MCP server. Use the complete URL in the command above.

–scope user keeps the connection available across your folders by saving it to ~/.gemini/settings.json. Without that flag, an untrusted project may produce “Cannot modify settings in an untrusted workspace.”

https://app.postdovo.com/mcp

The illustration may show a generic server-address placeholder. Always use the actual PostDovo MCP endpoint shown here.

03

Start Gemini CLI

Start the agent
gemini

On first launch, configure your Google model authentication through an eligible enterprise account or supported paid API/Google Cloud option. This is separate from signing in to PostDovo.

04

Authorize PostDovo in Your Browser

Inside the interactive Gemini CLI session, type:

Gemini CLI command
/mcp auth postdovo

If browser OAuth is supported by your environment, the PostDovo authorization page opens. Sign in, review the requested permissions, and select Approve, then return to Gemini CLI.

Illustration of Gemini CLI PostDovo OAuth authentication and browser approval
Authenticate PostDovo in Gemini CLI and approve access in your browser.

No browser on your machine? Use the access-token method below. It is an alternative to browser OAuth, not an additional mandatory step.

05

Check That PostDovo Is Connected

Still inside Gemini CLI, enter:

View MCP connections
/mcp

Find postdovo in the MCP server list. A successful connection should display a connected status with available tools.

Illustration of the Gemini CLI MCP list showing PostDovo connection status and tools
Check PostDovo’s connection status and available MCP tools. Your actual tool list may differ.

From an ordinary terminal outside the CLI session, you can also run gemini mcp list.

Try a safe, read-only check first
Using PostDovo, show my current workspace and connected social media accounts. Do not create, schedule or publish anything.

If Gemini CLI returns the expected workspace and accounts, the read-only integration test succeeded. This does not by itself prove publishing was tested.

Visual walkthrough

Watch: Connect Gemini CLI to PostDovo

Use the video walkthrough to follow the terminal commands, browser authorization, connection verification and your first publishing request.

Gemini CLI + PostDovo setup tutorial
Your video will appear here after you replace
PASTE_YOUTUBE_URL_HERE
with the complete YouTube link.
Try your first request

Schedule Social Media Posts with Gemini CLI

After the read-only connection check, use a short prompt to prepare a multi-day plan for your connected Facebook and LinkedIn accounts.

Example Gemini CLI prompt
Using PostDovo, prepare 3 days of text-only posts about https://postdovo.com for Facebook and LinkedIn.

Write a unique caption for each platform. Schedule one post per platform daily at 7 PM London time, starting tomorrow.

Keep all posts in one group. Show me the complete plan for approval before creating or scheduling anything.
Copy and paste this prompt into Gemini CLI. Approve the proposed action only after reviewing it.
3publishing days
2social platforms
6platform-specific posts
7 PMEurope/London

The prompt requests six platform-specific text posts in one group. These are expected results, not confirmation that a post was created or scheduled. Check the accounts, captions, calendar dates and timezone before approving.

What Can Gemini CLI Do Through PostDovo?

Supported operationUse case
Draft creation and editingPrepare posts without immediate publication
Platform-specific captionsCustomize copy for connected social accounts
Media attachmentAttach compatible images or videos to drafts
Scheduling and unschedulingManage approved publishing dates and times
Account and workspace checksInspect authorized social profiles and posts
Immediate publishingPublish only after the required preview and explicit approval

Single Post vs. Generate Campaign: These MCP publishing tools support PostDovo’s Single Post workflow, including grouped posts for multiple accounts and dates. The separate Generate Campaign feature automatically creates multi-day content from a website or topic.

For image and video posts, confirm the file has actually been attached through a supported operation. Mentioning a local file path does not automatically upload the media, and each destination has its own requirements.

Where you can publish

Supported Social Media Platforms

PostDovo provides 19 social media connection options. Actual publishing depends on the connected account and each platform’s content-format rules.

Social media platformCreateSchedulePublish
Facebook✓✓✓
Instagram (Facebook Business)✓✓✓
LinkedIn✓✓✓
LinkedIn Company Page✓✓✓
Instagram (Standalone)✓✓✓
X (Twitter)*✓✓✓
Pinterest✓✓✓
TikTok✓✓✓
YouTube✓✓✓
Bluesky✓✓✓
Threads✓✓✓
Mastodon✓✓✓
Telegram✓✓✓
Discord✓✓✓
Dribbble✓✓✓
LINE✓✓✓
Nostr✓✓✓
Lemmy✓✓✓
Tumblr✓✓✓

* X (Twitter): Credits are required to publish on X, including scheduled posts. ✓ indicates a platform has supported publishing functionality; it does not mean every post format is accepted.

Connect Your Social Media Accounts

Open PostDovo, select Connect Accounts, and authorize the social platforms you want to manage. Gemini CLI works only with the accounts available in the PostDovo workspace it is authorized to access.

Optional authentication

No Browser? Connect with a PostDovo Access Token

If your machine cannot complete browser OAuth—for example, when using a remote server—you can use a PostDovo access token instead.

1. Create a tokenIn PostDovo, open Access Tokens and create a token for Gemini CLI.
2. Configure the MCP serverAdd an HTTP server entry in your user-level Gemini CLI settings.
3. Restart and verifyRestart Gemini CLI and check the connection with /mcp.

Open ~/.gemini/settings.json (Windows: %USERPROFILE%\.gemini\settings.json). Under mcpServers, configure PostDovo as follows:

Gemini CLI settings.json
{
  "mcpServers": {
    "postdovo": {
      "httpUrl": "https://app.postdovo.com/mcp",
      "headers": {
        "Authorization": "Bearer ${POSTDOVO_TOKEN}"
      }
    }
  }
}

Do not overwrite existing settings. If the file already includes other options or MCP servers, modify only the postdovo entry and preserve everything else. Don’t add a second duplicate PostDovo connection.

Set the token using your environment configuration, or use Gemini CLI’s user-level file ~/.gemini/.env (Windows: %USERPROFILE%\.gemini\.env):

Gemini CLI .env
POSTDOVO_TOKEN=YOUR_ACTUAL_POSTDOVO_TOKEN
Illustration of Gemini CLI settings file with PostDovo HTTP MCP server and Authorization bearer token
Alternative token configuration. The illustration uses a simplified token placeholder; the environment-variable approach above is recommended.
Protect your access token

Never share your token or commit it to a public repository. It is separate from your Google model API key. Revoke it through PostDovo if it is exposed. Browser OAuth and bearer-token authentication are alternatives; choose one.

Start free

Is Gemini CLI Social Media Scheduling Free?

PostDovo Starter costs $0/month and includes compatible AI-agent connectivity and unlimited Single Post scheduling for up to five connected social accounts.

$0/ month · PostDovo Starter
Starter featureIncluded
Social accountsUp to 5
Workspaces1
Single Post creationUnlimited
Single Post schedulingUnlimited
Supported AI-agent connectivityIncluded
Single Post publishingUnlimited, except X credit requirements

Google’s model access may have a separate cost; credit-based AI generation and posting to X have separate PostDovo credit requirements. PostDovo Starter’s $0 rate is current pricing, not a promise of an unchangeable lifetime price.

Prefer the Gemini app? Here’s how to connect Gemini on the web and desktop.

Troubleshooting

Fix Common Gemini CLI Connection Problems

“gemini” is not recognized

Confirm Node.js and Gemini CLI are installed with node –version and gemini –version. Install the CLI using npm install -g @google/gemini-cli, then reopen the terminal if needed.

“Cannot modify settings in an untrusted workspace”

Register PostDovo at user scope with –scope user instead of saving the MCP server to a project folder.

Google account cannot sign in to Gemini CLI

Check the June 18, 2026 account-eligibility change. The former individual / Google AI Pro or Ultra consumer login route is no longer supported for Gemini CLI. Use a currently supported model authentication method.

PostDovo is disconnected

Run /mcp, verify https://app.postdovo.com/mcp, complete browser OAuth if using it, or check that your token is valid and available. Restart Gemini CLI after editing settings.

Browser authorization does not open

Retry /mcp auth postdovo. For environments without a working browser authorization flow, use the access-token method above.

Facebook or LinkedIn accounts are missing

Open PostDovo → Connect Accounts and confirm that your accounts are authorized in the correct workspace. Adding an MCP server does not itself connect external social profiles.

Frequently asked

Gemini CLI + PostDovo FAQs

Can Gemini CLI schedule social media posts?

Yes. Gemini CLI can use supported PostDovo MCP tools to prepare drafts and schedule approved posts to connected accounts.

Do I need a separate PostDovo plugin for Gemini CLI?

No. Gemini CLI supports a direct HTTP MCP server connection using the gemini mcp add command.

Does it support Facebook, Instagram and LinkedIn?

Yes, through compatible PostDovo tools and properly connected social accounts. Publishing restrictions depend on the destination platform.

Is the integration free with PostDovo?

PostDovo Starter is $0/month with supported AI-agent access and unlimited Single Post scheduling. Google model access and some credit-based publishing may have separate costs.

Can I connect without browser OAuth?

Yes. Configure PostDovo using its access token and a bearer authorization header, especially on headless servers.

How do I disconnect Gemini CLI from PostDovo?

Run gemini mcp remove –scope user postdovo. Also revoke OAuth access from PostDovo → AI Agents or revoke the token in Access Tokens, as appropriate. Removing the local server entry alone does not invalidate existing credentials.

Start Scheduling Social Media Posts with Gemini CLI

Connect PostDovo, verify your social accounts, and try the three-day prompt above. Review the captions and proposed schedule before approving publishing actions.

Connect up to five social accounts with PostDovo Starter for $0/month.