Post to social media from OpenClaw
OpenClaw is a personal AI assistant with native MCP support. Connect OmniSocials to the remote MCP server with an API key or with OAuth, or run the npm package locally.
OmniSocials' remote server speaks Streamable HTTP only. OpenClaw uses SSE when a server has no transport, so always set "transport": "streamable-http".
Option 1: Remote server with an API key (recommended)
- Create an API key in OmniSocials (Settings → API).
- Put the key in OpenClaw's env file, so it never sits in the config:
Terminal
- Stop the Gateway (the CLI edits saved servers only while it is stopped), add the server, probe it and start again:
Terminal
The same server in ~/.openclaw/openclaw.json, under mcp.servers:
JSON
You can also add it in the Control UI: Settings → MCP → Add server, Streamable HTTP, the URL above.
Option 2: Remote server with OAuth
Terminal
The login opens OmniSocials in your browser: pick the workspaces OpenClaw may use and click Allow access.
Option 3: npm package (local)
Runs the MCP server as a subprocess. The npm package has fewer tools than the remote server.
JSON
Verifying
Ask OpenClaw:
List my connected social accounts on OmniSocials
If OpenClaw responds with your accounts, the integration is working. If it errors, check the OpenClaw gateway logs. The error usually points at a missing config field or an invalid API key.
Answer your DMs on a schedule
OpenClaw can answer your Instagram and Facebook DMs for you, in your voice, every hour, with an automation (OpenClaw's built-in scheduler).
- Save the instructions below in a file, for example
~/.openclaw/answer-dms.txt, and describe your voice. - Create the automation:
Terminal
- Keep the Gateway running: automations run inside it.
- Check that the first run sent replies. A scheduled run has nobody present to approve: if OpenClaw asks for an approval during the run, allow it for this automation (Always allow), or the run waits.
Text
Meta lets you reply to a DM only within 24 hours of the person's last message, so an hourly run answers in time.
Good to know:
- OpenClaw takes one DM at a time with
get_next_unansweredand answers it withreply_to_inbox. A DM you already answered in the Instagram or Facebook app counts as answered, so nobody gets two replies. - A DM that OpenClaw skips stays unread, so the next run lists it again until you answer it.
- OpenClaw takes the DMs that are unread in OmniSocials. A DM you opened in the OmniSocials inbox and did not answer counts as read. To answer those too, add "Also answer DMs I have read but not answered."
- For the first days, read the list at the end of each run. Where a reply does not sound like you, add that to the voice line.
- To answer comments too, write "DMs and comments" in the first line.