AI agents

Gemini CLI social media, run from your terminal

Gemini CLI social media work starts with one entry in your settings file that points at the OnlySocial MCP server. After you sign in and pick a workspace, Google Gemini can draft and schedule posts, read the inbox and reply to customers, while anything you mark for approval waits for a person.

One entry in settings.jsonAdd the OnlySocial address under mcpServers, sign in once, and the posting and inbox tools appear in your next Gemini CLI session.
Posts and replies in one placeAsk Gemini to plan a week of posts for 16 networks, then work through the WhatsApp and Instagram messages those posts bring in.
Limits you setApprovals, send budgets and the activity log keep a person in charge of what an agent publishes and sends on your behalf.

Why run Gemini CLI social media tasks from the terminal

Gemini CLI is the command line agent from Google that brings Google Gemini into your terminal. It reads files, runs commands and calls tools from MCP servers. If you already keep release notes, changelogs or blog drafts next to your code, Gemini CLI social media work means you can turn them into posts without leaving the window you work in.

Connect the CLI to the OnlySocial MCP server and the agent gets real tools for your workspace. It can list your connected accounts, look at what is already on the calendar, draft posts with a version per network and schedule them. It can also open the unified social media inbox, read new conversations and reply. You describe the job in plain words and the agent picks the tools.

Add the Gemini CLI MCP server in settings.json

Gemini CLI reads MCP servers from the mcpServers object in its settings.json file. Use ~/.gemini/settings.json to make OnlySocial available in every project, or .gemini/settings.json inside one project to keep it there. For a remote server over streamable HTTP, the entry uses the httpUrl key with https://app.onlysocial.io/mcp as the value. The url key is for servers that use SSE, so stick with httpUrl here.

You can also skip editing the file and run gemini mcp add --transport http onlysocial https://app.onlysocial.io/mcp, which writes the same entry for you. Start a session, sign in to OnlySocial when asked, and pick the workspace the agent should use. Gemini CLI supports OAuth for remote MCP servers, and the /mcp command lists the server, its status and its tools so you can check the Gemini CLI MCP connection worked.

Schedule posts with Gemini across 16 networks

When you schedule posts with Gemini, the agent creates them in OnlySocial for the networks you name: Instagram, Facebook, LinkedIn, TikTok, YouTube, X, Threads, Pinterest, Bluesky and the rest of the 16. Each post gets a version per network, so the caption length, hashtags and first comment fit where it lands. You can ask for a set time or for the next free slot in your queue.

Afterwards the posts sit on the calendar in the social media scheduler like any others. Open them to change the wording, swap media or move the time, and teammates can approve them before they go out. A Gemini CLI social media session is a fast way to fill the calendar, and your team still sees and controls every post.

Gemini CLI social media tasks people run every week

Most Gemini CLI social media requests fall into a few patterns. Developers announce releases from the changelog they just wrote. Marketers who live in the terminal plan the week's content in one prompt. Small teams use the agent to clear the inbox at the start of the day. Each of these is a short request, and you can watch each tool call in the terminal as the agent works.

Release announcements

Point Gemini at your release notes and ask for a LinkedIn post, an X thread and a Bluesky post. Each draft gets its own version, and you can schedule all three for the morning after the release goes live.

A week of content in one prompt

Give the agent your themes and a product list, and it drafts a post for each weekday with the right networks. Because Gemini CLI social media drafts land on the shared calendar, your team can comment and approve before anything is published.

Inbox triage before stand-up

Ask for a summary of open conversations, replies to the simple questions and tags on anyone asking about pricing or wholesale. Harder questions stay open for a person, and the activity log shows what the agent touched.

Reply to DMs and book calls with Google Gemini

The same connection reaches the Salesbot inbox. Google Gemini can read conversations from WhatsApp, Instagram, Messenger, TikTok, Telegram, SMS and your live chat widget, then reply, tag the contact, book an appointment or start one of your flows. A request such as "answer the open delivery questions and tag anyone asking about wholesale" takes one message.

Replies go through the same inbox your team and the AI sales chatbot use, so nobody loses track of who said what. Contacts keep their tags, pipeline stage and full history, and bookings land in the calendar you connected.

Approvals and send budgets for your Gemini CLI MCP agent

A terminal agent works fast, so set limits before you give it real work. Mark the actions that need a person, such as publishing a post or replying to a customer, and those actions wait in OnlySocial until someone approves them. Posts waiting for approval show on your Home page with their wording, media and timing.

Send budgets cap how many messages and posts the agent can send. When the budget runs out, further sends wait for a person. Every action the agent takes appears in the activity log, so you can see what Gemini did, when and in which workspace. Start with approvals on for everything and relax them as you learn what the agent handles well.

Scripts, webhooks and the REST API

