Gemini CLI Social Media MCP Setup
Gemini CLI connects to a social media MCP server through an httpUrl field plus headers in its settings file. Point httpUrl at https://mcp.blotato.com/mcp, add blotato-api-key as a header, and the terminal agent gets publishing and scheduling across nine platforms.
https://mcp.blotato.com/mcp API key header Updated July 2026
How to connect Gemini CLI to social media
- Connect your social accounts in Blotato and copy your API key from Settings then API.
- Add a server entry to your Gemini CLI settings using the httpUrl field, not a command.
- Set httpUrl to https://mcp.blotato.com/mcp.
- Add blotato-api-key as a header with your key as the value, then restart the CLI.
{
"mcpServers": {
"blotato": {
"httpUrl": "https://mcp.blotato.com/mcp",
"headers": {
"blotato-api-key": "YOUR_API_KEY"
}
}
}
}
How do I know it worked?
Ask Gemini CLI to list your connected accounts. It calls
blotato_list_accounts and returns your platforms, which confirms both the connection and
the authentication in one step. If you see your accounts, setup is done.
What social media accounts do I have connected?
Worth knowing before you rely on it: analytics prompts only return data for X, Instagram, Facebook, Threads, and Bluesky. The other four platforms publish normally but report no metrics yet.
What breaks, and how to fix it
The Gemini CLI trap is the field name. Its config supports a command entry for local stdio servers and an httpUrl entry for remote ones, and a hosted endpoint placed in the command field will not connect. Use httpUrl. The second thing to know is that its OAuth flow needs a browser and a redirect on localhost, so on a headless box, an SSH session without forwarding, or a container, use the header instead of /mcp auth.
What is different about Gemini CLI
Gemini CLI distinguishes local and remote servers by which field you fill rather than by a transport setting, so the whole difference between a working and a non-working config is one key name. It also ships per-server tool filtering: includeTools acts as an allowlist and excludeTools as a denylist, which is the cleanest way on this list to give an agent publishing tools while withholding anything that spends credits. Run /mcp to list what a server actually exposed, and /mcp auth to manage OAuth per server.
Vendor documentation: Gemini CLI MCP setup. For how a client discovers and calls tools once connected, see the MCP client concepts reference.
Gemini CLI social media FAQs
01 Can Gemini CLI post to social media?
02 How do I connect Gemini CLI to social media?
03 How do I set up Gemini CLI for social media?
04 What is the best way to manage social media with Gemini CLI?
05 What goes wrong when connecting Gemini CLI?
06 Does Gemini CLI need to be running for a scheduled post to go out?
07 Do I need a developer app or platform API keys to use Gemini CLI this way?
08 What can Gemini CLI not do on social media?
09 How much does it cost to connect Gemini CLI?
Connecting a different agent?
Same endpoint, same accounts, one setup per client. The AI agents for social media hub covers what all of them share, including every tool your agent can call.