Skip to main content
Glama
moonlabsai

EnrichB2B MCP Server

by moonlabsai

MCP テンプレート サーバー

OpenAI、Anthropic、EnrichB2B を統合した Model Context Protocol (MCP) を実装するテンプレート サーバー。

設定

  1. 仮想環境を作成します。

python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. 依存関係をインストールします:

pip install -r requirements.txt
  1. 環境変数を設定します。

cp .env.example .env
# Edit .env with your API keys and configuration

Related MCP server: Prospeo MCP Server

サーバーの実行

開発モード:

python server.py

または、MCP CLI を使用します。

mcp dev server.py

特徴

  • OpenAI GPT-4統合

  • 人類学的クロード積分

  • EnrichB2B LinkedInデータ統合

  • FastAPIとUvicornサーバー

  • 環境設定

  • リソースとツールの例

  • 構造化されたプロジェクトレイアウト

プロジェクト構造

.
├── .env.example          # Template for environment variables
├── .gitignore           # Git ignore rules
├── README.md            # This file
├── requirements.txt     # Python dependencies
├── enrichb2b.py        # EnrichB2B API client
└── server.py           # MCP server implementation

使用法

  1. サーバーを起動する

  2. 任意のMCPクライアントを使用して接続する

  3. 提供されているツールとリソースを使用します。

    • config://app - サーバー構成を取得する

    • get_profile_details - LinkedIn プロフィール情報を取得する

    • get_contact_activities - LinkedIn ユーザーの最近のアクティビティと投稿を取得します

    • gpt4_completion - GPT-4を使用してテキストを生成する

    • claude_completion - Claudeを使用してテキストを生成する

    • analysis_prompt - テキスト分析用のテンプレート

EnrichB2Bツール

プロフィールの詳細を取得する

LinkedIn プロフィールの詳細情報を取得します。

result = await get_profile_details(
    linkedin_url="https://www.linkedin.com/in/username",
    include_company_details=True,
    include_followers_count=True
)

連絡先アクティビティの取得

LinkedIn プロフィールから最近のアクティビティと投稿を取得します。

result = await get_contact_activities(
    linkedin_url="https://www.linkedin.com/in/username",
    pages=1,  # Number of pages (1-50)
    comments_per_post=1,  # Comments per post (0-50)
    likes_per_post=None  # Likes per post (0-50)
)

発達

新しい機能を追加するには:

  1. @mcp.tool()デコレータを使用して新しいツールを追加する

  2. @mcp.resource()デコレータを使用して新しいリソースを追加する

  3. @mcp.prompt()デコレータを使用して新しいプロンプトを追加する

ライセンス

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

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables seamless interaction with LinkedIn for job applications, profile retrieval, feed browsing, and resume analysis through natural language commands.
    36
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A comprehensive Model Context Protocol server that enables AI assistants to interact with LinkedIn APIs for profile management, content creation, networking, messaging, and analytics.
    2
    -
  • A
    license
    A
    quality
    F
    maintenance
    An unofficial Model Context Protocol server that provides LinkedIn tools for searching users, enriching profiles, retrieving contact information, and conducting deep research through natural language interfaces.
    5
    13 npm
    5
    MIT