LinkedIn Browser MCP Server

by alinaqi

Integrations

  • 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 ブラウザ MCP サーバー

LinkedInの自動化とブラウザ自動化によるデータ抽出のためのFastMCPベースのサーバーです。このサーバーは、LinkedInの利用規約とレート制限を遵守しながら、プログラムでLinkedInとやり取りするためのツールセットを提供します。

特徴

  • 安全な認証
    • 環境ベースの資格情報管理
    • 暗号化されたCookieストレージによるセッションの永続化
    • レート制限保護
    • 自動セッション回復
  • プロファイル操作
    • プロフィール情報の表示と抽出
    • キーワードに基づいてプロフィールを検索する
    • LinkedInフィードを閲覧する
    • プロフィール訪問機能
  • 投稿のインタラクション
    • 投稿にいいね!
    • 投稿にコメントする
    • 投稿内容とエンゲージメント指標を読む

前提条件

  • Python 3.8以上
  • 劇作家
  • FastMCPライブラリ
  • LinkedInアカウント

インストール

  1. リポジトリをクローンします。
git clone [repository-url] cd mcp-linkedin-server
  1. 仮想環境を作成してアクティブ化します。
python -m venv env source env/bin/activate # On Windows: env\Scripts\activate
  1. 依存関係をインストールします:
pip install -r requirements.txt playwright install chromium
  1. 環境変数を設定します。ルート ディレクトリに次の内容の.envファイルを作成します。
LINKEDIN_USERNAME=your_email@example.com LINKEDIN_PASSWORD=your_password COOKIE_ENCRYPTION_KEY=your_encryption_key # Optional: will be auto-generated if not provided

使用法

  1. MCP サーバーを起動します。
python linkedin_browser_mcp.py
  1. 利用可能なツール:
  • login_linkedin_secure : 環境の資格情報を使用して安全にログインする
  • browse_linkedin_feed : フィードから投稿を閲覧して抽出する
  • search_linkedin_profiles : 条件に一致するプロフィールを検索する
  • view_linkedin_profile : 特定のプロフィールからデータを表示および抽出します
  • interact_with_linkedin_post : 投稿に「いいね!」、コメント、または読む

使用例

from fastmcp import FastMCP # Initialize client client = FastMCP.connect("http://localhost:8000") # Login result = await client.login_linkedin_secure() print(result) # Search profiles profiles = await client.search_linkedin_profiles( query="software engineer", count=5 ) print(profiles) # View profile profile_data = await client.view_linkedin_profile( profile_url="https://www.linkedin.com/in/username" ) print(profile_data)

セキュリティ機能

  • 暗号化されたCookieの保存
  • レート制限保護
  • 安全な資格情報管理
  • セッションの永続性
  • ブラウザ自動化セキュリティ対策

ベストプラクティス

  1. レート制限: サーバーは過剰なリクエストを防ぐためにレート制限を実装しています。
    • 1時間あたり最大5回のログイン試行
    • 自動セッション再利用
    • ログインの必要性を最小限に抑えるためのCookieの永続性
  2. エラー処理: 以下の包括的なエラー処理:
    • ネットワークの問題
    • 認証失敗
    • LinkedInのセキュリティ上の課題
    • 無効なURLまたはパラメータ
  3. セッション管理:
    • 自動Cookie暗号化
    • セッションの永続性
    • 安全な保管方法

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成する
  3. 変更をコミットする
  4. ブランチにプッシュする
  5. プルリクエストを作成する

ライセンス

マサチューセッツ工科大学

免責事項

このツールは教育目的のみに使用されます。このソフトウェアを使用する際は、LinkedInの利用規約およびレート制限ガイドラインを遵守してください。

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

プログラムによる LinkedIn 自動化とブラウザ自動化によるデータ抽出を可能にする FastMCP ベースのサーバーで、LinkedIn のレート制限を尊重しながら、プロフィール操作と投稿インタラクションのための安全な認証とツールを提供します。

  1. Features
    1. Prerequisites
      1. Installation
        1. Usage
          1. Example Usage
        2. Security Features
          1. Best Practices
            1. Contributing
              1. License
                1. Disclaimer

                  Related MCP Servers

                  • -
                    security
                    A
                    license
                    -
                    quality
                    A Model Context Protocol server that provides comprehensive access to LinkedIn data and functionality, enabling data retrieval and user account management through the HorizonDataWave API.
                    Last updated -
                    25
                    17
                    JavaScript
                    MIT License
                    • Apple
                  • -
                    security
                    A
                    license
                    -
                    quality
                    A powerful LinkedIn Profile Analyzer that seamlessly integrates with Claude AI to fetch and analyze public LinkedIn profiles, enabling users to extract, search, and analyze posts data through RapidAPI's LinkedIn Data API.
                    Last updated -
                    1
                    Python
                    MIT License
                  • -
                    security
                    F
                    license
                    -
                    quality
                    A server implementing the Model Context Protocol that enables users to retrieve LinkedIn profile information and activity data via EnrichB2B API, and generate text using OpenAI GPT-4 or Anthropic Claude models.
                    Last updated -
                    Python
                    • Linux
                  • A
                    security
                    F
                    license
                    A
                    quality
                    MCP 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
                    Python

                  View all related MCP servers

                  ID: mlkinlqs5h