Introduction
Work your Instagram DMs from opencode. You don't need a Meta developer app or any code. You add one Winly server to opencode, sign in to Winly and ask in plain words.
For the name and inputs of every tool, see the Winly docs.
Also connect Instagram DMs to
Why use Winly?
- One server URL connects your Instagram and Facebook DMs to opencode.
- Meta's official API. No shared passwords and no browser cookies.
- A sales pipeline underneath. opencode gets stages, tags, owners and reports along with your messages.
- You choose who presses send. opencode can draft replies for you to approve, or reply for you. You set this in opencode.
Connecting Instagram DMs to opencode using Winly
What you need
- A Winly account. The free plan works.
- An Instagram professional account (Business or Creator) or a Facebook Page.
- opencode installed.
- A web browser for the Winly sign-in. Over SSH or in a container you'll paste the callback link by hand.
Copy this command and run it in your terminal.
opencode mcp add winly --global --url https://app.sbccrm.com/bld/api/mcpThe server URL on its own:
https://app.sbccrm.com/bld/api/mcpThen follow the steps below.
What is the Instagram DM MCP server, and what's possible with it?
The Winly MCP server connects AI agents like opencode to your own Instagram and Facebook inbox. opencode can read your chats, contacts and reports, answer questions and do the follow-up work you ask for.
- Inbox: list open chats, search what people said, and read one lead's history.
- Replies: send text to people who messaged you first, up to 7 days after their last message or reaction. Images, video and audio go out only within 24 hours of the person's last message.
- Pipeline: add tags, change stages, set owners and save notes.
- Reports: quiet leads, reply speed, reply rate, drop-off and the messages that get replies.
- Comments: read comments on your Instagram posts and Facebook Page posts, reply, hide or delete. One private reply per comment, within 7 days.
- Autopilot: review Autopilot's rules, saved knowledge and chats, and add rules or fixes. These tools need Autopilot on in your workspace.
You can send text up to 7 days after the person's last message or reaction. Images, video and audio can go out up to 24 hours after their last message. Winly blocks anything later.
Step-by-step guide
- Create a free Winly account
Go to the Winly signup and choose the Free plan. It's $0 with 300 credits a month and 2 connected accounts. No card needed.
Signup linkhttps://app.sbccrm.com/mcp/signup - Connect Instagram or Facebook
In Winly, connect an Instagram professional account (Business or Creator) or a Facebook Page. Winly connects through Meta's official API.
- Add the Winly server
Run this in your terminal. The --global flag makes Winly available in every project. Leave it off to add Winly to the current project only.
Terminalopencode mcp add winly --global --url https://app.sbccrm.com/bld/api/mcp - Start the sign-in
Run opencode mcp auth winly. You can also open opencode, run /mcps, select winly and sign in.
Terminalopencode mcp auth winly - Sign in to Winly and approve
Your browser opens the Winly sign-in page. Sign in to Winly and approve.
- Check the connection
Run opencode mcp list. Winly should show as connected.
Terminalopencode mcp list - Ask a first question
In opencode, ask something like "Which leads haven't replied this week?" Lookups of 25 results or fewer cost 0 credits.
Setup from opencode's docs, read Nov 19, 2026: MCP servers (OpenCode docs).
Things to ask
- "Which leads haven't replied this week?"
- "Show me new Instagram DMs from today that still need a reply."
- "Draft a reply to my newest Facebook message. Don't send it yet."
- "Tag everyone who asked about prices in my post comments as hot lead."
If it won't connect
- opencode mcp list shows "needs authentication". Open opencode, run /mcps, select winly and sign in. Or run opencode mcp auth winly.
- You signed in to the wrong Winly account. Run opencode mcp logout winly, then run opencode mcp auth winly and sign in again.
- Sign-in fails over SSH or in a container. Copy the URL of the failed callback page (it starts with http://127.0.0.1) and paste it into the sign-in prompt.
- Winly is in your config but won't connect. Check that the entry doesn't say "disabled": true. opencode has no "enabled" key.