Skip to main content
Glama
Unipile MCP Server

Unipile MCP Server

by honeybluesky

Unipile MCP 服务器

MCP 服务器用于使用 Unipile 跨多个消息平台访问消息。

概述

模型上下文协议 (MCP) 服务器实现,提供与 Unipile 消息平台的集成。该服务器使 AI 模型能够通过标准化接口与来自各种消息平台(移动端、邮件、WhatsApp、LinkedIn、Slack、Twitter、Telegram、Instagram、Messenger)的消息进行交互。

有关模型上下文协议及其工作原理的更多信息,请参阅Anthropic 的 MCP 文档。

Related MCP server: Claude IPC MCP

Unipile 订阅

要使用 Unipile 服务,需要订阅。Unipile 并未向我支付任何费用;我只是一个喜欢使用 Unipile 的用户,因为它运行高效。有关订阅和功能的更多详情,请访问Unipile 消息传递 API 页面。

通信能力

使用 Unipile,您可以在各种社交平台上无缝沟通。其中包括以下热门消息服务:

  • LinkedIn :通过 Unipile 界面直接与专业联系人联系、发送消息并管理您的 LinkedIn 互动。

  • WhatsApp :发送和接收消息、管理聊天并与您的联系人保持联系。

  • Instagram :与关注者互动、回复直接消息以及管理您的 Instagram 通信。

  • Messenger :通过 Facebook Messenger 与朋友和家人交流。

  • Telegram :轻松访问您的 Telegram 聊天和消息。

Unipile 与这些平台的集成实现了统一的沟通体验,使跨不同服务之间的互动管理更加便捷。这对于依赖 LinkedIn 进行职业社交的用户尤其有益,因为他们可以利用 Claude 等人工智能功能来增强沟通策略。

成分

资源

服务器公开以下资源:

  • unipile://messages :提供对来自连接的消息平台的消息的访问的动态资源

示例提示

  • 获取聊天中的所有消息:

    Get all messages from chat ID "chat_123"

工具

该服务器提供了几种访问 Unipile 数据的工具:

消息管理工具

  • unipile_get_chat_messages

    • 检索特定聊天中的所有消息,并支持分页

    • 输入:chat_id(必填)、batch_size(可选,默认值:100)

    • 返回:消息对象数组

设置

您需要 Unipile DSN 和 API 密钥。您可以从 Unipile 控制面板获取这些信息。

环境变量

  • UNIPILE_DSN :您的 Unipile DSN(例如 api8.unipile.com:13851)

  • UNIPILE_API_KEY :您的 Unipile API 密钥

注意:请确保您的 API 密钥安全,切勿将其提交到版本控制中。

Docker 安装

您可以在本地构建镜像,也可以从 Docker Hub 拉取。该镜像是为 Linux 平台构建的。

支持的平台

  • Linux/amd64

  • Linux/arm64

  • Linux/arm/v7

选项 1:从 Docker Hub 拉取

docker pull buryhuang/mcp-unipile:latest

选项 2:本地构建

docker build -t mcp-unipile .

运行容器:

docker run \
  -e UNIPILE_DSN=your_dsn_here \
  -e UNIPILE_API_KEY=your_api_key_here \
  buryhuang/mcp-unipile:latest

跨平台发布

要为多个平台发布 Docker 镜像,可以使用docker buildx命令。请按以下步骤操作:

  1. 创建一个新的构建器实例(如果还没有):

    docker buildx create --use
  2. 为多个平台构建并推送图像:

    docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t buryhuang/mcp-unipile:latest --push .
  3. 验证该图像是否适用于指定的平台:

    docker buildx imagetools inspect buryhuang/mcp-unipile:latest

与 Claude Desktop 一起使用

Docker 使用

{
  "mcpServers": {
    "unipile": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "UNIPILE_DSN=your_dsn_here",
        "-e",
        "UNIPILE_API_KEY=your_api_key_here",
        "buryhuang/mcp-unipile:latest"
      ]
    }
  }
}

发展

设置开发环境:

pip install -e .

执照

该项目已获得 MIT 许可。

Available Tools

3 tools
unipile_get_accountsA

Get all connected messaging accounts from supported platforms: Mobile, Mail, WhatsApp, LinkedIn, Slack, Twitter, Telegram, Instagram, Messenger. Returns account details including connection parameters, ID, name, creation date, signatures, groups, and sources.

Inputs: no named parameters.

unipile_get_emailsA

Get recent emails from a specific account. Returns email details including subject, body, sender, recipients, attachments, and metadata.

Inputs: account_id (required), limit.

unipile_get_recent_messagesA

Get recent messages from all chats associated with a specific account. Supports messages from: Mobile, Mail, WhatsApp, LinkedIn, Slack, Twitter, Telegram, Instagram, Messenger. Returns message details including text content, sender info, timestamps, attachments, reactions, quoted messages, and metadata.

Inputs: account_id (required), batch_size.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool targets a distinct resource: accounts, emails, and messages. The descriptions clearly separate emails (from a specific account) from recent messages (from all chats), so no ambiguity.

    Naming Consistency5/5

    All tool names follow the consistent pattern 'unipile_get_<resource>', using snake_case and the same verb prefix, making them predictable.

    Tool Count4/5

    With 3 tools, the server is focused on read operations for accounts, emails, and messages. This is appropriate for a read-only interface, though it is slightly minimal.

    Completeness3/5

    The server covers basic read operations but lacks common features like searching, filtering, or fetching specific messages by ID. For a messaging platform, missing send/delete is acceptable if intended as read-only, but the surface is still limited.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables reading and replying to direct messages, comments, and templates across Instagram, WhatsApp, and Messenger through official Meta Business APIs, with support for human handover and AI assistant controls.
      40 npm
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants across different platforms and sessions to register instances, exchange persistent natural-language messages, and check inboxes without coding.
      -
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants on different platforms and sessions to exchange persistent messages with each other through simple natural language commands. Supports instance registration, message sending, and inbox checking without any coding.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants and agents to send WhatsApp, SMS, and email messages, verify OTP codes, and run campaigns through an account-based messaging platform.
      6
      17
      79 npm
      1
      MIT