Skip to main content
Glama
LinkedIn Browser MCP Server

LinkedIn Browser MCP Server

by alinaqi

LinkedIn ブラウザ MCP サーバー

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

特徴

  • 安全な認証

    • 環境ベースの資格情報管理

    • 暗号化されたCookieストレージによるセッションの永続化

    • レート制限保護

    • 自動セッション回復

  • プロファイル操作

    • プロフィール情報の表示と抽出

    • キーワードに基づいてプロフィールを検索する

    • LinkedInフィードを閲覧する

    • プロフィール訪問機能

  • 投稿のインタラクション

    • 投稿にいいね!

    • 投稿にコメントする

    • 投稿内容とエンゲージメント指標を読む

Related MCP server: LinkedIn MCP

前提条件

  • 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の利用規約およびレート制限ガイドラインを遵守してください。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Fully featured MCP server that provides automation tools for LinkedIn, supporting browser-based scraping and API-based operations for content management, media uploads, and reactions.
      6
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for programmable LinkedIn automation via Playwright, offering 20 tools for profile management, messaging, feed interaction, and job searching through real browser automation.
      18 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Playwright-powered MCP server for LinkedIn that automates jobs, profile edits, messaging, network actions, and feed posts using a real logged-in browser session.
      36
      Apache 2.0
    • F
      license
      A
      quality
      D
      maintenance
      MCP server for automating LinkedIn actions such as reading feeds, sending messages, creating posts, and managing connections. Uses browser automation with proxy and stealth support.
      21
      -