Claude Code + Zaprep

Instagram and Facebook automation, from your terminal

One command adds Zaprep to Claude Code. Use it to bulk-create rules for a client, audit dozens of automations at once or pull lead exports into a script.

One-line setupOAuth or API keyBuilt for agencies running many accounts
Claude CodeZaprep connected

Read clients.csv and create a LINK automation on each client account’s pinned reel, using the URL in the csv.

✓ list_accounts✓ resolve_post✓ create_automation

Found 4 connected accounts that match rows in clients.csv.

Created 4 automations, one per account, each scoped to its pinned reel with the link from the csv, all saved paused. Two links were not https, so I fixed them first.

Summary written to automations-created.md.

Example conversation. Real tool names.

Coding agent setup

How do I connect Zaprep to Claude Code?

Claude Code installed and signed in.

Server URL
https://www.zaprep.com/api/mcp
Sign-in
OAuth, or a Zaprep API key for scripts
Cost
Included on every Zaprep plan, Free included
New automations
Saved paused until you turn them on
Platforms
Instagram and Facebook Pages
Revoke
Settings, then AI tools in Zaprep

Zaprep MCP server URL

https://www.zaprep.com/api/mcp
  1. 1

    Add the server

    Run the command below in your terminal. Add --scope user to make Zaprep available in every project.

  2. 2

    Authenticate

    Start Claude Code, type /mcp, pick zaprep and choose Authenticate. Your browser opens Zaprep to approve access.

  3. 3

    Or use an API key

    For CI or headless runs, create a key in Zaprep under Settings, then API keys, and pass it as a header instead.

  4. 4

    Ask away

    Claude Code now lists the Zaprep tools and can use them alongside your files and shell.

Terminal
claude mcp add --transport http zaprep https://www.zaprep.com/api/mcp

# headless / CI alternative
claude mcp add --transport http zaprep https://www.zaprep.com/api/mcp \
  --header "Authorization: Bearer $ZAPREP_API_KEY"

Need an API key? Create one in Zaprep. Official Claude Code docs: Claude Code docs.

Try these

What can you ask Claude Code?

Copy a prompt, paste it into Claude Code, and adjust the keyword or link.

Bulk setup

“Duplicate my best-performing automation onto every other connected account.”

Lead export

“Export this month’s contacts to leads.csv and dedupe them by email.”

Health check

“Run troubleshoot on every paused or silent automation and write a report.”

Usage

“How close is my workspace to its monthly limit?”

40+ tools

What can Claude Code do with Zaprep?

Everything you do in the Zaprep dashboard, except billing, is available as an MCP tool.

Create automations

Comment-to-DM, DM keyword, story reply and follow-gated flows, from a post link or a plain description. Saved paused until you turn them on.

create_automationresolve_postduplicate_automation

Read the numbers

DMs sent, link clicks, followers gained and the full funnel for every automation.

get_analyticsget_automation_metricsget_automation_funnel

Fix what broke

Find out why a rule skipped, then pause, edit or switch it back on.

troubleshoot_automationget_automation_activitytoggle_automation

Get AI suggestions

Turn captions into ready-to-approve keyword automations, one post or all of them.

suggest_automationbulk_suggest_automationsanalyze_post

Work your leads

List and export everyone who shared an email or messaged you.

list_contactsexport_contacts_csv

Run the rest

Scheduled automations, short links, link in bio, media kit and AI replies.

create_scheduled_automationcreate_linkupdate_link_in_bio

Best for: Agencies and developers who manage many accounts and want scriptable, repeatable changes.

See every tool · What it can set up on Instagram

Sign-in

OAuth or API key?

Claude Code supports both. OAuth is quicker on your own machine.

OAuth Claude CodeAPI key Claude Code
SetupPaste the URL, sign in to ZaprepCreate a key in Settings, then API keys
Best forChat apps and editors on your own machineCLIs, CI, servers and workflow tools
Credentials storedShort-lived tokens, refreshed automaticallyOne zap_ key you keep secret
RevokeDisconnect it in Settings, then AI toolsDelete it in Settings, then API keys

Limits

What Claude Code cannot do in Zaprep

  • Send DMs or comment replies outside your automations. The AI sets up rules; Zaprep sends through Meta’s official APIs.
  • Turn on a new automation it created unless you, or the AI after you confirm, switch it on.
  • Touch billing, payments or your plan.
  • Connect, reconnect or remove your Instagram and Facebook accounts.
  • Read your Instagram password. Accounts are connected with Meta login, and the AI signs in to Zaprep, not Instagram.

Channels

Which platforms can Claude Code automate?

One connection covers every account in your Zaprep workspace.

Claude Code + Zaprep FAQ

Use OAuth on your own machine, it is one click. Use an API key for CI, servers or anywhere a browser cannot open.

In the Zaprep dashboard under Settings, then API keys. The key starts with zap_ and is shown once, so store it somewhere safe.

Yes. The default scope adds it to the current project only. Use --scope user to add it everywhere.

Yes. Zaprep runs its own remote MCP server at https://www.zaprep.com/api/mcp. No Zapier or other middleman is involved.

Yes. MCP access is included on every Zaprep plan, Free included. Your plan’s usual limits on automations and DMs still apply.

To run automations, yes: connect an Instagram professional account or a Facebook Page in Zaprep first. Without one the AI can only read your Zaprep settings.

Instagram professional accounts and Facebook Pages today. TikTok and YouTube are coming next.

New automations an AI creates are saved paused, so nothing sends until you or the AI turns it on after you confirm. Edits to an automation that is already on apply right away, and most AI apps ask before running a change. You can disconnect any AI app in Zaprep under Settings, then AI tools.

Yes. Once connected, the AI can list and export the contacts your automations collected, including emails. Only connect AI apps you trust, and disconnect any you stop using.

Open Settings, then AI tools in Zaprep and choose Disconnect next to the app. It is signed out right away. For an API key, delete it under Settings, then API keys.

Last updated . Menu names in other apps change often; the official docs link above has the latest.

Let Claude Code run your DM automations

Free plan, no card. Connect Instagram or a Facebook Page, then add Zaprep to your AI tool.