Skip to main content

MCP server wrapping the LinkedIn Python SDK (v202510)

Project description

linkedin-mcp

MCP server for the LinkedIn API v202510 — create posts, upload media, manage engagement, and schedule content.

Installation

Claude Desktop (one-click)

Download the .mcpb extension from the latest release and double-click to install.

Manual

uvx ldraney-linkedin-mcp

Or add to your Claude Code config:

{
  "mcpServers": {
    "linkedin": {
      "command": "uvx",
      "args": ["ldraney-linkedin-mcp"],
      "env": {
        "LINKEDIN_ACCESS_TOKEN": "your_token",
        "LINKEDIN_PERSON_ID": "your_person_id"
      }
    }
  }
}

Authentication

The server supports multiple authentication methods:

  1. Environment variables: Set LINKEDIN_ACCESS_TOKEN and LINKEDIN_PERSON_ID
  2. OS Keychain: Use the save_credentials tool to store credentials securely
  3. OAuth flow: Use get_auth_url to start the OAuth flow

Tools (21)

Auth (4)

  • get_auth_url — Get LinkedIn OAuth authorization URL
  • exchange_code — Exchange OAuth code for access token
  • save_credentials — Save credentials to OS keychain
  • refresh_token — Refresh an expired token

Posts (4)

  • create_post — Create a text post
  • get_my_posts — List your recent posts
  • delete_post — Delete a post
  • update_post — Update a post

Media (6)

  • create_post_with_link — Post with article preview
  • create_post_with_image — Post with image
  • create_post_with_document — Post with PDF/DOC/PPT
  • create_post_with_video — Post with video
  • create_poll — Create a poll
  • create_post_with_multi_images — Post with multiple images

Engagement (2)

  • add_comment — Comment on a post
  • add_reaction — React to a post

Users (1)

  • get_user_info — Get your profile info

Scheduler (4)

  • schedule_post — Schedule a future post
  • list_scheduled_posts — List scheduled posts
  • cancel_scheduled_post — Cancel a scheduled post
  • get_scheduled_post — Get scheduled post details

License

MIT

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

ldraney_linkedin_mcp-0.1.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

ldraney_linkedin_mcp-0.1.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file ldraney_linkedin_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: ldraney_linkedin_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for ldraney_linkedin_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 57e04b5591e5317e14a19c2419973b8e59a33ff74e48cd5ae1370353f36f940b
MD5 2e85ca7a07118da476e3ffdaa7f37195
BLAKE2b-256 828c997cd58d5066f9f7567f46ded5398bd3bb7fa9a1ee69f1f8eeb2a2be3682

See more details on using hashes here.

File details

Details for the file ldraney_linkedin_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ldraney_linkedin_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f2dde5134e337dd4e7fa9a061f87f6654f607aea4d86b1d5fbc49ab2e906a22
MD5 3a13c61ba0198c96502b1314a709d9db
BLAKE2b-256 27896a0b62f0dc569ef974232dc4469f432d042a8677f203c597076ba30c1424

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