linkedin-mcp
An MCP server to use the LinkedIn API.
Documentation
LinkedIn MCP Server
Post to LinkedIn directly from Claude Desktop with support for text and media attachments.
Features
- Post text updates to LinkedIn
- Attach images and videos to posts
- Control post visibility (public/connections)
- OAuth2 authentication flow
- Secure token storage
Tools
- `authenticate`: Authenticate with LinkedIn
- `create_post`: Create and share posts optionally with media attachments
- state the file path to the relevant media file to attach it to the post
Setup
1. Create a LinkedIn Developer App:
Visit https://www.linkedin.com/developers/apps
Create new app
Add product permissions: Log In to LinkedIn and Share on LinkedIn
Configure OAuth redirect URL: http://localhost:3000/callback2. Install
Install `pipx` if not already installed
pip install pipxInstall linkedin-mcp
pipx install linkedin-mcp3. Create `.env` file:
LINKEDIN_CLIENT_ID=your_client_id
LINKEDIN_CLIENT_SECRET=your_client_secret
LINKEDIN_REDIRECT_URI=http://localhost:3000/callbackClaude Desktop Configuration
Add the following configuration to `claude-desktop.json`:
{
"mcpServers": {
"linkedin-mcp": {
"command": "linkedin-mcp",
"env": {
"LINKEDIN_CLIENT_ID": "",
"LINKEDIN_CLIENT_SECRET": "",
"LINKEDIN_REDIRECT_URI": ""
}
}
}
}Development
Clone the repository and install the package in editable mode:
git clone https://github.com/FilippTrigub/linkedin-mcp.git
cd linkedin-mcp
uv venvRun the server from development directory:
{
"mcpServers": {
"linkedin-mcp": {
"command": "uv",
"args": [
"--directory",
"absolute\\path\\to\\linkedin-mcp",
"run",
"-m",
"linkedin_mcp.server"
],
"env": {
"LINKEDIN_CLIENT_ID": "",
"LINKEDIN_CLIENT_SECRET": "",
"LINKEDIN_REDIRECT_URI": ""
}
}
}
}License
MIT License
Frequently asked questions
What is linkedin-mcp?
linkedin-mcp is An MCP server to use the LinkedIn API.
How do I install linkedin-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is linkedin-mcp open source?
Yes — it is hosted on GitHub at https://github.com/FilippTrigub/linkedin-mcp and has 10 stars.
Related MCP tools
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Automate browser based workflows with AI
Hindsight: Agent Memory That Learns
A privacy-first app that strips AI watermarks from content you own.
Agent framework and applications built upon Qwen>=3.0, featuring Function Calling, MCP, Code Interpreter, RAG, Chrome extension, etc.
The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP