Gemini MCP: connect Google's model to your social accounts
Gemini reads MCP servers two ways. The Gemini CLI loads them from settings.json, and the Interactions API accepts a remote mcp_server entry in its tools list. Both want Streamable HTTP. Point either one at a hosted social server and Gemini can publish, read comments and answer DMs. Every field and limit below was checked on November 30, 2026.
Gemini MCP server: the two ways Gemini loads one
There is no single "Gemini MCP" switch. Google ships two separate consumers of the protocol, and they do not share configuration.
| Gemini CLI | Interactions API | |
|---|---|---|
| Where the server is declared | ~/.gemini/settings.json or .gemini/settings.json |
tools array of the request |
| Transports accepted | stdio, SSE, Streamable HTTP | Streamable HTTP only |
| Field for a remote HTTP server | httpUrl |
mcp_server with a name and URL |
| Auth to the server | headers, or OAuth 2.0 discovery |
header you send |
| Needs a local process | No, for a remote server | No |
| Tool list visible with | /mcp or gemini mcp list |
returned in the response |
The line that decides most setups is the transport. Google's MCP servers documentation for the Gemini CLI accepts all three transports, while the Interactions API is explicit that "Remote MCP only works with Streamable HTTP servers. SSE (Server-Sent Events) servers are not supported." A server built on SSE works in your terminal and fails in production. Check that before you pick one.
MCP Gemini setup in the CLI
Two ways in, and they write the same file.
The command form, with the transport flag:
gemini mcp add --transport http plugkit https://api.plugkit.co/mcp
With a key instead of OAuth, add a header:
gemini mcp add --transport http plugkit https://api.plugkit.co/mcp --header "Authorization: Bearer sk_your_key"
Or write it yourself in ~/.gemini/settings.json:
{
"mcpServers": {
"plugkit": {
"httpUrl": "https://api.plugkit.co/mcp",
"headers": { "Authorization": "Bearer sk_your_key" },
"timeout": 30000,
"trust": false
}
}
}
Three fields are worth knowing before you copy that. httpUrl is for Streamable HTTP, url is for SSE, and command is for a local stdio process: a server entry must use exactly one of them. trust set to true "bypasses all tool call confirmations for this server", which on a server that can publish to a live account is a decision, not a default. And gemini mcp add writes to project scope unless you say otherwise, so a server you expect everywhere may only exist in one folder.
Then /mcp in a session lists the servers, their status and their tools. gemini mcp list does the same from the shell, and gemini mcp remove <name> undoes it.
The OAuth callback that breaks on a server
This is the part that costs people an evening.
The Gemini CLI supports OAuth 2.0 against remote servers, with authProviderType defaulting to dynamic_discovery, so it can find a server's OAuth metadata without being told. You authenticate with /mcp auth plugkit and the tokens land in ~/.gemini/mcp-oauth-tokens.json.
The catch is the redirect. The flow needs a local browser and a listener on http://localhost:7777/oauth/callback, which means it does not work in a headless container or over plain SSH. If your Gemini CLI runs on a VPS or inside CI, skip OAuth and pass an API key in headers. PlugKit's own client documentation warns separately about where you put that key: do not paste it into a chat, because it stays in the conversation history.
Worth saying plainly: PlugKit documents Claude, ChatGPT, Grok, Claude Code, Cursor and VS Code by name, and does not list Gemini. What it gives instead is a generic config for any client that accepts a remote HTTP server, which is exactly what the CLI's httpUrl is. The server is the same https://api.plugkit.co/mcp either way. The broader comparison of hosted servers sits in social media MCP servers compared.
Google Gemini MCP from the API
If Gemini runs inside your product rather than your terminal, the server is declared per request. The Interactions API takes an mcp_server entry in the tools list, with a name and a URL, passed to client.interactions.create. No local process, no config file, and the same Streamable HTTP requirement.
That difference matters for a social server. A CLI session is one user with one browser available for consent. An API call is your backend acting for a customer, so the token has to come from somewhere other than an interactive OAuth screen, which is the whole argument in MCP or REST API for your agent. If you are deciding where the server itself should run, MCP server hosting covers the trade-offs.
What Gemini can actually do on your accounts
A protocol does not post anything. The server behind it does, and its platform coverage is the real ceiling.
PlugKit exposes 103 tools and 3 workflows over Streamable HTTP at https://api.plugkit.co/mcp, covering Instagram, Facebook, LinkedIn, TikTok, YouTube, X, Threads, Bluesky, WhatsApp and Telegram, with WhatsApp and Telegram carrying messages rather than posts. Publishing, reading and replying to comments and DMs, analytics and comment-to-DM campaigns are all tool calls, so anything Gemini can be asked in words it can attempt.
| What you pay | Amount |
|---|---|
| Creator plan | $49 a month, 5 connected accounts |
| Pro plan | $97 a month, 30 connected accounts |
| Extra accounts on Pro | $3 each per month from 31 to 100, $1.50 from 101 |
| A 6th account on Creator | Refused with a 402, not billed |
| X read passed through | $0.005 per call |
| X publish passed through | $0.015 per call |
| Trial | 7 days free, card required at sign-up, nothing charged before day 7 |
Those figures come from the PlugKit billing docs read on November 30, 2026. The X numbers are the platform's own per-call pricing passed through at cost, which matters because a chatty agent on X spends real money per call rather than per month.
Two honest limits. OAuth scopes are coarse: mcp:read is read-only and mcp:write adds publishing, messaging, replying and connecting accounts, so there is no "may post to Instagram but never to X". And if two MCP servers expose the same tool name, the first to register keeps the plain name and the rest get serverName__toolName, which is survivable but worth knowing when a prompt that worked yesterday stops matching.
FAQ
What is Gemini MCP?
It is Gemini consuming a Model Context Protocol server, so the model can call outside tools instead of only writing text. Google supports it in two places: the Gemini CLI, which declares servers in settings.json, and the Interactions API, which takes a remote mcp_server entry in the tools array of a request.
How do I add an MCP server to Gemini CLI?
Run gemini mcp add --transport http <name> <url>, or add an mcpServers entry to ~/.gemini/settings.json with httpUrl set to the server URL. Then run /mcp in a session to confirm the server is connected and see its tools. Remember that gemini mcp add defaults to project scope.
Does Gemini support remote MCP servers over SSE?
The Gemini CLI does, using the url field rather than httpUrl. The Interactions API does not: Google's docs state that remote MCP works only with Streamable HTTP servers and that SSE servers are not supported. Pick a Streamable HTTP server if the same setup has to work in both.
Can Gemini post to Instagram?
Only through a server that holds an Instagram connection. Gemini itself has no access to your accounts. With a social MCP server connected it becomes a tool call, the same way it works for Claude in Instagram MCP server, and the posting rules are Meta's, not the model's.
Is OAuth or an API key better for Gemini MCP?
OAuth if a person is at a desk, because nothing is stored in plain text and access can be revoked from the server side. An API key in headers if the CLI runs headless, since the OAuth flow needs a browser and a listener on localhost:7777 and will fail over SSH.
One plug for every platform your agent touches
$49 a month for 5 connected accounts, cancel anytime. Every feature in every plan.
Get your API key →