LinkedIn MCP Server
Click on "Install 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jahnavi-yarramsetty/linkedin-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server