A LinkedIn scraping and automation tool
Project description
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 postsresearch_and_create_linkedin_post: Research topics and generate postspost_to_linkedin: Publish content to LinkedInget_profile_info: Extract LinkedIn profile informationscrape_posts: Collect posts from LinkedInsend_connection_requests: Manage connection requestsgenerate_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"
Development
- Clone the repository
- Install dependencies:
uv pip install -e .
- Run tests:
pytest
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file linkedin_automation_mcp-0.0.1.tar.gz.
File metadata
- Download URL: linkedin_automation_mcp-0.0.1.tar.gz
- Upload date:
- Size: 254.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0b72ef5bbe06b3a2ef2cd6925365cfa4026f1e6a69e9f5dae56bae69f2b76c7
|
|
| MD5 |
62267b31e33b046c18498c5f70646604
|
|
| BLAKE2b-256 |
2975329ac29afb32142fe6ad91d4f021b83a848e8289ff178341c0ad2b18220e
|
File details
Details for the file linkedin_automation_mcp-0.0.1-py3-none-any.whl.
File metadata
- Download URL: linkedin_automation_mcp-0.0.1-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5b99925a379701194f322f79332bece3830ff3f7b6ecb95dc86b2e1bd0a73f0
|
|
| MD5 |
69827889f9c5d38b74e9097cc82dd05b
|
|
| BLAKE2b-256 |
7b311bbb83b3933a386d8b375850252c30d3d2cab740ed060c817199aef5e99c
|