Some jobs suit a script better than an agent. The social media API covers publishing, messaging and Link in Bio on one workspace key with scoped permissions, and webhooks tell your system when a post goes out, a message arrives or a booking is made. The reference lives at api.onlysocial.io.

Many teams use both. A webhook flags a new message, and a Gemini CLI session decides how to answer it. The social media MCP server page explains the tools every MCP app shares, and if your team also uses Claude Code, Codex or Cursor, they all connect to the same address.

# Claude Code
claude mcp add --transport http onlysocial https://app.onlysocial.io/mcp

# Cursor: ~/.cursor/mcp.json
{
  "mcpServers": {
    "onlysocial": { "url": "https://app.onlysocial.io/mcp" }
  }
}

How to set up Gemini CLI social media posting

  1. Step 1

    Open settings.json

    Open ~/.gemini/settings.json for every project, or .gemini/settings.json for one. Gemini CLI creates the folder the first time it runs.

  2. Step 2

    Add the Gemini CLI MCP entry

    Under mcpServers, add an onlysocial entry with httpUrl set to https://app.onlysocial.io/mcp, or run gemini mcp add with the http transport.

  3. Step 3

    Sign in and pick a workspace

    Start Gemini CLI, sign in to OnlySocial when asked and choose the workspace. Run /mcp to confirm the server and its tools are listed.

  4. Step 4

    Schedule posts with Gemini

    Ask in plain words, for example to schedule next week's posts or answer open delivery questions, then review the results in OnlySocial.

What OnlySocial customers say

Rated 4.4 out of 5 from 61 reviews on Trustpilot. Read every review

GOOD

Infinite accounts, API endpoint, all good.

Alessandro SmedileItaly · Apr 2026 on Trustpilot
OnlySocial Software has impressed me

The variety of available integrations is impressive, allowing the consolidation of many services, saving costs, and simplifying management.

Michael HemmersbachGermany · Jul 2024 on Trustpilot
Best all in one Social Media Automation

I have agency tier. Onlysocial is the best all in one social media manager. … You can automate tasks, social media replies and comments as well as the option to post video, images, or even a selection of selected memes.

Giancarlo BianchiSpain · Jul 2024 on Trustpilot

Gemini CLI social media FAQ

Something else? The help and API docs cover every feature.

How do I set up Gemini CLI social media posting?

Add an mcpServers entry named onlysocial to your Gemini CLI settings file with httpUrl set to https://app.onlysocial.io/mcp. Start a session, sign in to OnlySocial and pick a workspace. From then on you can ask Gemini to draft, schedule and publish posts and to work through the inbox. The MCP server page lists every tool.

Where is the Gemini CLI settings.json file?

The user settings file is ~/.gemini/settings.json, which applies to every project. A project can have its own .gemini/settings.json in its root folder, which suits a repo where only some people should see the OnlySocial tools. Both files use the same mcpServers object.

Should I use httpUrl or url for the Gemini CLI MCP server?

Use httpUrl. In Gemini CLI, httpUrl is for servers that speak streamable HTTP, and url is for servers that use Server-Sent Events. OnlySocial runs over remote HTTP, so the entry is httpUrl with https://app.onlysocial.io/mcp as the value.

Can I schedule posts with Gemini to Instagram and TikTok?

Yes. Once connected, Gemini can create and schedule posts for any of the 16 networks you connected in OnlySocial, including Instagram, TikTok, LinkedIn, YouTube and X. Posts land on your calendar in the social media scheduler, where you can edit them or send them for approval.

Can Google Gemini answer WhatsApp and Instagram messages?

Yes. Through the MCP server, Google Gemini can read conversations in the unified inbox and reply on WhatsApp, Instagram, Messenger and the other Salesbot channels. It can also tag contacts, book appointments and start flows. Replies you mark for approval wait for a teammate.

How do I stop Gemini CLI from sending too much?

Set a send budget on the connection and mark the actions you care about for approval. The budget caps how many messages and posts the agent can send, and approval-marked actions always wait for a person. The activity log shows every action the agent took.

Can my whole team use Gemini CLI social media tools on one workspace?

Yes. Each person adds the same entry to their own settings file and signs in with their own OnlySocial login, so the activity log shows who asked the agent to do what. For a shared repo, a project-level .gemini/settings.json keeps the setup in one place. Approvals and send budgets apply to every connection, and you can also connect Claude, ChatGPT or Cursor to the same workspace.

Do I need an API key to connect Gemini CLI?

No. The MCP connection uses a sign-in to OnlySocial, where you pick the workspace. Scripts that call the REST API use a workspace key with scoped permissions instead. Both are documented at api.onlysocial.io.

Start your first Gemini CLI social media task

Add OnlySocial to your settings file, sign in, set your approvals and ask Gemini to plan next week. The docs at api.onlysocial.io have the details. If you also use Claude Code, Cursor or VS Code, they connect to the same address and share the same approvals, budgets and activity log.

Scroll to Top