MCP Dev.to + LinkedIn Integration
Automates posting articles to Dev.to and sharing posts on LinkedIn via command-line, cron jobs, or Copilot sessions.
README
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
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.txt
2. Get API Keys & Tokens
Dev.to (Forem)
- Go to https://dev.to/settings/account
- Scroll to "DEV Community API Keys"
- Generate and copy your API key
- Go to https://www.linkedin.com/developers/apps
- 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 .env
Edit .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_ID
Usage
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 12345
Post to LinkedIn:
node scripts/linkedin-post.js --text "Check out my new article!" --visibility PUBLIC
Python
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 12345
Post to LinkedIn:
python scripts/linkedin_post.py --text "Great article published!" --visibility PUBLIC
Cron 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 PUBLIC
Copilot 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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.