---
title: "Connect Claude Code to LinkedIn: Posts From Your Repo"
description: "Add ThoughtMint to Claude Code with one command. Turn commits, changelogs and READMEs into LinkedIn posts in your voice, then schedule them. Set-up, prompts, all 16 tools."
canonical: "https://thoughtmint.ai/linkedin-mcp/claude-code/"
lang: "en"
---

[Home](https://thoughtmint.ai/)[LinkedIn MCP](https://thoughtmint.ai/linkedin-mcp/)Claude Code

[Claude](https://thoughtmint.ai/claude/)[Claude Code](https://thoughtmint.ai/linkedin-mcp/claude-code/)

# Connect Claude Code to LinkedIn

Claude Code can't post to LinkedIn on its own. Add ThoughtMint and it writes posts in your voice from what you shipped, then puts them on your calendar.

Run in your terminal

`claude mcp add --transport http thoughtmint https://thoughtmint.ai/mcp`

Then type /mcp in Claude Code and sign in. The steps are below.

[Create my first post free](https://thoughtmint.ai/signup/)

Starts after your first-post setup · 7 days or 2,500 AI words, whichever comes first · No credit card required

## Set it up in 3 steps

You need Claude Code and a ThoughtMint account. Sign-in happens on thoughtmint.ai, so Claude Code never sees your password.

1.  ### Add the server
    
    Run this command in your terminal.
    
    `claude mcp add --transport http thoughtmint https://thoughtmint.ai/mcp`
    
2.  ### Sign in
    
    In Claude Code, type `/mcp`, pick thoughtmint and sign in. A browser tab opens on thoughtmint.ai.
    
3.  ### Allow access
    
    ThoughtMint says "an app on this computer" wants access. If you just started this from Claude Code, click Allow.
    

**Check it worked.** Ask Claude Code: “What's my ThoughtMint voice profile?” If it describes how you write and who you write for, you’re connected.

## Prompts to paste into Claude Code

Swap the highlighted parts for your own.

-   Read CHANGELOG.md and the last 10 commits. Pick the change a \[customer type\] would care about most and write a ThoughtMint LinkedIn post about it. Show me the draft first.
    
-   Turn the README section \[section name\] into a 5-slide LinkedIn carousel with ThoughtMint.
    
-   List my ThoughtMint drafts from this week and suggest 3 new hooks for the weakest one.
    
-   Save these to my ThoughtMint idea bank: \[idea 1\], \[idea 2\], \[idea 3\].
    
-   Schedule my latest ThoughtMint draft for \[Tuesday 9am\]. Show me the final text before you schedule it.
    
-   How many ThoughtMint words do I have left this month?
    

## Every tool, labelled

16 tools. 8 only read. None of them can publish a post right away.

Tool

What it does

Type

`whoami`

Shows which ThoughtMint account is connected.

Reads only

`get_account_status`

Your plan, whether you're on the trial, and how many words you have left.

Reads only

`get_voice_profile`

Your role, audience, brand voice, content pillars and preferred call to action.

Reads only

`list_ideas`

Lists and searches the ideas in your idea bank, newest first.

Reads only

`save_idea`

Saves an idea to your idea bank. Uses no words.

Writes to ThoughtMint

`generate_ideas`

Suggests 1 to 7 post ideas on a topic for your audience. Uses words. Nothing is saved unless you ask.

Writes to ThoughtMint

`list_posts`

Lists your library posts, text and carousels, including scheduled and published ones.

Reads only

`get_post`

Opens one library post, or a carousel's slide text and caption.

Reads only

`list_drafts`

Lists your Post Writer drafts, newest first.

Reads only

`get_draft`

Opens one draft with its other hooks, a suggested first comment and any \[placeholders\] to fill in.

Reads only

`write_post`

Writes a LinkedIn post from an idea, in your voice, and saves it as a draft. Uses words.

Writes to ThoughtMint

`refine_post`

Revises a draft. Earlier versions are kept. Uses words.

Writes to ThoughtMint

`suggest_hooks`

Writes new opening lines for a draft without changing the post. Uses words.

Writes to ThoughtMint

`write_carousel`

Writes a carousel's slide text and caption. Uses words. Text only: nothing is designed or posted.

Writes to ThoughtMint

`schedule_post`

Puts a post on your ThoughtMint calendar, 15 minutes to 1 year ahead. Uses no words.

Schedules to LinkedIn

`unschedule_post`

Takes a scheduled post off the calendar and back to your drafts.

Schedules to LinkedIn

## You stay in control

-   **Nothing goes out straight away.** A post can only be scheduled 15 minutes or more ahead, so you have time to step in.
-   **ThoughtMint tries to email you a cancel link** after each post Claude schedules. If that email can't be sent, the post stays scheduled and Claude is told so.
-   **You can always cancel in ThoughtMint.** Open the calendar and unschedule the post, or ask Claude to do it.
-   **Your LinkedIn login stays with ThoughtMint.** You connect LinkedIn inside ThoughtMint, through LinkedIn's own sign-in. Claude only talks to ThoughtMint, and nothing scrapes LinkedIn.

In its default mode, Claude Code asks before it runs a tool. In auto mode, or with permissions bypassed, it can run `schedule_post` without asking. To get a yes before anything goes on your calendar, add `mcp__thoughtmint__schedule_post` to the ask list in your Claude Code permissions (`/permissions`). It then asks every time, even in auto mode.

### Turn it off any time

1.  In ThoughtMint, open Settings → Connected apps and click Disconnect.
2.  In your terminal, run `claude mcp remove thoughtmint`.

The connector reads and writes your own ThoughtMint account only. [How the connector handles your data](https://thoughtmint.ai/privacy/#claude-connector). Questions? Email [info@thoughtmint.ai](mailto:info@thoughtmint.ai?subject=Claude%20Code%20connector). New tools and fixes are in the [changelog](https://thoughtmint.ai/changelog/).

## What it costs

Writing posts, hooks and carousels**Uses your word allowance**

Reading, saving ideas, scheduling**Uses no words**

No extra charge for using it from Claude Code. It works on the trial and on every paid and lifetime plan.

## What it can’t do

-   **Publish right away.** Scheduling is the only way out, 15 minutes or more ahead.
-   **Post or design carousels.** You get the slide text and caption. Design it in ThoughtMint and post the PDF by hand.
-   **Delete anything.** No tool deletes posts, drafts or ideas.
-   **Post to Company Pages, read LinkedIn analytics or send messages.** Scheduled text posts go to your personal profile.

## If something’s off

`/mcp` says thoughtmint needs authentication

Pick thoughtmint in `/mcp` and sign in. A browser tab opens on thoughtmint.ai.

Claude Code doesn't use ThoughtMint

Name it in your prompt: "With ThoughtMint, write…"

Claude says a post can't be scheduled

Fill in any \[placeholders\] left in the draft first. A post that is already on LinkedIn, or a time less than 15 minutes away, is refused too.

A scheduled carousel didn't go out

Carousels never go out by themselves. Download the PDF in ThoughtMint and post it on LinkedIn by hand.

ThoughtMint says you are out of words

Your trial or monthly allowance is used up. Reading, saving ideas and scheduling still work.

A scheduled post didn't go out

Text posts go out by themselves only while LinkedIn is connected in ThoughtMint. If it isn't, the post stays on your calendar as a plan.

## Which Claude app should run your LinkedIn?

[

### Claude

Talk an idea through and get a post in your voice, on the web, desktop or phone.

Connect Claude →](https://thoughtmint.ai/claude/)[

### Claude Code

Post about what you built, straight from the repo.

You're here](https://thoughtmint.ai/linkedin-mcp/claude-code/)

How ThoughtMint’s server compares with other LinkedIn MCP servers is on the [LinkedIn MCP page](https://thoughtmint.ai/linkedin-mcp/).

## Frequently asked questions

Can Claude Code post to LinkedIn without me knowing?

It can't publish anything right away. A post can only be scheduled 15 minutes or more ahead. ThoughtMint then tries to email you a link that cancels it. If that email can't be sent, the post stays scheduled and Claude is told so. You can always cancel in ThoughtMint.

Is it safe for my LinkedIn account?

Claude never gets your LinkedIn login. You connect LinkedIn inside ThoughtMint through LinkedIn's own sign-in, and ThoughtMint publishes scheduled text posts through that connection. Nothing drives a browser or scrapes LinkedIn.

Can it read my LinkedIn messages or profile?

No. It reads and writes your own ThoughtMint account only: your profile, ideas, drafts, library and calendar. ThoughtMint gets what Claude sends to a tool, not your whole conversation.

Does it cost extra?

No. It's part of every ThoughtMint plan, including the trial and lifetime plans. Writing uses your word allowance, the same as in the app. Reading, saving ideas and scheduling use none. On the trial you get: 7 days or 2,500 AI words, whichever comes first.

Does it read my code?

Claude Code reads your files as it always does. ThoughtMint only gets what Claude Code sends to a tool, such as the idea or the facts for a post.

Does it work with ChatGPT or Cursor?

Not yet. It is built for Claude: Claude on the web, desktop and phone, and Claude Code.

## Post about what you shipped, in your voice

Create a ThoughtMint account and answer a few questions about your work, so posts sound like you. Then run the command in Claude Code.

[Create my first post free](https://thoughtmint.ai/signup/)

Starts after your first-post setup · 7 days or 2,500 AI words, whichever comes first · No credit card required
