OpenCode MCP server for social media

SocialKit runs an MCP server that you add to OpenCode with one command. Sign in once, and your agent can draft, schedule and check posts on 11 social networks and read your analytics next to your code. OpenCode does not ask before it runs these tools, so this page also shows the rule that makes it ask.

Start my free trial

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

Scheduled · Thu 09:00, Thu 12:30

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

opencode 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 the browser and allow access. A personal key in a header works too.
Your OpenCode plan
None. OpenCode is open source. You connect the AI model you want.
Where it works
In the terminal, the desktop app and the web app of OpenCode.
Before it changes anything
Not by default: OpenCode allows every tool. A permission rule makes it ask.

Connect OpenCode 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

One command with sign-in

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

OpenCode 1 always saves the server for all projects. Leave out --global there.

  1. Add the server. With --global it works in every project; without it, only in the project you are in.
    bash
    opencode mcp add socialkit --global --url https://app.socialk.it/core/mcp
  2. Start the sign-in. Sign in to SocialKit in the browser and click Allow access.
    bash
    opencode mcp auth socialkit
  3. Check the server. It should say connected.
    bash
    opencode mcp list

Config file with sign-in

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

For people who keep their settings in a repository. No key is written in the file.

  1. OpenCode 2: put the server under mcp.servers.
    opencode.jsonc (OpenCode 2)
    {
      "$schema": "https://opencode.ai/config.json",
      "mcp": {
        "servers": {
          "socialkit": {
            "type": "remote",
            "url": "https://app.socialk.it/core/mcp"
          }
        }
      }
    }
  2. OpenCode 1: put it directly under mcp. OpenCode 2 still reads this form.
    opencode.json (OpenCode 1)
    {
      "$schema": "https://opencode.ai/config.json",
      "mcp": {
        "socialkit": {
          "type": "remote",
          "url": "https://app.socialk.it/core/mcp"
        }
      }
    }
  3. Start OpenCode, run /mcps, select SocialKit and sign in. In OpenCode 1, run opencode mcp auth socialkit.

Personal key

  • Personal key
  • From the app’s official docs

For CI and servers where nobody can open a browser. OpenCode reads the key from an environment variable, so it is not in the file.

  1. Create a personal key in SocialKit. The steps are in the box below.
  2. Put the key in a variable of your shell.
    bash
    export SOCIALKIT_KEY="YOUR_PERSONAL_KEY"
  3. Add the server with the key as a header. Keep the single quotes: OpenCode must read {env:SOCIALKIT_KEY} as written.
    bash
    opencode mcp add socialkit --url https://app.socialk.it/core/mcp \
      --header 'Authorization=Bearer {env:SOCIALKIT_KEY}'

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 OpenCode ask first

By default OpenCode runs tools without asking you. This makes it ask.

  1. OpenCode 2: add these rules to the global config. The last rule that matches wins, so OpenCode asks for every SocialKit tool except the ones that only list or get.
    ~/.config/opencode/opencode.jsonc (OpenCode 2)
    {
      "permissions": [
        { "action": "socialkit_*", "resource": "*", "effect": "ask" },
        { "action": "socialkit_list-*", "resource": "*", "effect": "allow" },
        { "action": "socialkit_get-*", "resource": "*", "effect": "allow" }
      ]
    }
  2. OpenCode 1: the same rules go under permission.
    ~/.config/opencode/opencode.json (OpenCode 1)
    {
      "permission": {
        "socialkit_*": "ask",
        "socialkit_list-*": "allow",
        "socialkit_get-*": "allow"
      }
    }
  3. Do not start it with --auto. In that mode OpenCode approves what it would ask you.

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 OpenCode

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

What OpenCode 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 OpenCode side

  • OpenCode 1 and OpenCode 2 write the server in a different place. OpenCode 2 reads both forms, OpenCode 1 reads only its own.
  • In OpenCode 2 a project entry with the same name replaces the whole global one. Repeat every line you need.
  • OpenCode 2 calls MCP tools from small scripts (Code Mode). The permission rules still apply to each call. "codemode": false on the server turns it off.
  • Leave protocol on its default. With 2026-07-28 the connection to SocialKit fails.
  • Every MCP server takes space in the context of the model. Add only the ones you need.
  • Windows package managers are not supported for OpenCode 2. Download the binary instead.

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.

OpenCode and SocialKit: common questions

Start my free trial

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

Run opencode mcp add with a name and the URL. For SocialKit: opencode mcp add socialkit --global --url https://app.socialk.it/core/mcp. Then run opencode mcp auth socialkit to sign in, and opencode mcp list to check it.

OpenCode 2 groups servers under mcp.servers and uses disabled where version 1 used enabled. Permission rules became an ordered list named permissions. Version 2 still reads a version 1 file.

Not by default: its base rule allows every tool. Add the ask rule on this page. You can also sign in with a SocialKit member who cannot approve posts; what the agent schedules then waits as Needs approval.

Open the sign-in page in your own browser. After you allow access, the browser shows a page that does not load. Copy its address and paste it in the sign-in prompt of OpenCode.

Yes. Deny socialkit_* in the global permissions and allow it in the permissions of that agent. Agent rules come after the global ones, so they win.

No. SocialKit takes media from a public link or from your media library. Put the image on a public address first, then give OpenCode the link.

Run opencode mcp logout socialkit on your computer. In SocialKit, open Profile, then Connected apps, and click Disconnect. With a personal key, delete the key 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