Log inStart Free Trial
easyCoexistence Official APIs

Connect Instagram, TikTok and more social media to Claude Code

To connect Instagram, TikTok and more social media to Claude Code, run claude mcp add --transport http easycoexistence --scope user https://easycoexistence.com/api/mcp, then sign in from /mcp or with claude mcp login easycoexistence. Claude Code then publishes, schedules, replies to comments and DMs and reads analytics through each network's official API, in an interactive session or, once signed in, a claude -p script.

--scope user

Saves the server in ~/.claude.json for all your projects; Claude Code's default local scope covers only the current project.

claude mcp login

Runs a server's OAuth sign-in from the shell, printing the URL to open elsewhere when no local browser is found.

mcp__easycoexistence__

The prefix Claude Code's permission rules use for this server's tools, as in mcp__easycoexistence__list_*.

claude -p

Claude Code's non-interactive mode, which cannot run an OAuth sign-in, so the server is signed in from a session first.

35+ tools

Tools behind one easyCoexistence connector for publishing, comments, DMs, automations and analytics, listed for the networks you connect.

How do you add easyCoexistence to Claude Code?

With claude mcp add and the http transport, once, in any terminal. --scope user stores the server in ~/.claude.json and loads it in all your projects; without it, Claude Code uses local scope and the server exists only in the folder where you ran the command. For a team, --scope project writes it to .mcp.json at the repository root, so whoever opens the repository gets the same server, approves it once and signs in to easyCoexistence for themselves.

If you added easyCoexistence as a connector at claude.ai and log in to Claude Code with that account, it is already in /mcp, marked as coming from claude.ai.

Claude Code: one command, or a team's .mcp.json
claude mcp add --transport http easycoexistence --scope user https://easycoexistence.com/api/mcp

# for a team instead: .mcp.json at the repository root
{
  "mcpServers": {
    "easycoexistence": {
      "type": "http",
      "url": "https://easycoexistence.com/api/mcp"
    }
  }
}

How do you sign in from Claude Code?

Through easyCoexistence's OAuth sign-in, in a browser. Inside Claude Code, run /mcp, choose easycoexistence and follow the steps in the browser; from the shell, claude mcp login easycoexistence runs the same flow without a session. Claude Code registers itself with easyCoexistence, stores the tokens securely and refreshes them, so the configuration holds only the address.

Over SSH, claude mcp login prints the authorization URL instead: open it on your own computer, then paste the full redirect URL back at the prompt, connecting with ssh -t so the prompt can read it. To sign out, choose Clear authentication in /mcp or run claude mcp logout easycoexistence.

What can Claude Code do on each network?

Whatever the tools cover on the accounts you connect, each call made through the network's official API. Claude Code lists the easyCoexistence tools for the networks on your account, so a request names the account and Claude picks the tool. Instagram, Facebook, TikTok and LinkedIn posts go out at once or wait in easyCoexistence's queue for up to 90 days, while YouTube schedules an upload itself. Claude replies to DMs on WhatsApp, Instagram and Messenger within 24 hours of the person's last message; there are no DMs on TikTok, YouTube or LinkedIn, where Claude replies to comments in public.

When easyCoexistence adds a network, connecting an account there brings its tools into this same server, billed like the others.

PublishConversations and data
InstagramPhotos, carousels, Reels, StoriesComments, DMs, comment-to-DM; insights
TikTokVideos and photo postsPublic comment replies; metrics
FacebookPage posts with text, links, photos, videosComments, Messenger; Page insights
YouTubeUploads, scheduled by YouTubeComment replies, moderation; Analytics
LinkedInPage and profile postsComments; Page and post statistics
WhatsAppTemplates to open a conversationReplies within 24 hours; number health

What can you ask Claude Code?

