Pearl MCP Serverのロゴ

Pearl MCP Server

組織
Pearl-com

A Model Context Protocol (MCP) server implementation that exposes Pearl's AI and Expert services through a standardized interface

公開者Pearl-com
リポジトリpearl_mcp_server
言語Python
フォーク
3
スター
8
利用可能なツール
0
通信方式stdio, streamable-http
カテゴリ
ライセンスApache-2.0
リンク
  • ツールをAIワークフローに接続

    Pearl MCP Serverは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには8件のスターと3件のフォークがあります。

Pearl MCP Server

A Model Context Protocol (MCP) server implementation that exposes Pearl's AI and Expert services through a standardized interface. This server allows MCP clients like Claude Desktop, Cursor, and other MCP-compatible applications to interact with Pearl's advanced AI assistants and human experts.

Features

  • Support for both stdio and SSE transports
  • Integration with Pearl API for AI and expert assistance
  • Session management for continuous conversations
  • Two interaction modes:
    • AI-Expert mode for AI-assisted human expert support
    • Expert mode for direct human expert assistance
  • Conversation history tracking
  • Stateful session management

Prerequisites

  • Python 3.12 or higher
  • Pearl API Key (Contact Pearl to obtain your API key)
  • pip or uv package manager

Installation

  1. Clone the repository:
bash
git clone https://github.com/Pearl-com/pearl_mcp_server.git
cd pearl_mcp_server
  1. Create a virtual environment and activate it:
bash
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install dependencies:
bash
pip install -e .

Configuration

  1. Create a .env file in the src directory:
env
PEARL_API_KEY=your-api-key-here

Running the Server

Local Development

Start the server using either stdio (default) or SSE transport:

bash
# Using stdio transport (default)
pearl-mcp-server --api-key your-api-key

# Using SSE transport on custom port
pearl-mcp-server --api-key your-api-key --transport sse --port 8000

Using Remote Server

Pearl provides a hosted MCP server at:

https://mcp.pearl.com/mcp

This can be used directly with any MCP client without installing the Python application locally.

Available Tools

The server provides the following tools:

  1. ask_pearl_expert

    • AI-assisted human expert support
    • Best for complex topics requiring expert verification
    • Parameters: Same as ask_pearl_ai
  2. ask_expert

    • Direct human expert assistance
    • Best for complex or sensitive topics
    • Parameters: Same as ask_pearl_ai
  3. get_conversation_status

    • Check the status of an active conversation
    • Parameter: session_id
  4. get_conversation_history

    • Retrieve full conversation history
    • Parameter: session_id

Expert Categories

Pearl's MCP server provides access to a wide range of expert categories. The appropriate expert category is automatically determined by Pearl's API based on the context of your query, ensuring you're connected with the most relevant expert for your needs.

Here are the main categories of expertise available:

  • Medical & Healthcare

    • General Medicine
    • Dental Health
    • Mental Health
    • Nutrition & Diet
    • Fitness & Exercise
    • Veterinary Medicine
  • Legal & Financial

    • Legal Advice
    • Tax Consultation
    • Financial Planning
    • Business Law
    • Employment Law
    • Real Estate Law
  • Technical & Professional

    • Software Development
    • IT Support
    • Computer Repair
    • Electronics
    • Mechanical Engineering
    • Home Improvement
  • Education & Career

    • Academic Tutoring
    • Career Counseling
    • Resume Writing
    • Test Preparation
    • College Admissions
    • Professional Development
  • Lifestyle & Personal

    • Relationship Advice
    • Parenting
    • Pet Care
    • Personal Styling
    • Interior Design
    • Travel Planning

Each expert category can be accessed through the ask_expert or ask_pearl_expert tools. You don't need to specify the category - simply describe your question or problem, and Pearl's AI will automatically route your request to the most appropriate expert type based on the context.

Connecting with MCP Clients

Local Connection (stdio transport)

For connecting to a local MCP server using stdio transport, add the following configuration to your MCP client:

json
{
    "pearl-mcp-server": {
        "type": "stdio",
        "command": "pearl-mcp-server",
        "args": ["--api-key", "your-api-key"],
        "env": {
            "PEARL_API_KEY": "Your Pearl Api Key"
        }
    }
}

Remote Connection using mcp-remote

Some MCP clients don't support direct connection to remote MCP servers. For these clients, you can use the mcp-remote package as a bridge:

  1. Prerequisites:

    • Node.js 18 or higher
    • npm (Node Package Manager)
  2. Configuration for remote server:

json
{
    "mcpServers": {
        "pearl-remote": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.pearl.com/sse"
            ]
        }
    }
}
  1. Configuration file locations:

    • Claude Desktop:
      • Windows: %APPDATA%\Claude\claude_desktop_config.json
      • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Cursor: ~/.cursor/mcp.json
    • Windsurf: ~/.codeium/windsurf/mcp_config.json
  2. Additional Options:

    • Force latest version: Add @latest to npx command
    json
    "args": ["mcp-remote@latest", "https://mcp.pearl.com/sse"]
  3. Troubleshooting:

    • Clear stored credentials: rm -rf ~/.mcp-auth
    • View logs:
      • Windows (PowerShell): Get-Content "$env:APPDATA\Claude\Logs\mcp.log" -Wait -Tail 20
      • macOS/Linux: tail -n 20 -F ~/Library/Logs/Claude/mcp*.log
    • Test connection: npx mcp-remote-client https://mcp.pearl.com/sse

