Drive Instagram, WhatsApp, and the rest from your terminal — without leaving Claude Code.
Claude Code is Anthropic's terminal-native coding agent, and it speaks the Model Context Protocol natively. Point it at SociaHive's MCP endpoint and the same agent that's editing your Next.js app can also build DM flows on Instagram or WhatsApp, schedule a post on LinkedIn, pull TikTok analytics, and tag contacts — all in one session, all auditable.
Get StartedWhy pair Claude Code with SociaHive
It already runs where your code lives
Claude Code reads files, runs tests, and edits source. Adding SociaHive means it can also ship the campaign that the code supports — same conversation, same approval flow, same audit trail. No tab-switching, no copy-pasting between dashboard and IDE.
Native MCP, not a bolt-on
Claude Code was designed around MCP. Every SociaHive tool — list_flows, create_post, generate_flow, get_post_analytics — appears as a first-class tool in the agent's tool list and works against any connected platform you have. You don't wrap HTTP calls or build a per-platform plugin; eight lines of config, the agent discovers everything, and the same tools cover Instagram, WhatsApp, Messenger, Facebook, LinkedIn, Twitter, TikTok, and Telegram.
Real safety rails, not vibes
Destructive actions (publish, delete, send) require explicit confirmation. Every tool runs as the authenticated user, so tier limits, rate limits, and credit costs apply automatically. You can hand the agent broad goals without handing it broad damage.
Add SociaHive to your Claude Code MCP config
Open your Claude Code MCP settings and add the sociahive server. The CLI command sociahive auth print-key generates a scoped key in seconds — copy the sk_... value into the X-API-Key header below.
{
"mcpServers": {
"sociahive": {
"url": "https://sociahive.com/api/mcp",
"headers": {
"X-API-Key": "sk_your_key_here"
}
}
}
}A real workflow: ship a multi-platform launch without leaving the terminal
Here's what launch day looks like when Claude Code drives the SociaHive MCP server. The agent builds a DM flow on Instagram, mirrors it to WhatsApp, schedules the supporting posts on LinkedIn and Twitter, and reports back what it shipped — same tool calls, different platforms.
- 1You: 'Set up early-access on @launchaccount. DM flow on Instagram triggered by the comment "early", same flow on WhatsApp triggered by the keyword "early". Schedule the announcement on LinkedIn and Twitter for 9am tomorrow.'
- 2Claude Code calls list_accounts to discover your Instagram, WhatsApp, LinkedIn, and Twitter connections under the same SociaHive workspace.
- 3It calls generate_flow twice — once with platform='instagram' and trigger='comment', once with platform='whatsapp' and trigger='keyword' — both scaffolded with the same email-collection → reply-with-link path so the conversion logic stays identical.
- 4It calls create_post per platform with platform-appropriate length: a longform LinkedIn post, a thread-friendly Twitter post — same launch message, scheduled for 9am.
- 5It returns a summary: 2 flow IDs, 2 scheduled post IDs, and a single-click dashboard URL so you can review before anything publishes.
# Claude Code surfaces SociaHive tools automatically once the MCP server
# is registered. You drive it in plain English — same agent, every platform.
> Set up early-access on @launchaccount. Instagram comment trigger word
> "early", same flow on WhatsApp triggered by keyword "early", reply asks
> for email then sends the link. Schedule the announcement on LinkedIn and
> Twitter for 9am tomorrow. Save everything as drafts for me to review.
[Claude Code uses tool: list_accounts]
[Claude Code uses tool: generate_flow] # Instagram
[Claude Code uses tool: generate_flow] # WhatsApp
[Claude Code uses tool: create_post] # LinkedIn
[Claude Code uses tool: create_post] # Twitter
Done. Drafts saved:
Flows
fl_2J8x ("Early Access — Instagram") trigger: comment "early"
fl_2J9p ("Early Access — WhatsApp") trigger: keyword "early"
Posts
pst_44a ("Launch — LinkedIn") scheduled 2026-05-07 09:00 UTC
pst_44b ("Launch — Twitter") scheduled 2026-05-07 09:00 UTC
Review:
https://sociahive.com/flows
https://sociahive.com/dashboard/content-scheduler
Publish when you're ready with: sociahive flows publish fl_2J8x --yesWhat You Can Do with Claude Code + SociaHive
- ✓Generate complete DM flows for Instagram, WhatsApp, Messenger, or Telegram from a one-line description
- ✓Schedule and publish posts across all 9 supported platforms without leaving the terminal
- ✓Pull live analytics from any connected account into your codebase for reports or dashboards
- ✓Run every action under your tier limits — same tools work for every platform
How to Connect Claude Code
Create Your SociaHive Account
Sign up at sociahive.com and connect your Instagram Business or Creator account. No ai agent credentials needed yet.
Find Claude Code in Integrations
Open your SociaHive dashboard, go to Settings > Integrations, and select Claude Code from the AI Agent section.
Authorize Claude Code
Click "Connect" and complete the Claude Code authorization flow to grant SociaHive read and write access.
Set Up Your Claude Code Workspace
Start with the 'agent:execute' scope. It's the only scope you need for the 35 SociaHive MCP tools, and it keeps your API key tightly scoped to action calls.
Test Your Claude Code Connection
Send a test DM to your Instagram account and verify the data flows into Claude Code. Check that triggers, events, and data mapping work as expected.
Use Cases with Claude Code
Other AI Agent Integrations
Frequently asked questions
Does Claude Code natively support MCP servers like SociaHive?+
Yes. MCP is a first-class transport in Claude Code — the agent discovers tools, schemas, and confirmations automatically. SociaHive's MCP server exposes 35 tools (posts, flows, analytics, contacts, accounts) over the same JSON-RPC protocol Claude Code uses for filesystem and shell access.
Can Claude Code post or send DMs without me approving each action?+
By default, no — and that rule is platform-agnostic. Destructive or visible-to-others actions (publishing a post on Instagram or LinkedIn, sending a WhatsApp DM, deleting a flow on Telegram) all require explicit confirmation from you. Read-only actions (listing flows, fetching analytics on any platform) run without prompting. You can run --yes to auto-confirm in scripted contexts where you've reviewed the plan up front.
How do I limit what Claude Code can do with my SociaHive account?+
Scope the API key. SociaHive keys carry per-tool scopes — issue a key with only 'agent:execute' for full agent access, or narrower scopes (posts:read, flows:write) when you want a tighter blast radius. Revoke from Settings → API Keys at any time and the MCP session ends instantly.
Is there a SociaHive MCP server, or do I need to build one?+
It's already shipped at https://sociahive.com/api/mcp. Eight lines of config and you're connected — no server to host, no auth dance to write. The same endpoint serves Claude Code, Claude Desktop, Cursor, and any custom HTTP client, and the same 35 tools work against every connected platform: Instagram, WhatsApp, Messenger, Facebook, LinkedIn, Twitter, TikTok, and Telegram for automation; Instagram, Facebook, LinkedIn, Twitter, Threads, TikTok, YouTube, Bluesky, and Pinterest for scheduling.
Does using Claude Code through SociaHive count against my AI credits?+
It depends on the tool. Calls that run AI inside SociaHive (generate_flow, ai_text_improver) consume your monthly AI credits at the standard cost. Pure CRUD calls (list_posts, schedule_post, get_analytics) cost zero credits — they're metered against your tier's account limits, not the AI credit pool.
Comparing AI tools for social media automation? See the full hub: MCP for social media automation — or the developer-focused product page at /mcp.
Connect Claude Code with SociaHive
14-day free trial included. Plans from $29/mo. No credit card required.
Get Started