Log inStart Free Trial
easyCoexistence Official APIs

Connect Instagram, TikTok and more social media to Gemini CLI

To connect Instagram, TikTok and more social media to Gemini CLI, run gemini mcp add --transport http --scope user easycoexistence https://easycoexistence.com/api/mcp, then /mcp auth easycoexistence inside Gemini CLI to sign in with OAuth in your browser. The tools then load in all your projects, with the mcp_easycoexistence_ prefix, to publish, schedule, reply to comments and DMs and read analytics through each network's official API.

httpUrl

The settings.json field Gemini CLI reads as a Streamable HTTP endpoint; a url field means SSE instead.

project

The default scope of gemini mcp add; --scope user writes the server to ~/.gemini/settings.json, for all your projects.

mcp_easycoexistence_

The prefix on each easyCoexistence tool in Gemini CLI, which names MCP tools mcp_{serverName}_{toolName}.

June 18, 2026

When Antigravity CLI replaced Gemini CLI for unpaid tier and Google One users, as Gemini CLI's docs state.

35+ tools

Tools behind the one easyCoexistence connector for publishing, comments, DMs, automations and analytics.

How do you add easyCoexistence to Gemini CLI?

With one command in a terminal. gemini mcp add saves the server in a settings.json file: --transport http picks Streamable HTTP, the transport easyCoexistence's server speaks, and --scope user writes the entry to ~/.gemini/settings.json so it loads in all your projects. Left out, the scope is project, and the entry lands in .gemini/settings.json inside the current folder.

You can write the entry by hand instead, with the address under httpUrl and no headers, since the sign-in supplies the token. gemini mcp list then shows the server with its connection status.

Gemini CLI: add the server once, or write the entry yourself
gemini mcp add --transport http --scope user easycoexistence https://easycoexistence.com/api/mcp

# or by hand, in ~/.gemini/settings.json
{
  "mcpServers": {
    "easycoexistence": {
      "httpUrl": "https://easycoexistence.com/api/mcp"
    }
  }
}

How do you sign in from Gemini CLI?

Through OAuth, in your browser. Start Gemini CLI and run /mcp auth easycoexistence: Gemini CLI reads easyCoexistence's sign-in endpoints from the server's metadata, registers itself as a client and opens the browser, where you sign in to easyCoexistence and approve. The tokens are stored in ~/.gemini/mcp-oauth-tokens.json and refreshed when they expire, so settings.json holds no secret.

The browser has to open on the machine running Gemini CLI, because the sign-in returns to a localhost address there; a headless server or an SSH session without X11 forwarding cannot finish it. Run /mcp to see easycoexistence as CONNECTED with its tools, and /mcp auth easycoexistence again whenever the sign-in lapses.

What can Gemini CLI do on each network?

What the tools allow on the accounts you connect, through each network's official API. Gemini CLI sees the easyCoexistence tools for the networks on your account and picks one from your request. Instagram, Facebook, TikTok and LinkedIn posts go out now or wait in easyCoexistence's queue for up to 90 days, and YouTube schedules uploads itself. Gemini CLI replies to DMs on WhatsApp, Instagram and Messenger within 24 hours of the person's last message; there are no DMs on TikTok, YouTube or LinkedIn, where it replies to comments in public.

The connector grows with easyCoexistence: when a new network arrives and you connect an account there, its tools join this same server at the same price per connection.

InstagramPhotos, carousels, Reels and Stories, now or queued; comments, DMs, comment-to-DM; insights
TikTokVideos and photo posts, now or queued; public comment replies; account and video metrics
FacebookPage posts, now or queued; comments and Messenger; Page insights
YouTubeUploads with YouTube's own scheduling; comment replies and moderation; Analytics
LinkedInPage and profile posts, now or queued; comments; Page and post statistics
WhatsAppReplies within 24 hours, approved templates after them, number health

What can you ask Gemini CLI?

