Before you start
- A Carousify workspace on a plan with MCP access, and a role that can create MCP keys. See Before you start.
- A recent version of the Codex CLI, signed in (
codex login).
Step 1: Create an MCP key
In Carousify, open Manage Workspace › MCP. Type a label in API Name (for examplecodex) and click Create API Key, or click Enable MCP if MCP isn’t enabled yet. Copy the MCP URL that appears:
Step 2: Add Carousify to Codex
1
Recommended: keep the key in an environment variable
Put the key (the part after Then add this to Codex sends the key as a Bearer token, and your
token=) in your shell profile:~/.codex/config.toml:config.toml stays free of secrets.2
Or: add it with one command
This is what the Codex CLI tab on Carousify’s MCP page shows. The key is part of the URL, so it’s saved in
config.toml:3
Check the connection
Run:
carousify should be listed. In a Codex session, /mcp shows the server and its tools.Step 3: Use it from a Codex session
Start a session (codex) and try:
- “Using Carousify, draft a LinkedIn post about today’s release notes and schedule it for 9 AM tomorrow.”
- “List my scheduled Carousify posts for this week.”
- “Pull Carousify analytics for the post I published yesterday.”
Disconnect or rotate
- Disconnect: run
codex mcp remove carousify, or delete the[mcp_servers.carousify]block fromconfig.toml. - Rotate the key: in Carousify, delete the key in the MCP Keys table, create a new one, and update the environment variable or URL.
Troubleshooting
- 401 “Invalid API key!” The key is wrong, turned off or deleted. Check it shows as on in MCP Keys, and that you used the full key, not the masked
XXXX…version. - “This MCP key was created by someone who is no longer in this workspace.” Create a new key.
- Older setups: if your
config.tomlpoints atapp.carousify.com/api/mcp, change it tohttps://api.carousify.com/mcp.
What’s next
Tools reference
What the assistant can do in Carousify.
Permissions and security
How your role applies to MCP keys.