Used for environment-based credential management, allowing secure storage of LinkedIn credentials and encryption keys in a .env file
Supports version control for the project, with instructions for cloning the repository as part of the installation process
Serves as the underlying runtime environment for the MCP server, requiring Python 3.8+ as a prerequisite
LinkedIn Browser MCP Server
A FastMCP-based server for LinkedIn automation and data extraction using browser automation. This server provides a set of tools for interacting with LinkedIn programmatically while respecting LinkedIn's terms of service and rate limits.
Features
Secure Authentication
Environment-based credential management
Session persistence with encrypted cookie storage
Rate limiting protection
Automatic session recovery
Profile Operations
View and extract profile information
Search for profiles based on keywords
Browse LinkedIn feed
Profile visiting capabilities
Post Interactions
Like posts
Comment on posts
Read post content and engagement metrics
Prerequisites
Python 3.8+
Playwright
FastMCP library
LinkedIn account
Installation
Clone the repository:
Create and activate a virtual environment:
Install dependencies:
Set up environment variables: Create a
.env
file in the root directory with:
Usage
Start the MCP server:
Available Tools:
login_linkedin_secure
: Securely log in using environment credentialsbrowse_linkedin_feed
: Browse and extract posts from feedsearch_linkedin_profiles
: Search for profiles matching criteriaview_linkedin_profile
: View and extract data from specific profilesinteract_with_linkedin_post
: Like, comment, or read posts
Example Usage
Security Features
Encrypted cookie storage
Rate limiting protection
Secure credential management
Session persistence
Browser automation security measures
Best Practices
Rate Limiting: The server implements rate limiting to prevent excessive requests:
Maximum 5 login attempts per hour
Automatic session reuse
Cookie persistence to minimize login needs
Error Handling: Comprehensive error handling for:
Network issues
Authentication failures
LinkedIn security challenges
Invalid URLs or parameters
Session Management:
Automatic cookie encryption
Session persistence
Secure storage practices
Contributing
Fork the repository
Create a feature branch
Commit your changes
Push to the branch
Create a Pull Request
License
MIT
Disclaimer
This tool is for educational purposes only. Ensure compliance with LinkedIn's terms of service and rate limiting guidelines when using this software.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
A FastMCP-based server that enables programmatic LinkedIn automation and data extraction through browser automation, offering secure authentication and tools for profile operations and post interactions while respecting LinkedIn's rate limits.
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables seamless interaction with LinkedIn for job applications, profile retrieval, feed browsing, and resume analysis through natural language commands.Last updated -24
- AsecurityFlicenseAqualityMCP server that fetches LinkedIn profile information using the Fresh LinkedIn Profile Data API, allowing users to retrieve profile data in JSON format by providing a LinkedIn profile URL.Last updated -1
- -securityFlicense-qualityA FastMCP server that enables browser automation through natural language commands, allowing Language Models to browse the web, fill out forms, click buttons, and perform other web-based tasks via a simple API.Last updated -3
- -securityFlicense-qualityAutomates the creation and scheduling of LinkedIn posts using MCP server integration, allowing users to manage content and automatically publish to their LinkedIn accounts.Last updated -1