Plain requests that name the account, the content and the time. Give each image or video as a public HTTPS link, since the publishing tools fetch media from a URL and not from your disk, and add a timezone to any time. One request can cover several networks, with a caption written for each.

  • "Schedule this Reel on Instagram for Friday at 9am Lisbon time, with this caption."
  • "Post this clip to TikTok at 6pm today and turn comments off."
  • "Reply to the new comments on my latest YouTube video and hold the spam for review."
  • "When someone comments PRICE on this Facebook post, send them the price list by Messenger."
  • "Compare last week's LinkedIn Page impressions with the week before."

How does Gemini CLI ask before it posts?

With a confirmation before each easyCoexistence tool call. Gemini CLI offers Proceed once, Always allow this tool, Always allow this server and Cancel, so the tools that read can be approved for good while each post and reply still waits for you. Each tool shows up as mcp_easycoexistence_ plus its name, such as mcp_easycoexistence_publish_tiktok_post.

To narrow what an agent can reach, list tool names in includeTools, or pass them to gemini mcp add with --include-tools. A reporting setup, for example, can keep the tools that list posts and read insights and leave out the ones that publish.

How to set it up

  1. Connect your accountsIn the easyCoexistence dashboard, choose New connection and sign in with Instagram, Facebook, TikTok, Google or LinkedIn, or connect a WhatsApp number through Meta's flow.
  2. Add the serverRun gemini mcp add --transport http --scope user easycoexistence https://easycoexistence.com/api/mcp in a terminal.
  3. Sign in and askRun /mcp auth easycoexistence, approve in the browser, then tell Gemini CLI what to post, reply to or measure, and on which account.

Common mistakes

  • Writing the address under url in settings.json. Gemini CLI treats url as an SSE endpoint, while easyCoexistence's server speaks Streamable HTTP, so the entry needs httpUrl.
  • Running gemini mcp add without --transport http. The default transport is stdio, so Gemini CLI tries to start the address as a local command.
  • Giving Gemini CLI a file path for a post. The publishing tools take media from a public HTTPS link, so upload the file somewhere public and pass its URL.
  • Setting trust to true on the easyCoexistence server. It skips the confirmation for all of the server's tools, so posts and public replies go out unseen.
Doing this with EasyCoexistence

easyCoexistence gives Gemini CLI reach to your customers on Instagram, TikTok, Facebook, YouTube, LinkedIn, WhatsApp and more channels: one MCP server added with one command, OAuth sign-in and more than 35 tools in all, each on the network's official API, with every connection monitored 24/7. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.

easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.

Frequently asked questions

Can Gemini CLI post to TikTok?

Yes. With easyCoexistence added, Gemini CLI publishes a video or a photo post through publish_tiktok_post, now or at a set time up to 90 days ahead. TikTok conversations happen in the comments, where it replies in public.

What if my account moved to Antigravity CLI?

Add the same address there. Antigravity CLI, where unpaid tier and Google One users moved on June 18, 2026, reads a remote server as a serverUrl entry in ~/.gemini/config/mcp_config.json and handles OAuth itself for servers with dynamic client registration, which easyCoexistence has. Paid Gemini API keys and Gemini Code Assist Standard or Enterprise licenses keep Gemini CLI.

Can Gemini CLI reply to comments while I am away?

Not on its own: it acts while you run it. Comment rules and automations that Gemini CLI sets up through easyCoexistence keep replying on Instagram, Facebook, TikTok and WhatsApp with no session open, AI replies included, written with your own model key.

How much does easyCoexistence cost for Gemini CLI?

US$ 9 to US$ 0.75 per connection per month, falling as you add connections, and the first 3 days are free. The MCP server comes with it, and your Gemini API key or license stays billed by Google.

Keep reading

Connect your first channel in two minutes.

No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.

  • 3 days free
  • Cancel any time
  • Official APIs only
  • Monitored 24/7

Verified on