Requests that mix your files with the networks. Claude Code can draft a caption from a file in your repository, such as a changelog, then post it, but the image or video has to sit at a public HTTPS link, since the publishing tools fetch media from a URL. Name the account when you have several, and give a timezone with any time.

  • "Write a LinkedIn post from CHANGELOG.md and schedule it on our company Page for Tuesday at 10am New York time."
  • "Post this video as a Reel and as a TikTok video at 6pm Lisbon time, with a caption for each."
  • "List the questions in today's comments on our last Facebook post and draft replies for me to approve."
  • "Which of our YouTube videos gained the most subscribers this month?"
  • "What is our WhatsApp number's quality rating right now?"

Can Claude Code post from a script or a scheduled job?

Yes, once someone has signed in from an interactive session. claude -p runs a single prompt without the interface, so a cron job or a CI step can publish the week's posts or report on comments, using the tokens stored by that earlier sign-in. Leave LinkedIn out of these runs and post there from an interactive session, where a person approves each post. Pass the tools the run needs with --allowedTools, written as mcp__easycoexistence__ plus the tool name, since a non-interactive run has nobody to approve a prompt.

The same rule syntax works in normal sessions: an allow rule for mcp__easycoexistence__list_* lets Claude read posts and comments without asking, while publishing and replies still ask first.

A non-interactive run with only the tools it needs
claude -p "Reply to the new questions in the comments on our latest TikTok video" \
  --allowedTools "mcp__easycoexistence__list_*,mcp__easycoexistence__reply_to_comment"

How to set it up

  1. Connect your accountsSign in to easyCoexistence, choose New connection and connect Instagram, Facebook, TikTok, YouTube or LinkedIn with their own sign-in, or a WhatsApp number through Meta's flow.
  2. Add the serverIn a terminal, run claude mcp add --transport http easycoexistence --scope user https://easycoexistence.com/api/mcp.
  3. Sign in and askRun /mcp, approve the easyCoexistence sign-in in the browser, then ask Claude Code what to post, reply to or report on.

Common mistakes

  • Running claude mcp add again to fix a failed sign-in. The same name at the same scope fails as already existing; run /mcp and choose easycoexistence, or claude mcp login easycoexistence, instead.
  • Writing the server into .mcp.json with a url but no type. Claude Code reads that entry as a stdio server and skips it, so add "type": "http".
  • Starting claude -p before anyone has signed in. A non-interactive run cannot open the OAuth flow, so the easyCoexistence tools stay unavailable until /mcp or claude mcp login completes it.
  • Pointing Claude Code at a file in the repository for a post. The publishing tools fetch media from a public HTTPS link, so upload the file first and pass its URL.
Doing this with EasyCoexistence

easyCoexistence gives Claude Code reach to your customers on Instagram, TikTok, Facebook, YouTube, LinkedIn, WhatsApp and more channels: one MCP server added with claude mcp add, OAuth sign-in and more than 35 tools in all, each on the network's official API, in sessions and scripts alike, with every connection monitored 24/7. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.

easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.

Frequently asked questions

Can Claude Code post to Instagram and TikTok?

Yes. Claude Code calls publish_instagram_post or publish_tiktok_post with your caption and a public media link, to go out now or, with scheduled_at, at a time up to 90 days ahead, when easyCoexistence's queue publishes it.

How is this different from the WhatsApp page for Claude Code?

Same server, same command. The WhatsApp page covers numbers, templates and message webhooks; this one covers the social networks, and one sign-in brings the tools for both.

Does Claude Code reply to customers when the terminal is closed?

No: it acts when a session or a claude -p run asks it to. Comment rules and automations that Claude Code sets up through easyCoexistence keep replying on Instagram, Facebook, TikTok and WhatsApp around the clock.

How much does easyCoexistence cost for Claude Code?

US$ 9 to US$ 0.75 per connection per month, falling as you add connections, and the first 3 days are free. The MCP server comes with it, and Claude Code itself stays billed by Anthropic.

Keep reading

Connect your first channel in two minutes.

No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.

  • 3 days free
  • Cancel any time
  • Official APIs only
  • Monitored 24/7

Verified on