# Connect Gemini to Margin and turn ideas into on-brand posts

[All AI connectors](https://margin.design/agents) · [Agent setup playbook](https://margin.design/get-started.md)

In Gemini, connectors for your own tools are called custom apps. For now, Google lets you add one in the Gemini app only with a personal Google account, in the US, aged 18 or over and in English. Gemini CLI takes Margin with one command, and Antigravity CLI with one config entry. Then ask for posts, pins or carousels in plain English. Gemini builds each one as an editable frame on your Margin canvas, styled by your brand board, and schedules it to any of 9 networks when you say so.

## Things you can just ask

- **From your notes:** "Turn this product brief into a 5-slide Instagram carousel in our brand colors and keep it as a draft." — Builds five editable 1080 × 1350 slides on your canvas and leaves the post as a draft until you schedule it.
- **Pinterest:** "Make three pin options for our spring guide, then schedule the one I pick for Saturday morning." — Puts three 2:3 pins side by side so you choose by eye, then schedules the winner.
- **What worked:** "Which of our Instagram posts did best this month, and when should we post next week?" — Reads your real numbers and best posting times from Margin and suggests slots for next week.

## How it works

Google opens custom apps in the Gemini app to personal Google accounts in the US, aged 18 or over, in English, with History on. Otherwise, connect through Gemini CLI with the command below, or through Antigravity CLI as the FAQ explains.

01. **Add Margin as a custom app:** On gemini.google.com, click Settings at the bottom, then Connected Apps. Under Custom apps, paste https://margin.design/mcp into the Add a custom app field and click Next.
02. **Sign in to Margin:** Follow the on-screen sign-in: log in to Margin, pick which organizations Gemini may open, and press Allow. The app then works in Gemini on your phone too.
03. **Ask, confirm, and edit:** Ask in plain English. Gemini asks you to confirm each change it makes, and every design lands on your canvas, ready for your team to edit.


## Why teams use Margin

- **Real text, not a flattened picture:** Gemini writes each post as HTML and CSS on your Margin canvas, so a teammate can fix a headline or swap a photo without starting over.
- **Your brand board does the styling:** Colors, fonts and components live on one board in Margin. Gemini follows it, so a pin and a carousel look like they came from the same team.
- **The exact size for each network:** Instagram, TikTok, X, YouTube, Facebook, Threads, LinkedIn, Pinterest and Bluesky each get a frame at their own size, never one image stretched to fit.
- **Gemini does the thinking:** Your own Gemini account writes and designs. Margin doesn't sell AI credit packs; your assistant's own plan does the thinking.

## Add Margin to Gemini CLI in one command

The first time Gemini CLI connects, your browser opens: sign in to Margin, choose the organizations Gemini may open, and press Allow. If it doesn't open, run /mcp auth margin.

```sh
gemini mcp add --scope user --transport http margin https://margin.design/mcp
```

## Frequently asked questions

### Which versions of Gemini can add Margin as a connector?

The Gemini app and Gemini CLI. Google opens custom apps to personal accounts in the US, 18 or over, in English; work and school accounts can't add them yet. Gemini Enterprise asks for a client ID and secret that Margin doesn't issue, so it can't connect today.

### Will Gemini post to my accounts without asking?

No. Gemini asks you to confirm every change it makes, and posting right away also shows what each account gets and waits for your yes. Scheduled posts and drafts wait in your Margin calendar, where you can edit or cancel them before they go out.

### I moved from Gemini CLI to Antigravity CLI. Can I still use Margin?

Yes, Antigravity CLI takes remote MCP servers too. Google moved unpaid and Google One users of Gemini CLI to it on June 18, 2026. Add an entry named margin with the serverUrl https://margin.design/mcp to ~/.gemini/config/mcp_config.json and sign in through your browser when it asks.

## Next steps

- Get started: https://margin.design/signin
- Full agent setup playbook: https://margin.design/get-started.md
- MCP endpoint: https://margin.design/mcp

## Sources

Checked on 26 Nov 2026.

- [Gemini Apps Help: custom apps](https://support.google.com/gemini/answer/17209137)
- [Gemini CLI docs: MCP servers](https://geminicli.com/docs/tools/mcp-server/)
- [Gemini CLI docs](https://geminicli.com/docs/)
- [Antigravity docs: MCP](https://antigravity.google/docs/mcp/)
- [Gemini Enterprise docs: custom MCP server](https://docs.cloud.google.com/gemini/enterprise/docs/connectors/custom-mcp-server/set-up-custom-mcp-server)

