LinkedIn MCP Server
A FastMCP server for LinkedIn automation that provides comprehensive LinkedIn API integration with support for creating, updating, and deleting posts with media (images, videos, documents).
Power your agent
การติดตั้งจากผู้เผยแพร่ ไม่ใช่เอนด์พอยต์ของ PlugMCP
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดจากผู้เผยแพร่
A FastMCP server for LinkedIn automation that provides comprehensive LinkedIn API integration with support for creating, updating, and deleting posts with media (images, videos, documents).
A FastMCP server for LinkedIn automation that provides comprehensive LinkedIn API integration with support for creating, updating, and deleting posts with media (images, videos, documents).
uv package managerw_member_social: Write access to member's social postsr_liteprofile: Read basic profile informationClone or download the project
mkdir linkedin-mcp
cd linkedin-mcp
Install dependencies
uv init
uv add fastmcp>=2.12.4 requests
Set up LinkedIn API credentials
w_member_social permissionUpdate the following variables in main.py with your LinkedIn credentials:
# LinkedIn API Credentials (REPLACE WITH YOUR VALUES)
LINKEDIN_ACCESS_TOKEN = "YOUR_ACCESS_TOKEN_HERE"
LINKEDIN_MEMBER_URN = "urn:li:person:YOUR_MEMBER_ID"
LINKEDIN_API_BASE = "https://api.linkedin.com/v2"
Access Token:
w_member_social permissionMember URN:
/me endpoint to get your profileurn:li:person:XXXXXXXXXX# Start in development mode
uv run fastmcp dev main.py
The server will start on http://localhost:6274 with MCP Inspector available for testing.
create_post(
content="Hello LinkedIn! This is my first MCP post.",
media_type="TEXT"
)
create_post(
content="Check out this amazing image!",
media_type="IMAGE",
file_path="C:/path/to/your/image.jpg"
)
create_post(
content="Watch this cool video!",
media_type="VIDEO",
file_path="C:/path/to/your/video.mp4"
)
create_post(
content="Read my latest report",
media_type="DOCUMENT",
file_path="C:/path/to/your/document.pdf"
)
update_post(
post_id="urn:li:ugcPost:1234567890",
new_text="Updated post content"
)
delete_post(post_id="urn:li:ugcPost:1234567890")
# or for legacy shares
delete_post(post_id="urn:li:share:1234567890")
The server uses intelligent timeout handling:
File upload timeouts are dynamic based on file size:
The server provides comprehensive error handling:
The server properly handles different LinkedIn URN formats:
urn:li:ugcPost:{id}urn:li:share:{id}linkedin-mcp/
├── main.py # Main MCP server code
├── pyproject.toml # Python project configuration
├── README.md # This file
└── .env # Environment variables (optional)
Create a new LinkedIn post with optional media.
Parameters:
content (str): Text content of the postmedia_type (str): Type of media - "TEXT", "IMAGE", "VIDEO", or "DOCUMENT"file_path (str, optional): Absolute path to media fileReturns:
Update the text content of an existing UGC post.
Parameters:
post_id (str): Post URN (e.g., "urn:li:ugcPost:1234567890")new_text (str): New text contentReturns:
Delete a LinkedIn post (supports both UGC and Share formats).
Parameters:
post_id (str): Post URN (e.g., "urn:li:ugcPost:1234567890" or "urn:li:share:1234567890")Returns:
"ACCESS_DENIED" errors
w_member_social permission"File not found" errors
Upload timeouts
Invalid URN format
urn:li:ugcPost: or urn:li:share:Start the server with debug logging:
uv run fastmcp dev main.py --debug
This project is provided as-is for educational and development purposes. Please ensure compliance with LinkedIn's API Terms of Service.
Feel free to submit issues, feature requests, or pull requests to improve this LinkedIn MCP server.
For questions or issues:
http://localhost:6274Note: Replace all placeholder credentials in main.py with your actual LinkedIn API credentials before running the server.
A FastMCP server for LinkedIn automation that provides comprehensive LinkedIn API integration with support for creating, updating, and deleting posts with media (images, videos, documents).
เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ระเบียนนี้ไม่ได้ระบุตัวแปรสภาพแวดล้อมที่จำเป็น
LinkedIn ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-10-27 A FastMCP server for LinkedIn automation that provides comprehensive LinkedIn API integration with support for creating, updating, and deleting posts with media (images, videos, documents).