# How to schedule social media posts from Gemini with MCP
> Connect DunSocial hosted MCP to Gemini CLI (or the Managed Agents API), verify your workspace, draft in your voice, then schedule with human confirm.
- Published: 2026-09-25
- Last updated: 2026-09-25
- Author: Sanju (Founder & CEO @ DunSocial)
- Topics: mcp, gemini
---
Gemini can call hosted MCP tools too, & Google just made the remote-MCP path a first-class one, not only in **Gemini CLI**, but now in the **Managed Agents API** for developers building their own Gemini-powered agents.
The useful how-to is not "paste a caption into Gemini." It is add DunSocial's hosted MCP, finish OAuth, verify the workspace, draft in your voice, then schedule with **human confirm**. It's the same loop as the Claude, ChatGPT, Codex, & Grok how-tos in this series.
## Short answer
Add DunSocial's hosted MCP as an HTTP server in Gemini CLI using `https://api.dunsocial.com/api/mcp` (`gemini mcp add --transport http`), let the CLI's OAuth auto-discovery handle sign-in for your workspace, then verify with a read-only account list before drafting.
Ask Gemini to draft in your saved voice, show copy, destinations, time, & timezone, then confirm. DunSocial keeps **human confirmation** in front of publish for AI-written work. The hosted MCP exposes **53 tools** for posts, drafts, memory, media, workspaces, & personalization, included in the **USD 20/mo** or **USD 192/yr** plan (**14-day** trial, no card; extra seats USD 8/mo).
Posts land on the same calendar as the web app, CLI, Claude, ChatGPT, Codex, & Grok flows, tagged MCP. See [/mcp](/mcp).
| Step | Action | Surface |
| --- | --- | --- |
| 1 | Add hosted MCP URL `https://api.dunsocial.com/api/mcp` as an HTTP-transport server | Gemini CLI (`gemini mcp add`) |
| 2 | OAuth: CLI auto-discovers DunSocial's OAuth metadata, opens a browser to sign in & pick a workspace | Gemini CLI `/mcp auth` |
| 3 | Read-only verify: list accounts & name the workspace | Hosted MCP tools |
| 4 | Draft in voice, show copy/time/timezone, confirm, then schedule | Same calendar as web & CLI |
## What's new: Gemini's remote MCP support
Google [announced expanded Managed Agents support in the Gemini API](https://blog.google/innovation-and-ai/technology/developers-tools/expanding-managed-agents-gemini-api/) in July 2026, adding background execution, credential refresh, &, the part that matters here, **remote MCP server integration**: a managed agent can now call a hosted MCP server directly through an `mcp_server` tool type, passed alongside built-in tools like `google_search` & `code_execution` at interaction-creation time. That's exactly the kind of remote MCP server DunSocial's hosted endpoint is.
This sits alongside **Gemini CLI**, which has supported remote MCP servers (including OAuth-authenticated ones) for a while, & is the more direct path for most people reading this. See below.
## Prerequisites
Before Gemini can schedule anything useful:
1. A DunSocial account on the USD 20/mo or USD 192/yr plan (or an active 14-day trial).
2. Social networks connected in the DunSocial web app first. MCP cannot create network logins for you.
3. **Gemini CLI** installed, for the practical how-to below. (If you're wiring DunSocial into your own agent via the Managed Agents API instead, see the note at the end of this section.)
If MCP isn't available on the Gemini surface you're using, stop and use the [web app](https://app.dunsocial.com/login), the [CLI](/cli), or another supported client from [/agents](/agents) instead of inventing a different auth path.
## Add the DunSocial MCP server in Gemini CLI
DunSocial's hosted endpoint is the same URL every sibling client uses:
The fastest setup is the CLI's own `add` command:
Or add it directly to `settings.json` (`~/.gemini/settings.json` for user scope, `.gemini/settings.json` for a project):
Gemini CLI supports OAuth 2.0 for remote MCP servers & can auto-discover the OAuth configuration when the server exposes it. DunSocial's hosted MCP does, via OAuth Protected Resource Metadata & dynamic client registration, so you don't need to hand-configure a client ID. On first use the CLI detects that DunSocial requires auth, opens a browser to sign in, & lets you pick a workspace & grant scopes; run `/mcp auth` inside the CLI at any point to manage that connection or re-authenticate. Do **not** paste a long-lived access token into a `headers` field for this setup. Prefer the OAuth flow.
Ask before approving OAuth on someone else's behalf, & never type another person's password. Product overview: [/mcp](/mcp). Agents: [/agents](/agents).
**Building your own agent on the Managed Agents API instead?** Its `mcp_server` tool type takes a static `headers` map (e.g. `Authorization: Bearer ...`) rather than an interactive browser flow: a server-to-server shape, not the OAuth connector this page walks through. DunSocial's hosted MCP is OAuth-first & doesn't currently publish a bearer credential for that flow in the product UI, so for a custom Managed Agents integration, check [/mcp](/mcp) for the current state before building against it.
## Verify workspace before you write
After authorization, start with a read-only request:
If the workspace is wrong or expected accounts are missing, stop. Connect or switch those accounts in the DunSocial web app, then return to Gemini. MCP uses the accounts already linked to the workspace you approved in OAuth. It cannot create an X, LinkedIn, Instagram, or other network login for you.
Why this step matters: assistants are fast. A wrong workspace can schedule into the wrong brand calendar. Thirty seconds of verify saves a cleanup later. The Claude, ChatGPT, Codex, & Grok how-tos lead with the same habit.
## Draft in voice, then schedule with confirm
Give Gemini a source you trust: a release note, changelog, or approved campaign brief. Ask for a draft that uses your saved **AI Memory** & **Voice Presets**, then preview before anything is timed.
Review exact copy, destinations, time, timezone, & media. When ready, tell Gemini to schedule. DunSocial requires **human confirmation** before an MCP-created post can publish. Scheduled work lands on the same calendar as the web app, tagged **MCP**. Draft-only work stays editable in the web app later.
## What the 53 tools cover (high level)
DunSocial hosted MCP exposes **53 tools**. You don't need to memorize every name:
| Group | What Gemini can do |
| --- | --- |
| Posts | List, get, schedule, publish now, threads, reschedule, cancel, delete |
| Drafts | List, get, create, update, delete |
| Memory | Collections, save, batch save, semantic search, update, delete |
| Media | List, upload, complete, delete |
| Workspaces | List, details, members, social accounts, Pinterest boards |
| Personalization | Get & update the workspace AI voice profile |
Full tool map: [/mcp](/mcp).
Platforms on the same plan: X, LinkedIn, Instagram, Threads, Bluesky, Reddit, Pinterest, YouTube Shorts, Discord, & Slack; TikTok limited beta. That's 10 generally available networks. Connect accounts in the app first, then schedule from Gemini against that shared calendar.
## Gemini vs Claude vs ChatGPT vs Codex vs Grok vs CLI
The hosted MCP URL is the same everywhere. Only the client connector UI changes.
| Path | When to use it | Entry |
| --- | --- | --- |
| Gemini hosted MCP (this page) | Gemini CLI is your daily terminal assistant | [/mcp](/mcp) |
| Claude hosted MCP | Claude.ai / Desktop / mobile is your daily client | [Claude how-to](/blog/schedule-social-posts-from-claude-mcp) · [/claude](/claude) |
| ChatGPT connector | ChatGPT is your daily assistant | [ChatGPT how-to](/blog/schedule-social-posts-from-chatgpt-mcp) · [/chatgpt](/chatgpt) |
| Codex | You already ship work in Codex / coding-agent workflows | [Codex how-to](/blog/schedule-social-posts-from-codex-mcp) |
| Grok connector | Grok (or Grok Bot) is your assistant | [Grok how-to](/blog/schedule-social-posts-from-grok-mcp) |
| DunSocial CLI | Terminal, CI, or local agents without remote MCP | [/cli](/cli) |
All of these drive the **same DunSocial workspace** when you connect the same account. Prefer Gemini CLI when that's already your terminal assistant; Claude/ChatGPT/Grok when those chats are daily; Codex when product work & social share one agent loop; CLI for JSON & CI.
## A practical first session
1. Connect networks in the DunSocial web app (once), including Discord & Slack if needed.
2. Add the DunSocial MCP server (`gemini mcp add --transport http dunsocial https://api.dunsocial.com/api/mcp`), then finish OAuth via `/mcp auth`.
3. Run the read-only verify prompt.
4. Save a short brand memory note if you haven't already (tone, product one-liner, words you never use).
5. Draft one post from a real changelog line.
6. Confirm copy, accounts, time, timezone.
7. Schedule, then open the web calendar & confirm the MCP tag.
That session teaches the loop better than any feature tour. After that, Gemini can help with weekly batch drafts while you keep the confirm step.
## Common mistakes (and the fix)
- Skipping verify. Always run the read-only account list before drafting.
- Pasting a bearer token instead of using OAuth. Gemini CLI's `headers` option exists for servers without OAuth; DunSocial's hosted MCP supports auto-discovered OAuth, so prefer that over a manual token.
- Scheduling without timezone. Ask Gemini to print the timezone next to the local time. Confirm both.
- Treating Gemini as the only calendar. Open the DunSocial web calendar after the first few MCP schedules so you trust the MCP tag & the time slots.
- Forgetting brand memory. Save audience, offer, tone, & banned phrases, then ask Gemini to search memory before drafting.
- Confusing Gemini CLI's OAuth connector with the Managed Agents API's static-header `mcp_server` tool. They're different auth shapes for different jobs. See the note above.
## Why this path fits developers in Gemini
If Gemini CLI is already where you ship code & write release notes, scheduling from the same terminal removes a context switch. DunSocial hosted MCP keeps OAuth, **53 tools**, brand memory, & confirm-before-publish on the same **USD 20** workspace as the web app & CLI. And now that Google's Managed Agents API also speaks remote MCP, the same hosted endpoint is reachable from custom Gemini agents too, not just the CLI.
See [/mcp](/mcp) & [/pricing](/pricing).
## FAQ
### Is MCP an extra cost?
No. Hosted MCP with 53 tools is included in the USD 20/mo or USD 192/yr plan. See [/pricing](/pricing).
### Is there a trial?
Yes. 14-day trial, no card.
### How much are extra seats?
Extra seats are USD 8/mo each. The base plan includes 1 seat. Extra brands are separate USD 20 workspaces.
### Which platforms can I schedule to from Gemini?
X, LinkedIn, Instagram, Threads, Bluesky, Reddit, Pinterest, YouTube Shorts, Discord, & Slack; TikTok limited beta. Connect the accounts in the DunSocial app first.
### What does human confirm mean in Gemini?
Ask Gemini to show copy, destinations, time, & timezone, then explicitly confirm before schedule or publish. DunSocial keeps human confirmation in front of publish for AI-written work.
### Can MCP create social network logins?
No. Connect networks in the DunSocial web app. MCP uses accounts already linked to the workspace you approve in OAuth.
### Is DunSocial's MCP the same for Gemini CLI and the Managed Agents API?
The endpoint is the same URL, but the auth shape differs: Gemini CLI's connector uses DunSocial's OAuth flow (this page); the Managed Agents API's `mcp_server` tool type expects a static bearer header instead, which DunSocial doesn't yet publish in the product UI. Check [/mcp](/mcp) for updates.
## Sources
- [Expanding Managed Agents in Gemini API: background tasks, remote MCP and more](https://blog.google/innovation-and-ai/technology/developers-tools/expanding-managed-agents-gemini-api/), Google, Jul 07 2026
- [MCP servers with the Gemini CLI](https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html), Google, Gemini CLI docs
- [Create and manage agents: Managed Agents API](https://docs.cloud.google.com/gemini-enterprise-agent-platform/build/managed-agents/create-manage), Google Cloud docs
---
## About this document
This is the Markdown representation of https://www.dunsocial.com/blog/schedule-social-posts-from-gemini-mcp. The HTML version of the same page is at the same URL. You can also request Markdown from any page by sending `Accept: text/markdown`.
Machine-readable summary of the whole site: https://www.dunsocial.com/llms.txt
## Company
- Product: DunSocial, https://www.dunsocial.com
- Legal entity: THISUX PRIVATE LIMITED, Chennai, Tamil Nadu, India
- Support: support@dunsocial.com
- Open the app: https://app.dunsocial.com/login