OAuth 2.1 · 14 tools · works in Claude, Codex, OpenClaw

The LinkedIn MCP Server for Claude, Codex and OpenClaw

You want to post to LinkedIn from your AI agent without leaving the chat. You are already in Claude working on positioning, you have a good idea, and publishing it means opening another tab and rewriting it worse. ViralBrain closes that gap.

  • OAuth 2.1, no API key
  • Works in Claude, Codex, OpenClaw
  • Drafts in your voice
In one line

What the LinkedIn MCP server does

ViralBrain runs a hosted MCP server so your AI agent can draft, generate images for, and schedule LinkedIn posts in your own voice, all from inside the tool you already work in. You connect it once with a single command, then ask Claude or Codex to write and queue your week. No browser extension, no pasted API key.

How it works

How to connect LinkedIn to your AI agent

Three steps from a fresh chat to a week of posts publishing on their own.

  1. Step 1

    Connect once

    Add the server with one line. Your browser opens, you approve the connection with OAuth, no key to copy.

  2. Step 2

    Ask your agent

    Tell Claude or Codex what you want. It drafts in your voice using your writing style and your hero creators.

  3. Step 3

    Schedule and forget

    Ask it to queue the week. ViralBrain auto-publishes through the official LinkedIn API at the right times.

Install

Install the MCP server for LinkedIn

Same endpoint for every client: https://viralbrain.ai/api/mcp

Claude
claude mcp add --transport http viralbrain https://viralbrain.ai/api/mcp
Codex
codex mcp add viralbrain --transport http --url https://viralbrain.ai/api/mcp
OpenClaw
openclaw mcp connect https://viralbrain.ai/api/mcp

Verify it worked. Ask your agent: “List my ViralBrain posts.” If it returns your drafts, you are connected.

What you get

The 14 tools your agent gets

Every tool the LinkedIn MCP server exposes, grouped by job.

Session
whoamiConfirm which ViralBrain account the agent is connected to
get_startedReturn an onboarding brief so the agent knows what it can do
get_skillLoad the ViralBrain skill so the agent knows how to write well
Posts
list_postsList your drafts and scheduled posts
get_postFetch a single post by id
create_postSave a new post to your drafts
generate_postGenerate a post in your voice from a topic or source
update_postEdit an existing draft or scheduled post
Schedule
schedule_postQueue a post for auto-publish at a chosen time
unschedule_postPull a post back out of the queue
Voice
list_voicesList your writing voices and analyzed hero creators
Context
add_contextFeed the agent a source (article, note, transcript) to write from
Images
generate_imageGenerate an image for a post
upload_imageAttach your own image to a post
The difference

Why an MCP server for LinkedIn, not an API key

No other LinkedIn tool exposes an MCP server. Taplio, AuthoredUp, Supergrow and the rest are apps you open in a browser, so posting from Claude means copy-paste. ViralBrain is the one you can drive from the agent directly.

It also connects with OAuth 2.1 rather than a pasted API key. ViralBrain is its own authorization server, so an agent gets scoped access you approve in the browser and can revoke in one click at connected apps. The drafts it writes use your writing style and the post generator engine, so they sound like you, not a generic model.

Who the LinkedIn MCP server is for, and its limits

Who it is for

  • Founders and marketers who live in Claude or Codex
  • Anyone whose LinkedIn drafts die in a separate tab
  • Developers who want posting inside their existing agent workflow
  • People who want AI drafts that match their own voice

Honest limits

  • LinkedIn only. If you want to post to X or Instagram from your agent, this is not it.
  • If you are hunting a free open-source scraper for public LinkedIn data, this is a different thing: it is for creating and scheduling your own posts.
  • Full 30-day auto-publishing is a Premium feature, not part of the free tier.
FAQ

LinkedIn MCP server FAQ

  • It is a hosted server that connects ViralBrain to AI agents through the Model Context Protocol, so Claude, Codex or OpenClaw can draft, image and schedule LinkedIn posts in your voice without you leaving the chat. It lives at https://viralbrain.ai/api/mcp and exposes 14 tools.
€1 trial · 7 days

Automate your LinkedIn for 30 days

ViralBrain plans, writes, and schedules your LinkedIn content — using official LinkedIn APIs so your account stays safe.

  • Official LinkedIn APIs — no risk of ban
  • You approve every post before it goes live
  • Cancel anytime
Start €1 trial€39 Pro or €69 Premium · cancel anytime

Already have an account? Connect your agent. Read the best MCP servers for marketers or see pricing.