# Post to social media from Gemini CLI

Add PostSyncer to Gemini CLI with one command and /mcp auth, then write and schedule posts to 12 networks without leaving your terminal.

One command adds PostSyncer to Gemini CLI, and /mcp auth signs you in. From then on, ask it to read a changelog, a docs page or a list of closed issues and put a post for each network on the calendar of the 12 networks you connect.

**PostSyncer MCP address:** https://postsyncer.com/mcp

## Set up with your AI agent

Paste this prompt into Gemini CLI. It asks for your email and the 6-digit code we send there, then makes your account, or connects the one you have. Next it connects your social accounts, reads how your posts did and drafts a week of posts in your voice for you to schedule.

```text
Set up PostSyncer for me: read https://postsyncer.com/agents/setup.md and follow it.
```

The steps the prompt points at: https://postsyncer.com/agents/setup.md

## How to connect

Gemini CLI adds remote MCP servers with gemini mcp add. Add PostSyncer for your user, sign in once, and every folder you start it in has it.

1. **Add PostSyncer to Gemini CLI.** Run this in your terminal. The -s user part saves it in ~/.gemini/settings.json, so it’s there in every project and not only this folder. `gemini mcp add --transport http -s user postsyncer https://postsyncer.com/mcp`

2. **Sign in.** Start Gemini CLI and type /mcp auth postsyncer. Your browser opens to approve PostSyncer, so do this on a computer with a browser, not over SSH. `/mcp auth postsyncer`

3. **Check it’s connected.** Type /mcp. PostSyncer shows as CONNECTED, with its tools listed under it. Then ask for your first post.

**Check that it works:** Ask your AI tool to “List my PostSyncer workspaces”. It calls `list-workspaces` and shows them, and “List my connected accounts” calls `list-accounts`. No social accounts yet? Ask for a connect link (`create-account-connect-link`) and sign in on the network’s own page.

**Then try it:** “Which PostSyncer accounts can I post to? Then write a post about the latest commit in this repo and save it as a draft.”

### No browser on that machine?

Over SSH, in a container or in CI, the browser sign-in can’t open. Add PostSyncer with an Authorization header instead, and put a PostSyncer key in place of YOUR_KEY. Create the key in PostSyncer’s Settings, under API, with only the permissions it needs.

- `gemini mcp add --transport http -s user --header "Authorization: Bearer YOUR_KEY" postsyncer https://postsyncer.com/mcp`

[Gemini CLI MCP guide](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html)

Gemini CLI reaches PostSyncer at https://postsyncer.com/mcp over streamable HTTP and signs in with OAuth. The first time, it registers itself with PostSyncer, so you don’t create a client ID.

No social accounts in PostSyncer yet? Ask Gemini CLI for a connect link, open it in your browser and sign in to each network there.

## What you can ask

- “Read CHANGELOG.md and schedule a LinkedIn post and a Threads post about version 2.4 for Friday at 9am.” (`list-accounts`, `create-post`)

- “Read our brand voice, then turn the new webhooks docs page into three short posts. Keep them as drafts so I can edit them.” (`get-brand`, `list-accounts`, `create-post`)

- “Show the next 14 days of scheduled posts grouped by network, and flag any day with two posts on the same one.” (`list-posts`)

- “Move Tuesday’s Bluesky post to Wednesday, same time.” (`list-posts`, `update-post`)

- “Read the new comments on Monday’s LinkedIn post and write answers to the pricing questions. Show me before you send any.” (`list-posts`, `sync-comments-from-platforms`, `list-comments`, `create-comment`)

- “Make a link I can send my cofounder to connect our YouTube channel.” (`create-account-connect-link`)

- “How did this week’s posts do? List them from most to least engagement.” (`get-analytics-workspace`)

## Gemini CLI and PostSyncer

### It asks before it acts

Gemini CLI shows a confirmation before it calls a tool from an MCP server. You can allow a call once, always allow that tool, or always allow the whole server. A sensible split: always allow the tools that only read, like list-posts and list-accounts, and keep create-post and delete-post asking, so nothing is scheduled or removed without a look.

### Your user or one project

gemini mcp add saves to the project by default, in .gemini/settings.json. With -s user it goes to ~/.gemini/settings.json and follows you into every folder. Pick the project scope when only one repo should be able to post, such as the one that holds your changelog.

### From the repo to the calendar

Gemini CLI already reads the files in the folder you start it in. Point it at release notes, a docs page or the issues you closed this week, and ask for one post per network: a fuller one for LinkedIn, a short one for X, Threads or Bluesky. The posts land on your PostSyncer calendar, scheduled or as drafts.

### When the sign-in runs out

Gemini CLI keeps the PostSyncer sign-in in ~/.gemini/mcp-oauth-tokens.json and refreshes it by itself. If it ever stops working, run /mcp auth postsyncer again.

- /mcp shows whether PostSyncer is connected

- gemini mcp list shows it from the shell

