Unipile MCP Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows interaction with Instagram direct messages, enabling message retrieval and management through the Unipile messaging platform.

  • Provides access to Facebook Messenger conversations, allowing retrieval and management of messages through Unipile's platform.

  • Supports retrieval and management of Slack messages through the Unipile messaging platform.

Unipile MCP 服务器

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

概述

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

有关模型上下文协议及其工作原理的更多信息,请参阅Anthropic 的 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 许可。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

使 AI 模型能够通过标准化界面与来自各种消息平台(移动、邮件、WhatsApp、LinkedIn、Slack、Twitter、Telegram、Instagram、Messenger)的消息进行交互。

  1. Overview
    1. Unipile Subscription
      1. Communication Capabilities
        1. Components
          1. Resources
          2. Example Prompts
          3. Tools
        2. Setup
          1. Environment Variables
          2. Docker Installation
        3. Cross-Platform Publishing
          1. Usage with Claude Desktop
            1. Docker Usage
          2. Development
            1. License
              ID: dkqt2x71qs