Post to LinkedIn from Claude Code
Connect Claude Code to LinkedIn with the Postbase MCP server and schedule LinkedIn posts from your terminal. No API key, and every post lands on a calendar you can check.
Cancel anytime · or self-host for free
Connect Claude Code from the Developers page
Use your API key to automate Postbase — hook up an AI agent over MCP, script it from the CLI, or call the REST API directly.
API keys
A key authenticates the MCP server, the REST API, and the CLI. Shown once — store it safely.
pb_live_…9c1eMCP client configuration
Connect the Postbase MCP server to your AI tool so it can schedule and publish for you.
Authentication
No key to manage — your tool signs in through Postbase.
Client
Run this — Claude Code opens a browser for you to sign in to Postbase.
claude mcp add --transport http postbase https://mcp.postbase.so/mcpCopyConnected apps
Tools you've signed in to Postbase from. Revoking cuts off their access immediately.
Set up in three steps
- 1
Connect LinkedIn to Postbase
Open Channels in Postbase, pick LinkedIn and approve access on LinkedIn's own sign-in screen. Postbase never sees your password.
- 2
Add the server
Run the command in your terminal. Claude Code registers Postbase as a remote MCP server over HTTP.
- 3
Ask for LinkedIn posts
Tell Claude Code what to post on LinkedIn and when. Everything it schedules shows up in your Postbase calendar.
claude mcp add --transport http postbase https://mcp.postbase.so/mcpWhat to ask Claude Code
A few LinkedIn requests that work well.
“Write a LinkedIn post about the performance work in this release, with the benchmark numbers from bench/results.md. Link in the first comment.”
“Turn docs/launch.md into a LinkedIn post and schedule it for Tuesday at 8am.”
“Draft a LinkedIn post thanking the contributors in this release.”
How Claude Code's posts work on LinkedIn
- Length
- Up to 3,000 characters, but only the first few lines show before "see more", so the opening matters.
- First comment
- Ask for a two-part post and the second part is published as the first comment, the usual home for links on LinkedIn.
- Hashtags
- Postbase posts your text exactly as written, so hashtags and @mentions show as plain text rather than links.
Tips for better LinkedIn posts
- Ask for short paragraphs and no emoji bullets unless that's your style.
- Put the link in a second part so it becomes the first comment.
- Give it a real example of a past post you liked, so it matches your voice.
Frequently asked questions
Can it post to a LinkedIn company page?
Not yet. Postbase posts to personal LinkedIn profiles today; company pages are on the roadmap.
How do I get a link in the first comment?
Ask for a two-part post with the link in the second part. Postbase publishes the first part as the post and the second as its first comment.
Does Claude Code need my LinkedIn password?
No. You connect LinkedIn to Postbase once, and Claude Code signs in to Postbase, not to LinkedIn. You can revoke Claude Code's access from the Developers page at any time.
Can Claude Code delete my LinkedIn posts?
No. It can list channels, create drafts and scheduled posts, list the queue and cancel a scheduled post. There's no tool for deleting anything.
Related
- Claude Code + X
Post to X from Claude Code.
- Claude Code + Bluesky
Post to Bluesky from Claude Code.
- Claude Code + Mastodon
Post to Mastodon from Claude Code.
- Claude + LinkedIn
Post to LinkedIn from Claude.
- Cursor + LinkedIn
Post to LinkedIn from Cursor.
- LinkedIn post scheduler
Posts up to 3,000 characters with images and a first comment.
Ready to get started?
Connect Claude Code in a minute. It writes and schedules your LinkedIn posts, and you see every one in your calendar.
Cancel anytime · or self-host for free
Copy your key now — you won't see it again.
pb_live_Qm7xT2vLr9KcH0sWbN8y…4f2aCopyAuthentication
Client