Dify + PostPublish

Schedule social media posts with Dify

Add PostPublish to Dify as a connector and turn any chat into a publishing desk. Dify writes the copy, PostPublish checks it against each network's rules and schedules it to the accounts you already connected.

  • Custom MCP connector with OAuth sign-in
  • Draft, schedule and publish by asking
  • 6 networks: X, Instagram, LinkedIn, Facebook, Threads and Telegram

Plug inabout 2 minutes

Step 1 of 2

Add PostPublish as a Dify connector

In Dify open Tools, then MCP, and add an MCP server (HTTP) with the URL https://postpublish.pro/api/mcp. Dynamic Client Registration is on by default and works with PostPublish. Create a connector with the PostPublish MCP URL and sign in with OAuth. No API key required for supported clients.

  • PostPublish account
  • A connected social account
  • Dify installed

MCP server URL

https://postpublish.pro/api/mcp

Paste this URL into Dify's MCP or connectors settings. OAuth is recommended.

Header for API-key auth
Authorization: Bearer pp_live_YOUR_KEY

Talk

Step 2 of 2

Then tell Dify what you need

Dify picks the PostPublish tools it needs — list_accounts, get_platform_rules, create_post. Scheduled posts go out on time whether or not the chat is still open.

Try asking

  • Which accounts can you post to?
  • What goes out this week?
  • Keep that one as a draft

Try asking

Dark mode shipped today. Write it up for X and LinkedIn and have both go out tomorrow at 9.

Done. I wrote a short version for X and a longer one for LinkedIn and scheduled both for 9:00 tomorrow. Want me to add a screenshot?

via PostPublish

Example answer · lands in your PostPublish calendar · Dify

Start posting with Dify

Connect PostPublish once and let Dify write, schedule and publish across Facebook, Instagram, Threads, X, LinkedIn and Telegram.

Set up Dify

  1. 1

    In Dify open Tools, then MCP, and add an MCP server (HTTP) with the URL https://postpublish.pro/api/mcp. Dynamic Client Registration is on by default and works with PostPublish.

  2. 2

    For unattended apps, turn that off and send a custom header Authorization: Bearer pp_live_YOUR_KEY from an API key limited to what the app needs.

  3. 3

    Or import https://api.postpublish.pro/openapi.json as a custom tool and authenticate with the same Bearer header.

Server URL: https://postpublish.pro/api/mcp. OAuth is recommended.

Troubleshooting

The connector or server does not show up.

Check that the URL is exactly https://postpublish.pro/api/mcp and that your version of Dify supports remote MCP servers. If it only supports local servers, use the stdio bridge (npx mcp-remote).

Sign-in loops or fails.

Make sure you can sign in to app.postpublish.pro in the same browser, and that your workspace's trial or plan is active. If it still fails, remove the connection and add it again.

A post is rejected.

Each network has limits (Threads 500 characters, Instagram 2,200, plus media rules). Ask the agent to preview first; it reports warnings before anything is created.

The agent cannot see my accounts.

Connect your Facebook Pages, Instagram, Threads, X, LinkedIn or Telegram accounts in the PostPublish app first, and check that your role or key can read and write posts.

Revoke access

  • Remove the PostPublish connection in Dify's MCP or connectors settings.
  • In the PostPublish app, open Settings, then AI agents, and revoke any key you created for this client. A revoked key stops working immediately.
  • To end an OAuth sign-in, remove the connector in the client. Leaving the workspace ends all access for that user.

More like this

Dify and its logo are the property of their respective owners. They are shown only to indicate compatibility; use does not imply endorsement or partnership.