Codex MCP server for social media

SocialKit runs an MCP server that you add to Codex with one command, which also opens the sign-in. Codex can then turn release notes into posts, schedule them on 11 social networks and read your analytics. The CLI, the IDE extension and the ChatGPT desktop app share the setup.

Start my free trial

7-day free trial · cancel anytime · 7-day money-back guarantee

Scheduled · Thu 09:00, Thu 12:30

CodexSocialKit connected
CHANGELOG.md
  1. ## 2.4.0
  2. Book a table online
  3. Pick indoor or terrace
  4. Reminder the day before

codex mcp add socialkit --url https://app.socialk.it/core/mcp

Draft a launch post for X and LinkedIn from CHANGELOG.md, then queue it.

  1. Read CHANGELOG.md3 changes
  2. list-accounts-toolauthorized_only: trueX, LinkedIn
  3. create-post-toolaccount_ids: [12, 18],schedule: "draft"Draft saved, 2 versions
  4. add-post-to-queue-tooluuid: "7c1e4f0a…"Next free slots taken
Fern & FigScheduled

Table booking is now online. Pick indoor or terrace, and we remind you the day before 🍕

Thu 12:30
Posting times
  1. Tue 18:00We are hiring a sous chef
  2. Thu 09:00Online booking is live at Fern & Fig. Guests choose indoor or terrace themselves and get a reminder the day before, so fewer tables stay empty. Thank you to everyone who asked for it.
  3. Thu 12:30Table booking is now online. Pick indoor or terrace, and we remind you the day before 🍕
Sign-in
You sign in to SocialKit in a browser window and allow access. A personal key works too.
Your Codex plan
ChatGPT Plus, Pro, Business, Edu or Enterprise, or an OpenAI API key. Free and Go include Codex, but OpenAI’s price table lists MCP servers from Plus up.
Where it works
Codex CLI, the IDE extension and the ChatGPT desktop app. One config file serves all three.
Before it changes anything
Codex asks before tools that remove something. One line in its config makes it ask before every other change too.

Connect Codex to SocialKit

You need a SocialKit account (any plan, or the 7-day free trial) and the server address below.

SocialKit MCP server URL

https://app.socialk.it/core/mcp

Codex CLI with sign-in

  • Sign-in window, no key
  • From the app’s official docs

On a machine without a browser, stop the first command with Ctrl+C while it waits: the server is already saved. Then add --no-browser to the login command and paste the address you land on back into the terminal.

  1. In the terminal, add the server. Codex opens a browser: sign in to SocialKit and click Allow access.
    bash
    codex mcp add socialkit --url https://app.socialk.it/core/mcp
  2. Run the login command only if no browser opened, or to sign in again later.
    bash
    codex mcp login socialkit
  3. Run codex mcp list to check it, or type /mcp inside Codex.

ChatGPT desktop app or IDE extension

  • Sign-in window, no key
  • From the app’s official docs

In the IDE extension, MCP servers is in the gear menu and the last button is Restart extension.

  1. Open Settings, then MCP servers, and click Add server.
  2. Enter socialkit as the name, choose Streamable HTTP and paste the server URL.
  3. Save the server, then click Restart.
  4. In the server list, click Authenticate next to socialkit, sign in to SocialKit and click Allow access.

Codex CLI with a personal key

  • Personal key
  • From the app’s official docs

For servers, containers and scripts, where nobody can sign in. Codex stores the name of the variable, not the key.

  1. Create a personal key in SocialKit. The steps are in the box below.
  2. Put the key in an environment variable. Add the line to your shell profile to keep it.
    bash
    export SOCIALKIT_KEY="YOUR_PERSONAL_KEY"
  3. Add the server with the name of that variable.
    bash
    codex mcp add socialkit --url https://app.socialk.it/core/mcp \
      --bearer-token-env-var SOCIALKIT_KEY
  4. Run codex mcp list to check it.

Create a personal key

Only for the ways above that use a key.

  1. In SocialKit, open the user menu and choose API.
  2. Create a personal key: give it a name and an expiry date. SocialKit asks for your password.
  3. Copy the key right away. You will not see it again.

The key acts as you, so treat it like a password. You can rotate or delete it on the same page.

Have Codex ask first

Whether Codex asks depends on your settings. This makes it ask.

  1. Open ~/.codex/config.toml and find the [mcp_servers.socialkit] part.
  2. Add this line in that part. writes asks before each tool that is not read only; prompt asks before every tool.
    ~/.codex/config.toml
    default_tools_approval_mode = "writes"
  3. Start a new Codex session.

As a second lock, sign in with a SocialKit member who cannot approve: every post the app schedules then waits as Needs approval. That member can still change or delete posts that are already scheduled, so let the app ask before it uses the update and delete tools.

Check that it works

Ask this first. It only reads, so nothing changes in your account.

List my SocialKit workspaces.

If your workspaces come back, the connection works.

Official docs

Checked against the official docs on

Prompts to copy into Codex

Ask in plain words. Under each request: the SocialKit tools it uses.

What Codex can do in SocialKit

32 tools: 16 only read, 14 change something, 2 remove something. They are included in every plan.

