Make Instagram carousels with Gemini CLI
Run one command to connect Gemini CLI to the MCP server inside hookflock. Gemini can then plan carousels from your products and blueprints, write and check them, and schedule them for your app.
Updated
Set it up
- Download hookflock and open it. You don’t need a license for this. Go to Agent, then the MCP setup tab: it shows the setup line with your real port and token.
- Copy the Gemini CLI line and run it once in Terminal.
gemini mcp add -s user -t http -H "Authorization: Bearer <token from hookflock>" --trust hookflock http://127.0.0.1:41751/mcp
- Check it worked: type /mcp inside Gemini CLI.
- Optional: in hookflock, open Settings, then Agent, and copy the agent snippet into a GEMINI.md file so Gemini knows the workflow.
The token in these examples is a placeholder. The app’s setup line has the real one, and the port if the default one was taken.
Why “-s user”
Gemini CLI saves servers per project by default. The user scope writes ~/.gemini/settings.json, so the server is there in every folder.
Why “--trust”
Trust lets Gemini call the tools without asking each time; in headless runs a question counts as “no”. Posting, public replies and deleting comments still need an explicit confirm in the call. Gemini also skips MCP servers in folders you haven’t trusted.
Prompts to start with
- Show me the hookflock blueprints for a fitness app and explain when to use each one.
- Draft a myth-vs-fact carousel for my first product, 8 slides, in my own words.
- Check the originality score of that draft and rewrite the hook if it is too close to its source.
- Put it in my next free slot.
- Summarise what worked in my last 30 days of posts.
What Gemini CLI can and can’t do here
- Instagram has no drafts through its API, so drafts live in hookflock on your Mac until you post or schedule them.
- A carousel takes 2 to 20 slides, and each account has a posting quota per 24 hours that the agent can read with instagram_publishing_limit.
- Posting now, public replies and deleting comments need an explicit confirm in the call, so an agent can’t do them by accident.
- Some settings are yours alone: the agent can’t turn on AI access to Instagram comments and captions, or add your RevenueCat key.
- Until you allow it in Settings, captions and comments from Instagram reach the agent redacted.
- The MCP server runs inside the app, so hookflock has to be open on your Mac. Scheduled posts go out from our server even when your Mac is shut.
See all 86 tools, and which ones work without a license, on the MCP server page.
Security
- The server listens on 127.0.0.1 only, so other computers on your network can’t reach it.
- Every request needs the token from the app. Regenerate it in the MCP setup tab whenever you like; agents then need the new one.
- Your Instagram tokens stay encrypted on our server. The agent never sees them.
Questions
- Do I need a license to use hookflock from my agent?
- No, not to make carousels: products, blueprints, drafts, the editor, the originality check and exports work in Free mode. Tools that connect Instagram, post, schedule, read comments or show results answer with a clear message and the link to get a license.
- Does my agent post to Instagram right away?
- Posting needs a license and a connected account. Connecting Instagram for every license rolls out once Meta approves hookflock. Until then the agent can make and check carousels.
- Can I edit settings.json by hand instead?
- Yes. Add the server under mcpServers with its url, type "http", the Authorization header and trust: true.