Skip to main content

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/callback
    
  2. Install Install pipx if not already installed

    pip install pipx
    

    Install linkedin-mcp

    pipx install linkedin-mcp
    
  3. Create .env file:

    LINKEDIN_CLIENT_ID=your_client_id
    LINKEDIN_CLIENT_SECRET=your_client_secret
    LINKEDIN_REDIRECT_URI=http://localhost:3000/callback
    

Claude Desktop Configuration

Add the following configuration to claude-desktop.json:

{
  "mcpServers": {
    "linkedin-mcp": {
      "command": "linkedin-mcp",
      "env": {
        "LINKEDIN_CLIENT_ID": "<yours>",
        "LINKEDIN_CLIENT_SECRET": "<yours>",
        "LINKEDIN_REDIRECT_URI": "<yours>"
      }
    }
  }
}

Development

Clone the repository and install the package in editable mode:

git clone https://github.com/FilippTrigub/linkedin-mcp.git
cd linkedin-mcp
uv venv

Run 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": "<yours>",
        "LINKEDIN_CLIENT_SECRET": "<yours>",
        "LINKEDIN_REDIRECT_URI": "<yours>"
      }
    }
  }
}

License

MIT License

Metadata

Release files for linkedin-mcp 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linkedin-mcp 0.1.7
File Size Uploaded Provenance Actions
linkedin_mcp-0.1.7.tar.gz 28.1 kB Without provenance Details for linkedin_mcp-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for linkedin-mcp 0.1.7
File Interpreter ABI Platform Actions
linkedin_mcp-0.1.7-py3-none-any.whl Python 3 none any Details for linkedin_mcp-0.1.7-py3-none-any.whl

Total release size: 31.1 kB

Release files / linkedin_mcp-0.1.7.tar.gz

Download URL linkedin_mcp-0.1.7.tar.gz
Size 28.1 kB
Tags Source
SHA-256 checksum
How to use checksums
883d5fcd4a9909f76115f54bb0cfcfd326a3226de26e29173046e0897a178745
BLAKE2b-256 checksum
How to use checksums
1d4809c807489afa5fb41f288d1e90bcca9d529b79637b19c2193cb85f58f6a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.11

Release files / linkedin_mcp-0.1.7-py3-none-any.whl

Download URL linkedin_mcp-0.1.7-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3bdd8e51443f2215528370763cb6e093682b1e98e77b72b2ce58d1f25b5e991e
BLAKE2b-256 checksum
How to use checksums
02c06ad4974b7872e5afe51e64d022d080c75225251f086fb34bb4391718b3e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.11

Security for linkedin-mcp 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page