Run your social media from Gemini CLI.
One command installs the SociaHive extension. Then plan, schedule and check your posts without leaving the terminal.
https://www.sociahive.com/api/mcpGemini CLI and SociaHive at a glance
- How it connects
- gemini extensions install, or settings.json with httpUrl
- Sign-in
- OAuth through /mcp auth, or a Bearer key header
- What you need
- A Google account or Gemini API key, plus a SociaHive trial or paid plan
- Best for
- Quick checks and posts from the terminal
- Not for
- People who would rather use a chat window than a terminal
Set it up in Gemini CLI.
Needs a SociaHive trial or paid plan.
Connect SociaHive to Gemini CLI
Your server address
https://www.sociahive.com/api/mcpGemini CLI
Gemini CLI, in your terminal
- 1
Run gemini extensions install with the SociaHive repo.
- 2
Start gemini and run /mcp auth sociahive.
- 3
Sign in to SociaHive and approve.
Then: Ask “What’s on my content calendar this week?”
Install in Gemini CLI
Extension
gemini extensions install https://github.com/sociahive/sociahive-mcp
settings.json
Or add it by hand to ~/.gemini/settings.json.
{
"mcpServers": {
"sociahive": {
"httpUrl": "https://www.sociahive.com/api/mcp"
}
}
}Things to ask first.
Copy one into a chat once you are connected.
Every scheduled post across your accounts.
Picks an item and schedules it as a normal post.
Asks you first, then publishes.
Gemini CLI MCP for social media
Gemini CLI is Google’s open-source AI agent for the terminal. It runs Gemini models, reads your files, runs commands and takes extensions that add MCP servers.
The SociaHive extension gives it your social accounts: it can check your calendar, reshare from your evergreen queue, publish after you confirm and build DM automations as drafts.
Install the extension with one command and sign in with /mcp auth sociahive. You can also add the server to settings.json, with OAuth or an API key.
Can Gemini CLI post on a schedule?
Gemini CLI runs when you start it. gemini -p runs a single prompt without the interactive screen, so a cron job you set up can start it on a timer.
SociaHive does not need it running at post time: each scheduled post goes out at its time from SociaHive’s queue.
Everything Gemini CLI can do in SociaHive.
Schedule posts
Write a post and queue it at your best time, on any account you connected.
Post right now
Publishes straight away, after you confirm in the chat.
See your calendar
Everything that is scheduled, across all your accounts.
Read your numbers
Reach, saves and engagement per post, and what to post more of.
Build DM automations
Describe it in one sentence. It builds the flow as a draft for you to turn on.
Check your automations
Which flows are live and how often each one fires.
Reuse what works
Save your best posts to an evergreen queue and reshare them later.
Move posts in bulk
Shift a whole day of posts in one go, keeping their times.
What Gemini CLI gets: the SociaHive MCP server.
One address, https://www.sociahive.com/api/mcp. The same server works in every AI tool on this site.
MCP (Model Context Protocol) is the open standard AI tools use to reach outside apps. SociaHive runs a hosted MCP server, so there is nothing to install or keep running: Gemini CLI calls it over the internet and acts in your SociaHive account. These are the tools it uses most. See every tool and the API.
| Tool | What it does |
|---|---|
| list_accounts | Lists the social accounts you connected to SociaHive. |
| create_scheduled_post | Writes a post, with text, images or video, for one or more accounts. |
| schedule_post | Queues a post at a time you pick or at your best time. |
| find_next_slot | Finds the next free slot in your posting schedule. |
| publish_post_now | Publishes straight away, after you confirm. |
| upload_media_from_url | Copies an image or video from a public link into your media. |
| get_scheduler_calendar | Shows what is scheduled, across all accounts. |
| get_post_analytics | Reads reach, likes, comments and saves per post. |
| get_content_insights | Finds which formats and topics beat your usual numbers. |
| generate_flow | Builds a DM automation from one sentence, as a draft. |
| list_flows | Lists your automations, which are live and how often they run. |
| bulk_reschedule_posts | Moves many scheduled posts in one go. |
One connection, every channel.
Connect each account once in SociaHive and Gemini CLI can post to it. Scheduling covers 22 platforms; X needs a paid plan.
DM automations run on Instagram, Facebook, Messenger and WhatsApp on every paid plan, and on Telegram on Pro and Agency.
Is it safe to let Gemini CLI post for you?
You approve the connection
Sign in to SociaHive and approve, or use an API key you can delete at any time. The agent never sees your social passwords.
Read-only if you want
Tick “Read-only access” when you connect and the agent can look at everything and change nothing.
Nothing goes live by surprise
Publishing right now asks for your yes in the chat. Automations it builds start as drafts until you turn them on.
Revoke in one click
Settings → Connected apps in SociaHive cuts the agent off on its next request. API keys are deleted under Settings → API keys.
Gemini CLI or another AI tool?
Every one of them connects to the same SociaHive account.
| Agent | Kind | How it connects | Best for |
|---|---|---|---|
| Gemini CLI | Coding agent | gemini extensions install, or settings.json with httpUrl | Quick checks and posts from the terminal |
| Claude Code | Coding agent | The SociaHive plugin, or claude mcp add with the server address | Bulk work from files: CSVs, changelogs, release notes |
| Cursor | Coding agent | The Add to Cursor link, or mcp.json with the server address | Announcing what you ship without leaving the editor |
| Codex | Coding agent | codex mcp add, or an [mcp_servers] entry in config.toml | Turning releases and diffs into posts |
| ChatGPT | Chat assistant | A custom MCP plugin on chatgpt.com, with the SociaHive server address | Writing captions and scheduling them in the same chat |
| OpenAI dots | Autonomous agent | Custom MCP server added in ChatGPT, then allowed for the dot | Watching your calendar and automations between check-ins |
What does it cost?
Gemini CLI is free to install. A personal Google account comes with a free daily allowance, and paid plans or an API key raise it. See Google’s Gemini CLI docs for the current limits.
On SociaHive, MCP access is part of the 7-day trial and every paid plan, from Creator up. There is no extra charge per tool call. See plans.
Included in the trial.
And on every paid plan. 7-day free trial for the paid features. No credit card required.
Connect Gemini CLITroubleshooting Gemini CLI.
- gemini extensions install fails
- Update Gemini CLI to a version with extensions, check that you can reach github.com, then run the command again.
- SociaHive says it needs authentication
- Run /mcp auth sociahive inside gemini and approve in SociaHive. /mcp lists each server and whether it is connected.
- It asks me to upgrade
- MCP access is part of the SociaHive trial and every paid plan. On the free plan the agent can connect, but each request answers with an upgrade link.
- An account is missing
- The agent only sees accounts connected in SociaHive. Connect it under Connected accounts, then ask the agent to list your accounts again.
- A post did not go out
- Ask the agent for the post’s status, or open it in SociaHive. A failed post shows the platform’s reason, for example an expired login that needs reconnecting.
- It says it is not allowed to change anything
- You connected with read-only access. Remove SociaHive under Settings → Connected apps and connect again without ticking it.
FAQ
What does the extension add?
The SociaHive MCP server, set up for Gemini CLI. Run gemini extensions update sociahive to get new versions.
Can I use an API key instead of signing in?
Yes. Add a headers entry with Authorization: Bearer and your key next to httpUrl in settings.json.
Is Gemini CLI the same as the Gemini app?
No. The Gemini app is a chat app; Gemini CLI is Google’s agent for the terminal. This page is about Gemini CLI.
Can I run it from a script?
Yes. gemini -p runs one prompt and exits, so a script or cron job can ask it to schedule posts or pull a report.
Can it publish a post right now?
Yes, after you confirm. It shows what it is about to publish and waits for your yes before the post goes out.
Can it post or change things without asking me?
Automations it builds start as drafts, with every step written out, until they are turned on. Publishing a post right away needs your yes in the chat. If you only want it to look, tick “Read-only access” when you connect: it can read everything and change nothing.
Which plans include it?
The 7-day trial and every paid plan. On the free plan your assistant can still connect, but each request answers with a link to upgrade instead of running.
How do I disconnect it?
Open Settings → Connected apps in SociaHive and revoke it. It is cut off on its very next request. You can also remove the connector in your assistant.


