Last updated: September 2026
Can Gemini post to X?
Not on its own. Gemini has no access to your X account. It can post through an MCP server: Antigravity CLI and the Antigravity IDE, which replaced Gemini CLI for most users on June 18, 2026, accept a remote server with an API key header. The consumer Gemini app connects custom MCP servers only through a sign-in flow.
"Gemini" covers several products with different rules for outside tools. The table sorts them out. The short version: if you want Gemini to post, schedule or thread on X today, use Antigravity.
Which Gemini can post to X?
The Antigravity setup
Antigravity CLI and the IDE read MCP servers from the same file. Add one entry and the 43 OpenTweet tools are available to the agent in both.
{
"mcpServers": {
"opentweet": {
"serverUrl": "https://mcp.opentweet.io/mcp",
"headers": {
"Authorization": "Bearer ot_your_key"
}
}
}
}Then ask for what you want. "Post this to X now", "write a thread about today's diff", or "schedule these five for 9am next week". To post to more than X, name the networks: platforms: ["x", "bluesky", "linkedin"]. LinkedIn posts go to your personal profile.
- Server not loading? Check the key is
serverUrl. Antigravity does not accepturlorhttpUrl, which is what configs from other clients and old Gemini CLI use. - 401 from the server? The Authorization header is missing or the key is wrong. The URL alone does not authenticate.
- Prefer a local process? Use
npx -y @opentweet/mcp-serverwithOPENTWEET_API_KEYin env. Both configs are on the Antigravity integration page.
Why the Gemini app is a no for now
The Gemini app does support custom MCP servers. You paste a server URL under Settings, Connected Apps, and Google links the server to your Google Account. That link is a sign-in: the server either supports Dynamic Client Registration, or you enter client credentials under Advanced features. It is limited to users 18 and over in the US on a personal Google Account, and it can only be set up on the web.
OpenTweet's hosted server does not have an OAuth sign-in. It takes a bearer key in the Authorization header, and the Gemini app has nowhere to put one. Gemini Enterprise has the same gap from the admin side: its custom MCP connector offers no authentication or OAuth 2.0, not an API key.
Gemini is good at the writing, not the sending
Drafting in the Gemini app and pasting into a scheduler works fine. If you want the agent itself to press publish, the working path is Antigravity with an MCP server, or your own code calling the REST endpoint. See API vs MCP for posting for which fits.7-day free trial. Cancel anytime.
Frequently asked questions
Can Gemini post to X?
Not on its own. Gemini has no connection to your X account. It can post through an MCP server that has a posting tool, and the Gemini surface that takes one with an API key is Antigravity: the CLI (agy) and the IDE. Add the server to ~/.gemini/config/mcp_config.json and approve the tool call when the agent makes it.
Can Gemini schedule tweets?
Yes, through the same MCP server. OpenTweet has opentweet_schedule_tweet for one post at an ISO 8601 time and opentweet_batch_schedule for many. You approve the call once in Antigravity and OpenTweet publishes each post at its time, whether or not the agent is still running.
Can I add an MCP server to the Gemini app?
In some cases. Google lets users 18 and over in the US, signed in with a personal Google Account, add a custom app by MCP server URL at gemini.google.com under Settings, Connected Apps. The server is then linked to your Google Account through Dynamic Client Registration or client credentials you enter. There is no field for a static Authorization header.
Does the OpenTweet MCP server work in the Gemini app?
Not today. The hosted OpenTweet server authenticates with a bearer ot_ key in the Authorization header and does not offer an OAuth sign-in, so a URL-only connection gets a 401. Use Antigravity CLI or the Antigravity IDE, which send the header you configure.
What happened to Gemini CLI?
Google announced on May 19, 2026 that Gemini CLI and the Gemini Code Assist IDE extensions would stop serving free, Google AI Pro and Ultra users on June 18, 2026, and moved them to Antigravity CLI. Organizations on Gemini Code Assist Standard or Enterprise kept access. In Antigravity, MCP servers live in mcp_config.json and remote servers use serverUrl instead of url or httpUrl.
Can Gemini Enterprise post to X?
Only through a connector your admin sets up. Gemini Enterprise registers a custom MCP server as a data store, Streamable HTTP only, with either no authentication or OAuth 2.0. It does not take a static API key header, so the hosted OpenTweet server does not fit there.
Will Gemini post without asking me?
No. Antigravity runs MCP tools in Ask mode by default, so each post waits for your approval. Google also states that the Gemini app currently requires manual confirmation for write actions by custom apps. For posts that must go out at a fixed time, schedule them, or call the REST endpoint from CI.
Keep exploring
The same question for other assistants, and the server that answers it.
Antigravity setup in full
Hosted and npm configs, the IDE path, prompts and scheduling.
Can Claude post to Twitter?
The same question for Claude Code, Claude Desktop and claude.ai.
Can Copilot post to X?
GitHub Copilot agent mode versus Microsoft 365 Copilot.
Can Grok post to X?
Grok reads X natively but still needs a posting tool to publish.
The OpenTweet MCP server
Every tool, the hosted endpoint, and the npm package.
Give Gemini a posting tool
One entry in mcp_config.json and Antigravity can post, thread and schedule. Flat $11.99 a month, no X developer app.
7-day free trial. Cancel anytime.