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: Start LinkedIn OAuth flow
  • handle_oauth_callback: Complete authentication
  • create_post: Create posts

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. Clone and install:

    git clone https://github.com/FilippTrigub/linkedin-mcp.git
    cd linkedin-mcp
    uv venv
    
  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": "uv",
      "args": [
        "--directory",
        "absolute\\path\\to\\linkedin-mcp",
        "run",
        "server.py"
      ],
      "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.4.tar.gz (21.3 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.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for linkedin_mcp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 321c9e716fc155a38888f47ceebabe4c1b54f9211750b1e30c7977d4796db837
MD5 3fbc0c5e370dd261de7de334a5a88d96
BLAKE2b-256 577d27993c00d80ba4a58c042fb1bd0938128152a777fa03c499c5c3c6c8cca6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for linkedin_mcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 00aebc911e9d893a7b11baf3dd8c1c46d196835f0698b54e23d096efd1e01ad0
MD5 fc860d746b13c760c3d55adfeb862038
BLAKE2b-256 8a0af2671b04a13a333ef815c76ede30c8dfc76685f7ce25ec21b827c45ef132

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