Custom Python Client

python
import asyncio
from mcp.client.session import ClientSession
from mcp.client.stdio import StdioServerParameters, stdio_client

async def main():
    # For stdio transport
    async with stdio_client(
        StdioServerParameters(command="pearl-mcp-server", args=["--api-key", "your-api-key"])
    ) as (read, write):
        async with ClientSession(read, write) as session:
            await session.initialize()
            
            # List available tools
            tools = await session.list_tools()
            print(tools)
            
            # Call Pearl API
            result = await session.call_tool(
                "ask_pearl_expert", 
                {
                    "question": "What is MCP?",
                    "session_id": "optional-session-id"
                }
            )
            print(result)

asyncio.run(main())

API Key

To obtain a Pearl API key for using this server:

  1. Visit Pearl Contact Page
  2. Request an API key for MCP server integration
  3. Follow the provided instructions to complete the registration process

Keep your API key secure and never commit it to version control.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "pearl-com-pearl_mcp_server": {
      "command": "",
      "args": []
    }
  }
}

Pearl MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Pearl MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 お使いのデバイス上でMCPをローカル実行することも、リモートMCPサーバーのURLに接続することもできます。

方法1:ローカルコネクタを使用

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Pearl MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Pearl MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "pearl-com-pearl_mcp_server": {
      "command": "npx",
      "args": [
        "-y",
        "pearl-mcp-server"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてPearl MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Pearl MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Pearl MCP Serverを使ってこのタスクを手伝ってもらえますか?
Pearl MCP Server
はい、読みました。
Pearl MCP Serverで調べた結果をお伝えします。

方法2:MCPサーバーのURLを追加

Pearl MCP Serverがすでにリモートでホストされている場合や、チームの複数のユーザーで1つのコネクタを共有したい場合は、この方法を使います。

1

MCPコネクタを開く

TypingMindで「プラグイン」に移動し、「MCPコネクタ」を開いて「URLを追加」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 「プラグイン」に移動してください。
  3. 「MCPコネクタ」を開いてください。
  4. 「URLを追加」をクリックします。
TypingMindの「カスタムMCPサーバーURLを追加」フォーム
2

サーバーURLを貼り付け

「サーバーURL」欄にお使いのサーバーURLを入力してください。サーバーで必要とされる場合は、接続名、説明、アイコン、カスタムHTTPヘッダー、OAuthクライアント設定を追加してください。

  1. 「サーバーURL」欄にお使いのサーバーURLを貼り付けてください。
  2. Pearl MCP Serverの接続名を入力してください。
  3. 接続を識別しやすくするには、説明とアイコンを追加してください。
  4. サーバーで認証が必要な場合は、カスタムHTTPヘッダーまたはOAuthクライアントの詳細情報を追加してください。
3

接続を作成

「接続を作成」をクリックし、プラグイン一覧に戻って、新しいMCP接続が有効になっていることを確認してください。

  1. 「接続を作成」をクリックします。
  2. MCPコネクタの一覧に戻ってください。
  3. Pearl MCP Serverの接続が「有効」と表示されていることを確認してください。
  4. 接続がすぐに表示されない場合は、プラグイン一覧を更新してください。
4

再接続せずにモデルを切り替え

お好みのモデルでチャットを開始し、「プラグイン」でPearl MCP Serverのツールを有効にしてください。必要に応じて別のモデルに切り替えられます。MCP接続は、TypingMindのワークスペースで引き続き利用できます。

  1. TypingMindで新しいチャットを開始してください。
  2. 使用するAIモデルを選択してください。
  3. 「プラグイン」でPearl MCP Serverのツールを有効にしてください。
  4. 必要に応じて、ツールを使うようモデルに依頼してください。
  5. 別のAIモデルに切り替えて、同じMCP接続を再利用してください。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Pearl MCP Serverを使ってこのタスクを手伝ってもらえますか?
Pearl MCP Server
はい、読みました。
Pearl MCP Serverで調べた結果をお伝えします。

よくある質問

Pearl MCP Server MCPサーバーは何に使いますか?

Pearl MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでPearl MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでPearl MCP Serverを利用できます。

TypingMindでPearl MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Pearl MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Pearl MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

Pearl MCP Serverは、ローカルMCPコネクタを使うか、リモートMCPサーバーのURLを追加することでTypingMindに接続できます。サーバーがデバイス上のファイル、アプリ、プライベートリソースにアクセスする必要がある場合はローカルコネクタを、MCPサーバーがリモートでホストされている場合はサーバーURLを使用してください。

TypingMindでPearl MCP Server MCPのどのようなツールを利用できますか?

Pearl MCP ServerはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Pearl MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Pearl MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