Skip to main content

LinkedIn Automation MCP

A Model Context Protocol (MCP) server that provides LinkedIn automation and scraping functionality. This package allows you to automate various LinkedIn tasks including profile scraping, post creation, and connection management.

Features

  • Scrape LinkedIn Posts: Retrieve recent posts from specified LinkedIn profiles
  • Send LinkedIn Connection Requests: Find profiles based on a search query and send connection requests, optionally including a personalized note
  • Get Profile Information: Obtain basic information about specific LinkedIn profiles
  • Post Content to LinkedIn: Create and post new content on LinkedIn on behalf of the user
  • Combine all these to automate a lot of linkedin tasks together

Components

Prompts

The server provides several prompts for different LinkedIn automation tasks:

  • scrape_content_and_post_to_linkedin: Scrape content and create LinkedIn posts
  • research_and_create_linkedin_post: Research topics and generate posts
  • post_to_linkedin: Publish content to LinkedIn
  • get_profile_info: Extract LinkedIn profile information
  • scrape_posts: Collect posts from LinkedIn
  • send_connection_requests: Manage connection requests
  • generate_post: Create engaging LinkedIn content

Tools

The package implements various tools in the tools directory:

  • LinkedIn automation utilities
  • Browser interaction helpers
  • Content generation tools
  • Data models for structured information

Installation

Requires UV (Fast Python package and project manager)

If UV isn't installed:

# Using Homebrew on macOS 
brew install uv

# On macOS and Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Install the package:

# Install from PyPI
uv pip install linkedin-automation-mcp

# Install from source
uv pip install git+https://github.com/shahshrey/linkedin-automation.git

Claude Desktop

Add this tool as a mcp server by editing the Claude config file.

The config file location depends on your operating system:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json
{
  "linkedin-automation": {
    "command": "uv",
    "args": ["run", "linkedin-automation-mcp"],
    "env": {
      "LINKEDIN_EMAIL": "your_email@example.com",
      "LINKEDIN_PASSWORD": "your_password"
    }
  }
}

To verify the server is working. Open the Claude client and use a prompt like "search about RAG, write a post on it in my style and post it on my linkedin". You should see an alert box open to confirm tool usage. Click "Allow for this chat"

alt text

Development

  1. Clone the repository
  2. Install dependencies:
uv pip install -e .
  1. Run tests:
pytest

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Metadata

Release files for linkedin-automation-mcp 0.0.2

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-automation-mcp 0.0.2
File Size Uploaded Provenance
linkedin_automation_mcp-0.0.2.tar.gz 269.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for linkedin-automation-mcp 0.0.2
File Interpreter ABI Platform
linkedin_automation_mcp-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 294.5 kB

Release files / linkedin_automation_mcp-0.0.2.tar.gz

Download URL linkedin_automation_mcp-0.0.2.tar.gz
Size 269.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0c03eb2dadcc687315e115d0245e1dc94cc1d3dfa6d68e98c1cb2ba80687b985
BLAKE2b-256 checksum
How to use checksums
0baf4e56b22fab8662931bf2198d2a5fd197ec341449834aea74294cb867e9a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.14

Release files / linkedin_automation_mcp-0.0.2-py3-none-any.whl

Download URL linkedin_automation_mcp-0.0.2-py3-none-any.whl
Size 25.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b0e4fbabeb752ec567b0ed5e2e713dbab423abf3498f6164535b500ac0898e3
BLAKE2b-256 checksum
How to use checksums
593150f86b9f269f8c3967fca628d12064217481c30ae005e28dd48cd934d7f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.14

Security for linkedin-automation-mcp 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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