MCP Server opencode.json

Post to Social Media with OpenCode TikTok, Instagram, YouTube & 10 more — from the terminal

Add one block to opencode.json and OpenCode gains 40 tools to publish, schedule, analyze and manage social media from a prompt.

opencode.json
{
  "mcp": {
    "upload-post": {
      "type": "remote",
      "url": "https://mcp.upload-post.com/mcp",
      "headers": {
        "Authorization": "ApiKey YOUR_API_KEY"
      },
      "enabled": true
    }
  }
}

Connect OpenCode in 3 steps

About three minutes from a fresh terminal to your first AI-published post.

Step 1

Get your API key

Create a free Upload-Post account, connect your social accounts once, and copy your API key from the dashboard.

Step 2

Add the config block

Paste the snippet below under the mcp key in opencode.json — project-level or global. type "remote" points OpenCode at the hosted server.

Step 3

Verify and prompt

Run opencode mcp debug upload-post to test connectivity, then just ask OpenCode to post. The 40 tools are discovered automatically.

Prefer another client? See ChatGPT, Claude, Cursor or the full MCP server guide.

What OpenCode can do once connected

Every capability maps to documented Upload-Post tools — OpenCode picks the right one from your prompt.

Publish anywhere

Post videos, photos, text and documents to TikTok, Instagram, YouTube, LinkedIn, Facebook, X, Threads, Reddit, Bluesky, Pinterest, Google Business, Discord and Telegram.

Schedule from the CLI

"Schedule this for Monday at 10:00" — OpenCode turns it into a scheduled post and confirms.

Pull analytics

Ask for impressions, engagement or per-platform metrics over any date range, right in the terminal.

Manage comments & DMs

Read comments, reply publicly or privately, and review DM conversations from a prompt.

Edit video on the fly

Trim, re-encode or convert clips with the built-in FFmpeg tools before publishing.

Script & automate

Wire posting into scripts, cron jobs and CI — OpenCode plus 40 tools makes social a build step.

Try these prompts in OpenCode

No commands to memorize — just describe what you want.

“Publish this video to TikTok and Instagram under profile "marketing", caption: "Spring launch".”
“We just tagged v2.0 — draft and post a release thread on X and a LinkedIn update.”
“Schedule a LinkedIn text post for next Monday at 10:00 Madrid time.”
“Show me analytics for profile "marketing" over the last month.”
“Reply privately to the latest comment on my Instagram post.”
“Trim demo.mp4 to the first 30 seconds and upload it as a TikTok.”

Frequently asked questions

OpenCode + social media, answered. Last updated June 2026.

Can OpenCode post to social media?

Yes. Add the Upload-Post MCP server under the mcp key in opencode.json and OpenCode can publish, schedule and analyze posts on TikTok, Instagram, YouTube, LinkedIn and 9 more networks from a natural-language prompt.

How do I configure a remote MCP server in OpenCode?

Use type "remote" with the server URL and an Authorization header in opencode.json. OpenCode also supports OAuth automatically: if a server answers 401, it starts the OAuth flow and stores the tokens for you.

Does OpenCode need my social media passwords?

No. Your Upload-Post API key travels in the Authorization header, and Upload-Post holds the platform connections. OpenCode only calls documented tools — it never sees your passwords.

How do I debug the connection?

Run opencode mcp debug upload-post to test HTTP connectivity and the auth flow, or opencode mcp auth list to review authentication status for all configured servers.

Is the MCP server free?

The MCP server is free and open-source (MIT). It works with any Upload-Post plan, including the free tier — you just need an Upload-Post account and API key.

Can I automate posting with scripts or cron?

Yes. OpenCode runs in the terminal, so you can drive posting from shell scripts, cron jobs or CI pipelines — "post the latest build demo every Friday" becomes a one-line job.

Turn OpenCode into your social media manager

Free to start, no credit card. Connect your accounts once and let OpenCode do the posting.