LinkedIn MCP Server
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 Servershow my last 5 posts"
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 Server
Read your own LinkedIn posts and articles inside Claude Desktop (or any MCP host) via the official LinkedIn OAuth 2.0 API.
Compliance — This server uses only LinkedIn's official REST API with user-granted OAuth tokens. It accesses only the authenticated user's own data, performs no scraping, and stores no data beyond the local access token. Use is subject to the LinkedIn API Terms of Use.
Tools
Tool | Description |
| Start the OAuth flow — returns an auth URL to open in your browser |
| Verify the stored token is still valid |
| Return your LinkedIn profile (name, email, picture) |
| Fetch your most recent posts |
| Fetch your long-form articles (filtered from posts) |
| Full content of a single post by URN |
| Delete the stored token |
Related MCP server: LinkedIn MCP Server
Setup
1. LinkedIn Developer App
Go to linkedin.com/developers/apps and create an app (or use an existing one).
Under Auth, add
http://localhost:8080/callbackas an Authorized Redirect URL.Under Products, add:
Sign In with LinkedIn using OpenID Connect — provides
openid,profile,emailCommunity Management API — provides
r_member_social(required for reading posts)
Copy your Client ID and Client Secret.
2. Install dependencies
pip install -e .Or without installing as a package:
pip install fastmcp httpx python-dotenv3. Configure credentials
cp .env.example .envEdit .env:
LINKEDIN_CLIENT_ID=your_client_id
LINKEDIN_CLIENT_SECRET=your_client_secret
LINKEDIN_REDIRECT_URI=http://localhost:8080/callback4. Configure Claude Desktop
Edit %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"linkedin-posts": {
"command": "python",
"args": ["/absolute/path/to/server.py"],
"cwd": "/absolute/path/to/linkedin-mcp"
}
}
}Restart Claude Desktop after saving.
5. Authenticate
In Claude Desktop, ask:
"Call authenticate"
Open the returned URL in your browser, sign in, and grant access. The token is saved to ~/.linkedin_mcp_token.json automatically. Then try:
"Call get_my_posts"
Development / testing
Run the server with the MCP Inspector (browser UI for testing tools without Claude Desktop):
fastmcp dev inspector server.py --with-requirements requirements.txtIf fastmcp is not on your PATH, use the full path:
# Windows
C:\Users\<YOU>\AppData\Roaming\Python\Python3XX\Scripts\fastmcp.exe dev inspector server.pyToken lifecycle
LinkedIn access tokens are valid for 60 days.
There is no refresh token for standard apps — run
revoke_auth()thenauthenticate()when the token expires.The token is stored at
~/.linkedin_mcp_token.json(outside this repo).
Troubleshooting
Symptom | Fix |
Tools not visible in Claude Desktop | Fully quit and reopen Claude Desktop; check Settings → Developer for MCP logs |
| Add Community Management API to your LinkedIn app products, then re-authenticate |
| Run |
Port 8080 already in use | Change |
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
- platform7nOAuthtech.p7n
Connect Claude to your Platform7n workspaces — chat, links, and tasks. One-click OAuth.
- Gigi AIOAuthai.usegigi
LinkedIn outreach from Claude with a human veto. Gigi researches each prospect and drafts the connection request and follow-ups; from Claude you review, edit and approve drafts, triage replies, create and manage campaigns, and read outreach reports. Nothing is sent without an approval, every write tool asks first, and the connector cannot bypass LinkedIn caps or sending windows. Sign-in: OAuth with your Gigi account. Setup: https://usegigi.ai/connect-claude?ref=glama
LinkedIn outreach, commenting, scheduling, and data via Claude and human approval gates.
LinkedIn outreach, commenting, scheduling, and data via Claude and human approval gates.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceEnables posting text and media content directly to LinkedIn from Claude Desktop with support for authentication and visibility controls.11MIT
- AlicenseAqualityDmaintenanceEnables Claude to access and analyze LinkedIn profile data through the Model Context Protocol, allowing users to query their LinkedIn information directly within Claude Desktop.41MIT
- FlicenseNot gradedqualityDmaintenanceEnables ChatGPT and Claude Desktop to post text content directly to your LinkedIn profile using the official LinkedIn UGC Posts API with OAuth 2.0 authentication.-
- AlicenseAqualityDmaintenanceEnables Claude Desktop to manage your LinkedIn profile and company pages, including posting, reading posts, and fetching profile information.7105 npm4MIT