MCP Dev.to + LinkedIn Integration
Allows posting articles and reading comments on Dev.to via the Forem API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Dev.to + LinkedIn IntegrationPost my latest article to Dev.to and LinkedIn"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Dev.to + LinkedIn Integration
Simple MCPs (Model Context Protocol) for automating posts to Dev.to (Forem) and LinkedIn via command-line, cron jobs, or Copilot sessions.
Features
📝 Post articles to Dev.to (Forem API v1)
💬 Read comments from Dev.to articles
🔗 Share posts on LinkedIn (UGC API)
⚙️ Works with cron jobs and Copilot sessions
🐍 Node.js & Python scripts
Related MCP server: Dev Blog MCP Server
Setup
1. Clone & Install
git clone https://github.com/YOUR_USERNAME/mcp-devto-linkedin.git
cd mcp-devto-linkedin
# Node setup
npm install
# Python setup
pip install -r requirements.txt2. Get API Keys & Tokens
Dev.to (Forem)
Scroll to "DEV Community API Keys"
Generate and copy your API key
Create or select your app
Under "Auth", copy your Access Token
Get your Person URN (typically shown in your profile or auth response as
urn:li:person:XXXXXXXXX)
3. Configure .env
cp .env.example .envEdit .env and add your credentials:
FOREM_API_KEY=your_devto_api_key
LINKEDIN_ACCESS_TOKEN=your_linkedin_access_token
LINKEDIN_PERSON_URN=urn:li:person:YOUR_IDUsage
Node.js
Post to Dev.to:
node scripts/forem-post.js --title "My Article" --body "# Hello\nContent here" --tags "javascript,mcp"Read Dev.to comments:
node scripts/forem-read-comments.js --article-id 12345Post to LinkedIn:
node scripts/linkedin-post.js --text "Check out my new article!" --visibility PUBLICPython
Post to Dev.to:
python scripts/forem_post.py --title "My Article" --body "# Hello\nContent" --tags "python,api"Read Dev.to comments:
python scripts/forem_read_comments.py --article-id 12345Post to LinkedIn:
python scripts/linkedin_post.py --text "Great article published!" --visibility PUBLICCron Job Examples
Daily post to Dev.to
0 9 * * * cd /path/to/mcp-devto-linkedin && node scripts/forem-post.js --title "Daily Update $(date +\%Y-\%m-\%d)" --body "Today's updates..." --tags "daily,update"Weekly LinkedIn share
0 10 * * MON cd /path/to/mcp-devto-linkedin && python scripts/linkedin_post.py --text "Happy Monday! Sharing insights..." --visibility PUBLICCopilot Integration
Use these scripts in Copilot sessions by referencing environment variables and scripts:
export FOREM_API_KEY="..."
export LINKEDIN_ACCESS_TOKEN="..."
export LINKEDIN_PERSON_URN="..."
node /path/to/mcp-devto-linkedin/scripts/forem-post.js --title "..." --body "..."API Documentation
Dev.to (Forem) API: https://developers.forem.com/api
LinkedIn UGC API: https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin
License
MIT
Related MCP Connectors
A free social media scheduler your AI tools can post through — LinkedIn, Bluesky, Mastodon, YouTube.
Marketing autopilot in your IDE. AI turns codebase and context into content for 10+ platforms
Draft, check and schedule posts to your connected social accounts from Claude, ChatGPT or Cursor.
Draft, schedule and publish social posts to nine platforms from any AI agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables publishing blog posts directly to Dev.to through the Model Context Protocol, allowing seamless content creation and publication via natural language interactions.MIT
- FlicenseAqualityDmaintenanceEnables AI assistants to publish blog posts directly to Dev.to via the Model Context Protocol.11-
- FlicenseNot gradedqualityCmaintenanceEnables validation and fixing of Dev.to markdown articles locally, and creation of unpublished drafts via the Forem API.-
- AlicenseNot gradedqualityCmaintenanceEnables analyzing LinkedIn developer profiles for optimization and generating high-engagement LinkedIn posts.84 npmMIT