Gemini + MCP: Schedule Social Media Posts with Gemini CLI
AI assistants & MCP

How to Use Gemini with MCP to Schedule Social Media Posts

By the SiteAutopilot team · Updated · 3 min read

Quick answer

Gemini CLI, Google's open-source command-line agent, supports MCP servers. Create a SiteAutopilot access key under Account → MCP, add the server URL and an Authorization header to the mcpServers section of ~/.gemini/settings.json, and restart Gemini CLI. Gemini can then read your brand profile, write posts and schedule them for one company.

Google's Gemini can schedule your social media posts too, through Gemini CLI, Google's open-source agent for the terminal, which supports MCP servers. This guide shows the setup in a few minutes, even if you rarely use a terminal.

Gemini app or Gemini CLI?

Check your Gemini app settings for custom connectors first. If you cannot add your own MCP server there, Gemini CLI is the reliable route: it reads MCP servers from a settings file and works on macOS, Windows and Linux.

Set it up

  1. Install Gemini CLI by following the instructions on its GitHub page, and sign in with your Google account.
  2. Create an access key in MySiteAutopilot under Account → MCP. Choose "MCP client" and the company to post for. Copy the key; it is shown once.
  3. Add the server to ~/.gemini/settings.json:
{
  "mcpServers": {
    "siteautopilot": {
      "httpUrl": "https://mysiteautopilot.ai/mcp",
      "headers": { "Authorization": "Bearer mcpk_your_key" }
    }
  }
}
  1. Restart Gemini CLI and type /mcp. You should see the SiteAutopilot tools.

Keep the key private. Anyone with it can post for that company. You can revoke it any time under Account → MCP.

Prompts to try in Gemini CLI

  • "Read the brand profile and suggest a week of posts."
  • "Write three LinkedIn drafts about our new service."
  • "Suggest open posting times and schedule the drafts in them."
  • "Summarise what we published in the last 30 days."

Why marketers use a CLI agent

A terminal agent is handy for batch work: turning a folder of notes or a product feed into a month of drafts, or generating posts from a spreadsheet. Because Gemini CLI can read local files, you can say "write one post for each product in products.csv and save them as drafts".

Other assistants

The same server works with Claude, ChatGPT and Claude Code. See connect Claude, connect ChatGPT, or the setup for Claude Code, Cursor and other clients.

Frequently asked questions

Does the Gemini app support MCP connectors?

Check your Gemini app settings for custom connectors. If they are not available to you, use Gemini CLI, which supports remote MCP servers.

Why does Gemini CLI use an access key instead of a sign-in?

The SiteAutopilot sign-in is set up for Claude and ChatGPT. Other clients connect with an access key, which works for one company and can be revoked any time.

Is Gemini CLI free?

Gemini CLI is open source and has a free usage tier with a Google account. A paid SiteAutopilot plan is needed for the connector.

Sources