- gemini mcp remove -s user postsyncer takes it out

## What PostSyncer offers Gemini CLI

The tools PostSyncer’s MCP server offers: the same things the app does, in the workspaces you belong to.

### Posts

- Write a post and publish it now, schedule it or save it as a draft, with its own text and settings for each network (`create-post`)

- See what’s scheduled, published, waiting for approval, drafted or failed (`list-posts`)

- Find a post by its PostSyncer ID, its public link or the network’s own post ID (`get-post`, `get-post-by-url`, `get-post-by-platform-post-id`)

- See who changed a post, what they changed and when, and whether each network posted it (`get-post-history`)

- Change a post’s text, media, accounts or time, or send a failed post again (`update-post`)

- Approve a post that’s waiting, then publish it, schedule it or keep it as a draft (`approve-post`)

- Retry publishing failed accounts on a failed or partially failed post (`retry-post`)

- Delete a post from the calendar (`delete-post`)

- Add a follow-up reply that goes out once a post reaches a number of likes, reposts, replies or views (`update-post-auto-plug`)

- Set a post’s comment rules: keyword filters, which comments to remove and AI auto-replies (`update-post-comment-moderation`)

- Read the replies under any public X post and answer a question about them (`analyze-twitter-post`)

Approving posts, comment moderation and reading an X post with AI need a paid plan.

### Accounts and workspaces

- List your workspaces: one per brand or client (`list-workspaces`)

- Make a workspace for a new brand or client, or delete one for good (`create-workspace`, `delete-workspace`)

- Read and change a workspace’s time zone, posting times and what new posts start with (`get-workspace-settings`, `update-workspace-settings`)

- See the connected social accounts, a Pinterest account’s boards and a YouTube channel’s playlists (`list-accounts`, `get-account`)

- See the sections of a Pinterest board, to put a Pin in one (`list-pinterest-board-sections`)

- Make a link where you or a client connect an account: no PostSyncer login, one use, good for 7 days (`create-account-connect-link`)

- Find people and companies to tag in a LinkedIn post, and get the exact tag to put in the text (`find-linkedin-mentions`)

- Disconnect a social account (`delete-account`)

- After you reconnect an account, put it back on the posts it was on. Posts the disconnect moved to drafts are scheduled again at their old time, if no one changed them and that time is still ahead (`put-back-account-posts`)

### Brand and snippets

- Read a workspace’s brand: who you are, how you sound, what works on each account, your competitors and your rules (`get-brand`)

- Change parts of the brand. What you set stays yours and AI won’t write over it (`update-brand`)

- Add a suggested competitor to the brand, or say it isn’t one so it’s never suggested again (`accept-brand-suggestion`, `dismiss-brand-suggestion`)

- Save sign-offs, calls to action and hashtag groups the team can drop into any post (`list-snippets`, `create-snippet`, `update-snippet`, `delete-snippet`)

### Media

- Add images, videos and PDFs to the media library from links, Google Drive and Dropbox share links included (`upload-media-from-url`)

- Put a photo or video you attach in ChatGPT straight into the library, or a small file the AI can read itself (`upload-media-file`)

- Make an upload link for a file the chat can’t pass, like a video in Claude: you open it, drop the file, and the AI gets it (`create-media-upload-link`, `get-media-upload-link`)

- Browse the media library and reuse what’s there (`list-media`, `get-media`)

- Watch a video from a post link or the library: what’s said and shown, its hook and its key points (`analyze-video`)

- Delete a file from the library (`delete-media`)

- Sort the library into folders (`list-folders`, `create-folder`, `get-folder`, `update-folder`, `delete-folder`)

Watching a video with AI needs a paid plan.

### Comments and reviews

- Read a post’s newest comments now, without waiting for the next scheduled read (`sync-comments-from-platforms`)

- Read a post’s comments and their replies (`list-comments`, `get-comment`)

- Reply to a comment, or add one of your own (`create-comment`)

- Edit or delete your comments (`update-comment`, `delete-comment`)

- Count the questions under a post nobody has answered yet, and the team threads waiting on you (`get-comment-summary`)

- List the teammates you can @mention in a post’s team comments (`list-post-people`)

- Hide a comment, like spam, on Instagram, Facebook, Threads, X or YouTube, and keep it in PostSyncer. Facebook, Instagram and YouTube can show it again. LinkedIn, Bluesky and Mastodon can’t hide one: delete it instead (`hide-comment`)

- Read your Google Business Profile reviews (`sync-reviews`, `list-reviews`, `get-review`)

- Reply to a review, change the reply or remove it (`reply-to-review`, `delete-review-reply`)

Review replies are public on Google, so the AI tool is told to use your words or ask you first. X comments are read on every plan.

### Analytics

- Totals across all your workspaces, for the dates you ask (`get-analytics-summary`)

- Totals for one workspace, with each account’s followers (`get-analytics-workspace`)

- How one account is doing, post by post (`get-analytics-account`)

