LinkedIn Post Generator
A Model Context Protocol (MCP) server that automates generating professional LinkedIn post drafts from YouTube videos. This tool streamlines content repurposing by extracting transcripts from YouTube videos, summarizing the content, and generating engaging LinkedIn posts tailored to your preferences.
Table of Contents
- Features
- Installation
- Local Development
- Using with Claude Desktop
- Configuration
- Usage
- Available Tools
- Workflow Example
- Deployment
- License
Features
- YouTube Transcript Extraction: Automatically extract transcripts from any YouTube video
- Content Summarization: Generate concise summaries with customizable tone and target audience
- LinkedIn Post Generation: Create professional LinkedIn posts with customizable style and tone
- All-in-One Workflow: Go from YouTube URL to LinkedIn post in a single operation
- Customization Options: Adjust tone, audience, word count, and more to match your personal brand
- MCP Integration: Works seamlessly with AI assistants that support the Model Context Protocol
Installation
Local Development
Clone the repository:
git clone https://github.com/NvkAnirudh/LinkedIn-Post-Generator.git cd LinkedIn-Post-Generator
Install dependencies:
npm install
Create a
.env
file based on the example:cp .env.example .env
Add your API keys to the
.env
file:OPENAI_API_KEY=your_openai_api_key YOUTUBE_API_KEY=your_youtube_api_key
Run the server:
npm run dev
Test with MCP Inspector:
npm run inspect
Using with Claude Desktop
This MCP server is designed to work with Claude Desktop and other AI assistants that support the Model Context Protocol. To use it with Claude Desktop:
Install the LinkedIn Post Generator MCP server from Smithery:
npx -y @smithery/cli install yt-to-linkedin-mcp --client claude
Restart Claude Desktop
In Claude Desktop, you can now access the LinkedIn Post Generator tools
Configuration
The application requires API keys to function properly:
- OpenAI API Key (required): Used for content summarization and post generation
- YouTube API Key (optional): Enhances YouTube metadata retrieval
You can provide these keys in two ways:
- As environment variables in a
.env
file - Directly through the MCP interface using the
set_api_keys
tool
Usage
Available Tools
Set API Keys
- Tool:
set_api_keys
- Purpose: Configure your API keys
- Parameters:
openaiApiKey
: Your OpenAI API key (required)youtubeApiKey
: Your YouTube API key (optional)
Check API Keys
- Tool:
check_api_keys
- Purpose: Verify your API key configuration status
Extract Transcript
- Tool:
extract_transcript
- Purpose: Get the transcript from a YouTube video
- Parameters:
youtubeUrl
: URL of the YouTube video
Summarize Transcript
- Tool:
summarize_transcript
- Purpose: Create a concise summary of the video content
- Parameters:
transcript
: The video transcript texttone
: Educational, inspirational, professional, or conversationalaudience
: General, technical, business, or academicwordCount
: Approximate word count for the summary (100-300)
Generate LinkedIn Post
- Tool:
generate_linkedin_post
- Purpose: Create a LinkedIn post from a summary
- Parameters:
summary
: Summary of the video contentvideoTitle
: Title of the YouTube videospeakerName
: Name of the speaker (optional)hashtags
: Relevant hashtags (optional)tone
: First-person, third-person, or thought-leaderincludeCallToAction
: Whether to include a call to action
All-in-One: YouTube to LinkedIn Post
- Tool:
youtube_to_linkedin_post
- Purpose: Complete workflow from YouTube URL to LinkedIn post
- Parameters:
youtubeUrl
: YouTube video URLtone
: Desired tone for the post- Plus additional customization options
Workflow Example
- Set your API keys using the
set_api_keys
tool - Use the
youtube_to_linkedin_post
tool with a YouTube URL - Receive a complete LinkedIn post draft ready to publish
Deployment
This server is deployed on Smithery, a platform for hosting and sharing MCP servers. The deployment configuration is defined in the smithery.yaml
file.
To deploy your own instance:
- Create an account on Smithery
- Install the Smithery CLI:
npm install -g @smithery/cli
- Deploy the server:
smithery deploy