Connect Instagram, TikTok and more social media to OpenAI Codex
To connect Instagram, TikTok and more social media to OpenAI Codex, run codex mcp add easycoexistence --url https://easycoexistence.com/api/mcp, then codex mcp login easycoexistence to approve the OAuth sign-in. The server is saved in ~/.codex/config.toml, which the Codex CLI, IDE extension and ChatGPT desktop app share, so each one publishes, schedules, replies to comments and DMs and reads analytics through each network's official API.
Where Codex stores MCP servers by default; a trusted project can scope servers in its own .codex/config.toml.
The OAuth client registrations Codex supports, so it registers itself with a server's sign-in and no client ID is pasted.
Codex's default limit for one MCP tool call, changed per server with tool_timeout_sec; a server gets 10 s to start.
What to type in the codex terminal UI, or in the ChatGPT desktop app's composer, to see the connected MCP servers.
Tools behind one easyCoexistence address for posts, comments, DMs, automations and analytics, listed for the networks you connect.
How do you add easyCoexistence to the Codex CLI?
With two commands. codex mcp add easycoexistence --url https://easycoexistence.com/api/mcp saves a Streamable HTTP server in ~/.codex/config.toml, and codex mcp login easycoexistence opens the easyCoexistence sign-in in your browser. easyCoexistence's sign-in does not advertise Client ID Metadata Document support, so Codex registers itself through Dynamic Client Registration and stores the tokens; you paste no client ID, secret or key.
codex mcp list then shows the server, and /mcp inside the codex terminal UI lists the active ones. Ask for something small first, such as listing your connected accounts, to see list_social_accounts answer before you post anything.
codex mcp add easycoexistence --url https://easycoexistence.com/api/mcp
codex mcp login easycoexistence
# check it
codex mcp listHow do you add it in the IDE extension or the ChatGPT desktop app?
From a form with the same three fields. In the IDE extension, which runs in VS Code, Cursor and Windsurf, open the gear menu, select MCP servers and then Add server. Enter easycoexistence as the name, choose Streamable HTTP, paste https://easycoexistence.com/api/mcp, save and select Restart extension. The server list then marks it as needing OAuth: select Authenticate and approve the easyCoexistence sign-in.
In the ChatGPT desktop app, open Settings, then MCP servers, and follow the same steps, ending with Restart. The CLI, the extension and the app share config.toml on the same computer, so a server added in one is there in the others with no second setup.
What goes in config.toml?
One table per server, and url is the only key easyCoexistence needs. Optional keys tune it: enabled_tools and disabled_tools narrow the tools Codex loads, which keeps a moderation task to the comment tools; default_tools_approval_mode chooses how its tools are approved, with auto, prompt, writes or approve; tool_timeout_sec changes the time a call may take; and enabled = false turns the server off without deleting it.
Leave out bearer_token_env_var and http_headers. easyCoexistence's MCP endpoint accepts only tokens from its own OAuth sign-in and answers other bearer tokens, a Partner API key included, with a 401.
[mcp_servers.easycoexistence]
url = "https://easycoexistence.com/api/mcp"
# optional
# default_tools_approval_mode = "prompt"
# enabled_tools = ["list_social_accounts", "list_social_comments", "reply_to_comment", "hide_comment"]What can Codex do on each network?
What each network's API allows, on the accounts you connect. Codex loads the tools for the networks on your easyCoexistence account, and each request names the account so it calls the right one. Instagram, Facebook and TikTok posts go out now or with scheduled_at, 1 minute to 90 days ahead, YouTube uploads carry their own publish time, and LinkedIn takes Page and profile posts. Codex replies to DMs on WhatsApp, Instagram and Messenger within 24 hours of the person's last message, and a WhatsApp template opens a new conversation. There are no DMs on TikTok, YouTube or LinkedIn, so those conversations happen in the comments, in public.
What can you ask Codex?
Tasks that mix your code and your accounts, in plain words. Name the account, give a public HTTPS link for media and a timezone for anything scheduled. Codex can read the repository, write the text, call the tool and save what comes back to a file.
- "Turn the summary of this release into a TikTok caption and post the video at this link."
- "Schedule the screenshot at this link on our Facebook Page for Tuesday at 2pm Lisbon time."
- "List the YouTube comments held for review on our newest video and approve the ones about the API."
- "Export last month's Instagram reach and views to reports/instagram.csv."
- "Write a script that fetches our LinkedIn Page statistics with the credentials from
get_social_credentials."
How does one connector reach all your networks, new ones included?
Through one entry for the whole easyCoexistence account. The table you added reaches each network you connect, an Instagram account, a TikTok account or a WhatsApp number, through that network's official API, so config.toml never grows a server per network. set_social_webhook_destination sends Instagram, Facebook and TikTok events to an endpoint you are building, signed per account.
Coverage keeps growing: new networks join the same MCP connector and API at the same price per connection, and Codex loads their tools once you connect an account, with nothing new to integrate.
How to set it up
- Connect your accountsIn the easyCoexistence dashboard, choose New connection and sign in with Instagram, Facebook, TikTok, Google or LinkedIn, or connect a WhatsApp number through Meta's flow.
- Add the serverRun codex mcp add easycoexistence --url https://easycoexistence.com/api/mcp, or use Add server in the IDE extension or the desktop app.
- Sign in and askRun codex mcp login easycoexistence, or select Authenticate, approve the sign-in and ask Codex to list your connected accounts.
Common mistakes
- Skipping codex mcp login. Without stored OAuth credentials Codex connects unauthenticated, and easyCoexistence refuses requests that carry no sign-in, so its tools never appear.
- Expecting ChatGPT on the web to use this server. ChatGPT web does not read local Codex configuration; it reaches remote MCP tools through plugins, which our ChatGPT setup page covers.
- Pointing a post at a file in the repository or on localhost. The networks fetch media from a public HTTPS URL, so upload the file first and hand Codex the link.
- Approving a post without reading its arguments. Check the account, the text and scheduled_at in the tool call before anything goes out.
easyCoexistence gives Codex reach to your customers on Instagram, TikTok, Facebook, YouTube, LinkedIn, WhatsApp and more channels: one MCP server with OAuth sign-in and more than 35 tools in all, each on the network's official API, in the CLI, the IDE extension and the ChatGPT desktop app, with every connection monitored 24/7. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Is easyCoexistence a Codex plugin?
No. It is a remote MCP server that you add by URL, and the same address serves Codex, Claude, ChatGPT and other MCP clients.
Can a project share the setup with teammates?
Yes, through .codex/config.toml in the repository, which Codex reads once the project is trusted. It holds no secret, and each person runs codex mcp login easycoexistence for their own sign-in.
Does Codex reply to my customers on its own?
Not by itself: Codex acts when you give it a task. Comment rules and automations that it can create for you run on easyCoexistence around the clock.
How much does easyCoexistence cost for Codex?
US$ 9 to US$ 0.75 per connection per month, falling as you add connections, the same on each network, with the first 3 days free. The MCP server is included, and OpenAI bills your Codex use.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on