linkedin-mcp
This server lets an AI assistant publish, schedule, and manage posts on the owner's own LinkedIn account through LinkedIn's official API.
auth_status— check whether the tool is authorized to post and as which member.publish_now— publish a text post immediately, withPUBLIC(default) orCONNECTIONSvisibility.schedule_post— queue a post for later using an ISO time (2026-08-20T09:00) or relative offset (+2h,+1d), published by the scheduler process.list_posts— read scheduled, published, or all posts.cancel_scheduled— remove a queued post by its id.post_brief— get a structured brief plus writing rules for a topic and archetype (build_in_public, lesson, teardown, opinion, result), then publish or schedule the result.content_calendar— get a safe weekly posting cadence and best-practice rules for steady growth.
Deliberate boundaries: official API only, operating the owner's own account — no scraping, automated connection requests, mass messaging, or engagement manipulation.
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., "@linkedin-mcp Schedule a LinkedIn post about our new feature for Friday."
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.
linkedin-mcp
MCP server for publishing and scheduling LinkedIn posts through LinkedIn's official API.
This project connects an AI assistant to a real external business platform through OAuth, MCP tools and the official LinkedIn API.
What it demonstrates
The interesting part is not posting text. It is the integration boundary:
AI assistant
↓
MCP tools
↓
OAuth / local token
↓
LinkedIn official API
↓
publish / schedule / historyThe server handles authorization, structured tool calls, scheduling and local token storage without relying on scraping.
Related MCP server: writio-mcp-server
Tools
Tool | Purpose |
| Inspect authorization state |
| Publish immediately |
| Queue a post for later |
| Read scheduled/published posts |
| Cancel a queued post |
| Create a structured content brief |
| Generate a sustainable posting cadence |
Deliberate boundaries
The project does not implement:
automated connection requests
scraping
mass messaging
auto-like/comment bots
engagement manipulation
It uses the official API and is intended for operating the owner's own LinkedIn account within LinkedIn's rules.
Setup
Create a LinkedIn application and configure the OAuth credentials:
export LINKEDIN_CLIENT_ID=...
export LINKEDIN_CLIENT_SECRET=...
export LINKEDIN_REDIRECT_URI=http://localhost:8710/callbackInstall:
git clone https://github.com/nadirzhon/linkedin-mcp
cd linkedin-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .Authorize:
python -m linkedin_mcp.authThe token is stored locally under ~/.linkedin-mcp/, not in the repository.
MCP configuration
Example client configuration:
{
"mcpServers": {
"linkedin": {
"command": "python",
"args": ["-m", "linkedin_mcp.server"],
"env": {
"LINKEDIN_CLIENT_ID": "...",
"LINKEDIN_CLIENT_SECRET": "..."
}
}
}
}After connection, an assistant can compose content, request a structured brief and publish or schedule it through the MCP interface.
Scheduling
Queued posts can be published by the included scheduler:
*/15 * * * * cd /path/to/linkedin-mcp && .venv/bin/python -m linkedin_mcp.scheduler >> ~/.linkedin-mcp/scheduler.log 2>&1Engineering highlights
MCP tool design
OAuth 2.0 / OpenID Connect integration
official REST API integration
local secure token storage
scheduled background execution
explicit capability boundaries
AI-to-business-system integration
Security
credentials are loaded from environment/local token storage
tokens are not committed to the repository
actions are performed as the authorized account
no scraping or unofficial automation layer
License
MIT © nadirzhon
Available Tools
7 toolsauth_statusA
Check whether the tool is authorized to post, and as which member.
Inputs: no named parameters.
cancel_scheduledA
Remove a queued post by its id.
Inputs: post_id (required).
content_calendarC
A safe weekly posting cadence and best-practice rules for steady growth.
Inputs: no named parameters.
list_postsB
List posts. kind: 'scheduled', 'published', or 'all'.
Inputs: kind.
post_briefA
Get a structured brief + rules to write a strong post on a topic.
archetype: build_in_public | lesson | teardown | opinion | result. Use the returned structure and rules to write the actual post, then publish_now or schedule_post it.
Inputs: topic (required), archetype.
publish_nowA
Publish a text post to your LinkedIn profile immediately.
text: the full post body. visibility: PUBLIC (default) or CONNECTIONS.
Inputs: text (required), visibility.
schedule_postA
Queue a post for later. It is published by the scheduler process.
when: ISO time ('2026-08-20T09:00') or relative ('+2h', '+1d').
Run the scheduler (cron or python -m linkedin_mcp.scheduler) so queued
posts actually go out.
Inputs: text (required), when (required), visibility.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose: auth_status checks authorization, publish_now posts immediately, schedule_post queues for later, list_posts retrieves posts, cancel_scheduled removes queued posts, post_brief gives content guidance, and content_calendar provides a posting cadence. No two tools overlap in function.
Naming mixes verb-first patterns (publish_now, schedule_post, list_posts, cancel_scheduled) with noun-first patterns (auth_status, post_brief, content_calendar). All are snake_case and readable, but the verb/noun order is inconsistent.
With 7 tools, the set is well-scoped for a LinkedIn posting server. Each tool earns its place without unnecessary bloat, covering authentication, publishing, scheduling, listing, canceling, and content guidance.
The core lifecycle is covered: create (publish/schedule), read (list), and delete (cancel scheduled). Missing operations like deleting published posts or editing scheduled posts are minor and can be worked around via cancel-and-recreate.
Maintenance
Related MCP Connectors
Draft LinkedIn posts in your voice, then schedule or publish them through LinkedIn's official API.
Schedule and publish LinkedIn posts to profiles and company pages from AI agents.
Publish and schedule LinkedIn posts from your AI assistant.
Schedule and publish to LinkedIn, X, and Threads from your AI. Content calendar, approval-first.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceManage your entire LinkedIn presence - write posts, schedule publishing, track contacts, and access saved content.1MIT
- AlicenseNot gradedqualityDmaintenanceLinkedIn-native AI content creation, scheduling & analytics. Write and post on LinkedIn, create drafts, generate hooks & hashtags, schedule posts, and track engagement — all through natural language.45 npmMIT
- AlicenseAqualityCmaintenanceEnables AI agents to publish posts, images, comments, and reactions to LinkedIn as the authenticated user, with built-in safety features like daily budgets and deduplication.91Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage LinkedIn workflows through a comprehensive set of tools for content generation, profile optimization, lead management, message outreach, engagement, analytics, scheduling, and industry research.MIT