Posts 9Reads 2 · Changes 5 · Removes 2
  • list-posts-toolReads

    Finds posts by status, account, tag, word or date.

  • get-post-toolReads

    Opens one post: its versions, live links and publishing errors.

  • create-post-toolChanges

    Creates a post with one version per account: draft, now, at a time, or queued.

  • update-post-toolChanges

    Changes the text, accounts, tags or versions of a post.

  • update-post-version-toolChanges

    Changes the version of one account.

  • delete-post-version-toolRemoves

    Removes the version of one account.

  • duplicate-post-toolChanges

    Copies a post as a draft.

  • delete-post-toolRemoves

    Moves a post to the trash; on request deletes it for good, or on the networks too.

  • restore-post-toolChanges

    Brings a post back from the trash as a draft.

Workspaces and accounts 5Reads 4 · Changes 1
  • list-workspaces-toolReads

    Lists your workspaces and your role in each.

  • get-workspace-toolReads

    Opens one workspace: your role, your right to approve, its counts.

  • list-accounts-toolReads

    Lists the connected accounts and what each one can do.

  • get-account-toolReads

    Shows one account in detail.

  • run-account-action-toolChanges

    Lists or creates Pinterest boards.

Tags 6Reads 2 · Changes 4
  • list-tags-toolReads

    Lists your tags.

  • get-tag-toolReads

    Shows one tag.

  • create-tag-toolChanges

    Creates a tag with a name and a color.

  • update-tag-toolChanges

    Changes the name or color of a tag.

  • attach-tags-to-post-toolChanges

    Puts tags on a post.

  • detach-tags-from-post-toolChanges

    Takes tags off a post.

Scheduling and best times 4Reads 1 · Changes 3
  • schedule-post-toolChanges

    Schedules a post, or publishes it now.

  • unschedule-post-toolChanges

    Turns a scheduled post back into a draft.

  • add-post-to-queue-toolChanges

    Puts a post in the next free slot of your posting schedule.

  • get-best-posting-times-toolReads

    Gives the best weekday and hour, and the next good slots in 14 days.

Media and mentions 5Reads 4 · Changes 1
  • list-media-toolReads

    Lists the images, GIFs and videos of your media library.

  • get-media-toolReads

    Shows one file.

  • upload-media-by-url-toolChanges

    Adds an image, GIF or video from a public link.

  • get-media-upload-status-toolReads

    Tells whether a large file has finished loading.

  • list-mentions-toolReads

    Finds the people and pages you can @mention.

Analytics 3Reads 3
  • get-analytics-summary-toolReads

    Gives the whole workspace: followers, growth and posts.

  • get-account-analytics-toolReads

    Gives one account: overview, engagement, audience, reach and what its network reports.

  • get-post-analytics-toolReads

    Gives one post: views, likes, comments and shares per account.

What it cannot do

  • Approve a post. A person who can approve does that in SocialKit.
  • Read or answer comments, mentions and reviews in your inbox.
  • Use the AI writer or the AI images of SocialKit. The app you connect writes the text itself.
  • Take a file from the chat. Media comes from a public link or from your media library.
  • Connect a social account or change your posting schedule.
  • Create reports, delete tags or files, or retry a post that failed.

Limits on the Codex side

  • ChatGPT on the web does not read the Codex config. It uses plugins: see the ChatGPT page.
  • A .codex/config.toml inside a project counts only when you trust that project.
  • A server has 10 seconds to start and a tool has 60 seconds to answer. startup_timeout_sec and tool_timeout_sec change that.
  • A saved sign-in belongs to the Codex on that machine. Sign in again on another one.
  • On managed plans, the organization can decide which MCP servers Codex may use.

Your team’s rules still apply

The assistant signs in as you and acts with your role in each workspace. It only sees the workspaces you belong to.

Admin or Member with Can Approve on
Creates, schedules and publishes posts, the same as you can in the app.
Admin or Member with Can Approve off
The assistant can write and schedule, but every post it schedules waits as Needs approval until someone who can approve it does.
Viewer
Read only: posts, accounts and analytics. Any change it tries is refused.

Publishes to

Including Bluesky, Threads, Mastodon and Google Business, the networks many schedulers still leave out.

Run it from

See all apps

Let the AI app or automation tool you already use write, schedule and check your posts.

Codex and SocialKit: common questions

Start my free trial

7-day free trial · cancel anytime · 7-day money-back guarantee

For SocialKit: run codex mcp add socialkit --url https://app.socialk.it/core/mcp. Codex opens a browser for the sign-in. If it does not, run codex mcp login socialkit. In the ChatGPT desktop app, open Settings, MCP servers, Add server, and choose Streamable HTTP.

No. Codex opens a browser where you sign in to SocialKit. A personal key is the second way, for a machine or a script where nobody can sign in.

No. The CLI, the IDE extension and the ChatGPT desktop app read the same config file on that machine. Add SocialKit once and restart the other ones.

Its docs promise a question before tools that remove something. Add default_tools_approval_mode = "writes" to the SocialKit part of config.toml and Codex also asks before it creates, changes or schedules a post.

A page that names the app and what it will be able to do: create, edit, schedule, publish and delete posts, upload media, manage tags and see your analytics. It acts with your role. To stop it, open Profile, Connected apps and click Disconnect.

Yes, with the personal key in an environment variable. Use the key of a member who cannot approve, so everything the job schedules waits as Needs approval until a person approves it in SocialKit.

Your next week of posts, scheduled by lunch.

Start your 7-day free trial and see your whole week on one calendar.

Start my free trial

7-day free trial · cancel anytime · 7-day money-back guarantee