Skip to main content

LinkedIn MCP server with auth and posting tools.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linkedin_mcp-0.1.7.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linkedin_mcp-0.1.7-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file linkedin_mcp-0.1.7.tar.gz.

File metadata

  • Download URL: linkedin_mcp-0.1.7.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.11

File hashes

Hashes for linkedin_mcp-0.1.7.tar.gz
Algorithm Hash digest
SHA256 883d5fcd4a9909f76115f54bb0cfcfd326a3226de26e29173046e0897a178745
MD5 1782c9171e3bdf53b87346e7986ee964
BLAKE2b-256 1d4809c807489afa5fb41f288d1e90bcca9d529b79637b19c2193cb85f58f6a6

See more details on using hashes here.

File details

Details for the file linkedin_mcp-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for linkedin_mcp-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 3bdd8e51443f2215528370763cb6e093682b1e98e77b72b2ce58d1f25b5e991e
MD5 1bf82e6530410866c6fcdd30dd2c946e
BLAKE2b-256 02c06ad4974b7872e5afe51e64d022d080c75225251f086fb34bb4391718b3e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page