- How one post did on each network (`get-analytics-post`)

- Read a post’s numbers again from the networks (`sync-post-analytics`)

On the Free plan, the summary, workspace and account numbers cover the last 7 days, and numbers are read once a day, so reading them again needs a paid plan.

### Campaigns and labels

- Group posts into a campaign, like a launch or a monthly theme (`list-campaigns`, `create-campaign`, `get-campaign`, `update-campaign`, `delete-campaign`)

- Tag posts with labels, like Promo or Client A (`list-labels`, `create-label`, `get-label`, `update-label`, `delete-label`)

Creating or changing campaigns and labels needs a paid plan.

### Webhooks

- Send signed events, like a post published or failed, to your own address (`list-webhooks`, `get-webhook`, `create-webhook`, `update-webhook`, `delete-webhook`)

- See what was sent to an address and whether it arrived (`list-webhook-deliveries`)

- Send a test event to check an address works (`test-webhook`)

### Team

- See who is on a workspace’s team, their roles, and who hasn’t accepted an invitation yet (`list-team-members`)

- Invite someone to the team by email, with a role (`invite-team-member`)

- Change a teammate’s role, or send an invitation again (`update-team-member`)

- Take someone off the team, or cancel an invitation (`remove-team-member`)

Inviting someone needs a paid plan.

### Notifications

- Read your notifications and mark them read, unread or done (`list-notifications`, `update-notifications`)

- See and change which events reach you, and where (`get-notification-settings`, `update-notification-settings`)

- Make a link to connect Slack, Discord or Telegram for alerts (`create-notification-connect-link`)

- Pick a Slack channel and the events it gets (`list-slack-channels`, `create-notification-destination`)

- Send a test message to a Slack, Discord or Telegram channel (`test-notification-destination`)

- Stop sending alerts to a channel (`delete-notification-destination`)

### Blog-to-social

- See your blog feeds, their accounts and schedule, and the posts they made (`list-blog-sources`)

- Turn a blog’s new articles into posts, as drafts or on a schedule (`create-blog-source`)

- Change a blog feed, or pause it and start it again (`update-blog-source`)

- Delete a blog feed, keeping the posts it made (`delete-blog-source`)

A feed’s posts are written with AI on paid plans.

### Products

- Save the products your posts promote, with a description, a link and hooks (`list-products`, `create-product`, `update-product`, `delete-product`)

Products need a paid plan.

### Your profile and API keys

- See your name and sign-in email, and change your name (`get-profile`, `update-profile`)

- See your API keys and their permissions, and delete one (`list-api-keys`, `delete-api-key`)

## Other AI tools that work with PostSyncer

- [ChatGPT](https://postsyncer.com/chatgpt)

- [Claude](https://postsyncer.com/claude)

- [Claude Code](https://postsyncer.com/claude-code)

- [Claude Desktop](https://postsyncer.com/claude#claude-desktop)

- [Grok Bot](https://postsyncer.com/grok-bot)

- [OpenClaw](https://postsyncer.com/openclaw)

- [Cursor](https://postsyncer.com/cursor)

- [OpenBot](https://postsyncer.com/openbot)

- [Codex](https://postsyncer.com/codex)

- [Grok](https://postsyncer.com/grok)

- [Antigravity](https://postsyncer.com/antigravity)

- [Any MCP client](https://postsyncer.com/mcp-social-media)

All of them: https://postsyncer.com/agents

## FAQ

### How do I add PostSyncer to Gemini CLI?

Run gemini mcp add --transport http -s user postsyncer https://postsyncer.com/mcp in your terminal. Then start Gemini CLI, type /mcp auth postsyncer and approve PostSyncer in the browser that opens.

### Is this the same as the Gemini app?

This page is about Gemini CLI, Google’s open-source agent for the terminal, which adds MCP servers like PostSyncer. For a chat app, PostSyncer has official plugins in ChatGPT and Claude.

### Why does Gemini CLI ask before each tool?

It asks before any MCP tool runs unless you chose to always allow that tool or the server. Allowing the read tools saves clicks; leaving the tools that create or delete posts on ask means you see every change first.

### Can I use an API key instead of signing in?

Yes, and it’s the way to go where no browser can open. Add --header "Authorization: Bearer YOUR_KEY" to the gemini mcp add command, with your key in place of YOUR_KEY. Make the key in PostSyncer under Settings, then API, with only the permissions you want Gemini CLI to have.

### Is it free?

Gemini CLI works with every PostSyncer plan, including the free plan, with no card. On Free, analytics covers the last 7 days; longer reports, campaigns and labels are on paid plans.

### Which networks can Gemini CLI post to?

All 12 PostSyncer supports, once you connect them: Instagram, TikTok, Facebook, X, LinkedIn, YouTube, Threads, Pinterest, Bluesky, Google Business Profile, Mastodon and Telegram.

---

Page: https://postsyncer.com/gemini-cli · Updated 2026-11-24
