Mehdi Agent AI

Home / Guides

Connect Claude to social media with Composio

In this guide

For store owners, creators and marketers who open Claude, copy data in by hand, and paste results back into Instagram, TikTok or Meta Ads.

By the end you will have Claude connected to your accounts through Composio, a safe first test, and a set of prompts you can reuse.

The platform facts below come from Composio's own pages for each toolkit. I have listed the sources at the end.

What this changes

Without a connection, Claude only answers. You paste numbers in, it replies, and you do the work.

With Composio, Claude can use your accounts through tools: read your pages and posts, draft and publish, and look inside your ad accounts. It works on your behalf instead of only talking. And because it sees your real data, its recommendations are based on what is happening in your account, not on guesses.

What you can connect

Composio publishes a separate toolkit for each platform. The ones that matter for a Moroccan seller or creator:

  • Instagram
  • Facebook
  • TikTok
  • LinkedIn
  • Meta Ads (Facebook and Instagram campaigns, through Meta's official Ads API)
  • TikTok Ads (Composio lists 399 tools for it)
  • LinkedIn Ads (28 tools, and it needs your own OAuth app, with the client ID and secret added in the Composio dashboard)

Setup in Claude Desktop or Claude on the web

  1. Create a free Composio account at composio.dev.
  2. In Claude, open Customize, then Connectors, and add a custom connector.
  3. Use this URL: https://connect.composio.dev/mcp
  4. On a Team or Enterprise plan, the plan owner has to enable the connector first.
  5. Ask Claude to do something with a platform, for example "list my last 5 Instagram posts". Claude shows a sign in link.
  6. Open the link and authorize the account in your browser. Repeat once per platform.

Setup in Claude Code

Composio's guide for each platform has you create a Tool Router session with the Composio SDK, which returns an MCP URL for that toolkit. You then register it with claude mcp add --transport http, using that URL and your Composio API key. The first time you use a tool, Claude shows a sign in link and you finish the authorization in your browser. Follow the exact commands on the toolkit page, since they can change.

Your first safe test (read only)

Do not start by publishing. Start by reading.

Using my connected Instagram account, list my last 10 posts with their captions
and like counts. Do not change anything. Tell me which 3 performed best and
what they have in common.

If that works, the connection works.

Prompts to copy

Weekly report:

Connect to my Instagram and Facebook accounts. For the last 7 days, give me
reach, likes, comments and the top 3 posts on each. Do not publish or edit
anything. End with 3 things I should do next week.

Ads check (read only):

Look at my Meta Ads account. For each active campaign, show spend, results and
cost per result for the last 7 days. Flag any campaign that spends money
without results. Do not change budgets or pause anything. Just give me the
list and your recommendation.

TikTok Ads check:

Look at my TikTok Ads account. Show me spend and results per campaign for the
last 7 days and tell me which one to scale and which one to stop. Read only.

Draft a post:

Write a LinkedIn post about [topic], in my voice. Show me the final text and
wait for my approval. Do not publish.

Replace the text in brackets with your own topic.

Safety rules

  • Start with read only prompts. Add write actions only after the read test works.
  • For anything that publishes, spends money or changes a campaign, end the prompt with "Show me exactly what you will do and wait for my approval."
  • Never let Claude change budgets or pause campaigns without approval.
  • Connect only the accounts you need. You can disconnect a toolkit from your Composio account when you are done.
  • Check the first few results against the platform itself. Claude can only work with the data the platform returns.

Why the data matters

Claude's answer is only as good as the data it sees. A prompt like "should I scale this ad?" gets a generic answer. The same question with your last 7 days of spend and results gets an answer about your account. Better data gives a better result, and a better result gives a better decision.

My honest take

The setup takes about 15 minutes, most of it spent authorizing accounts. The real value is not publishing faster. It is that Claude can read your actual numbers every week and tell you what to change. Begin with the weekly report prompt, trust it after you have checked it against the platform a couple of times, and only then let it draft.

Sources: Composio toolkit pages for Facebook, Instagram, LinkedIn, TikTok, Meta Ads, TikTok Ads and LinkedIn Ads (composio.dev/toolkits). Checked 2026-10-31. The commands and URLs can change, so check the live pages.

Want the next one first?

New guides and tools go out on Instagram before anywhere else.

Follow @mehdiagent.ai