Pearl API MCP Server
A Model Context Protocol (MCP) server implementation that exposes Pearl's AI and Expert services through a standardized interface
The Model Context Protocol (MCP) is an open standard for exposing external tools, data, or services to LLM-based agents. It allows for seamless tool discovery, invocation, and state management within the agent’s context window.
Pearl leverages this standard to offer a unique kind of tool: humans.
Unlike other MCP implementations that connect agents to APIs or code snippets, the Pearl MCP Server routes agent queries to real human Experts, across hundreds of professional categories.
At its core, the Pearl API MCP Server acts as middleware between AI systems (like Claude, GPT, Gemini, or custom LLMs) and Pearl API.
It offers a structured way for AI models to access Pearl's knowledge base, connect with human experts, maintain conversational state, and handle authentication and session management. Unlike traditional remote MCP servers that might act as stateless layers, Pearl's server is built to be a fully stateful application, enabling persistent conversation tracking and complex multi-turn interactions
Available Tools
The Pearl API MCP Server exposes a set of tools to AI agents through its Tool Registry:
-
askPearlAi: Provides quick AI-generated answers using Pearl's knowledge base without human expert review. Useful for non-critical situations, getting alternative views, or comparing approaches. Corresponds to the "pearl-ai" conversation mode.
-
askPearlExpert: Starts with AI-powered intake questions to gather context, then seamlessly transitions to a qualified human expert. Recommended for complex topics (Medical, Legal, Tax, etc.) where the LLM might have lower confidence, or when personalized advice is needed. Corresponds to the "pearl-ai-expert" conversation mode.
-
askExpert: Provides direct assistance from a human expert, immediately routing the query without an AI intermediary. Use when the user explicitly asks for a human expert or when the AI detects it's out of depth on a complex, risky, or ambiguous issue. Corresponds to the "expert" conversation mode.
-
getConversationStatus: Allows the agent to retrieve the status of active conversations.
-
getConversationHistory: Provides access to the full conversation history for a session.
These tools map directly to the conversation modes supported by the underlying Pearl API, allowing developers to select the appropriate level of human involvement for each user query.