
Unipile MCP Server

2025.01.07
7
Python消息管理跨平台通信交流协作
mcp-unipile是一个基于Model Context Protocol (MCP)的服务器实现,用于集成Unipile消息平台。该服务器允许AI模型通过标准化接口与来自多个消息平台(如Mobile、Mail、WhatsApp、LinkedIn、Slack、Twitter、Telegram、Instagram、Messenger)的消息进行交互。Unipile提供统一的通信体验,特别适合需要跨多个社交平台进行通信的用户,尤其是依赖LinkedIn进行专业社交的用户。
View on GitHub
Overview
基本能力
产品定位
mcp-unipile是一个用于集成Unipile消息平台的MCP服务器,提供跨多个消息平台的统一通信接口。
核心功能
- 提供与Unipile消息平台的集成,支持多种消息服务(如LinkedIn、WhatsApp、Instagram、Messenger、Telegram等)。
- 通过标准化接口访问消息数据,支持AI模型与消息的交互。
- 提供消息管理工具,如获取特定聊天消息。
适用场景
- 跨多个社交平台进行统一通信管理。
- 利用AI模型增强通信策略,特别是在专业社交网络(如LinkedIn)中。
工具列表
unipile_get_chat_messages
:- 功能:从特定聊天中获取所有消息,支持分页。
- 输入:chat_id(必需),batch_size(可选,默认100)。
- 返回:消息对象数组。
常见问题解答
- 需要Unipile订阅才能使用服务。
- 需要提供Unipile DSN和API密钥。
使用教程
使用依赖
- 需要Docker环境。
安装教程
- 从Docker Hub拉取镜像:
bash docker pull buryhuang/mcp-unipile:latest
- 或者本地构建镜像:
bash docker build -t mcp-unipile .
- 运行容器:
bash docker run \ -e UNIPILE_DSN=your_dsn_here \ -e UNIPILE_API_KEY=your_api_key_here \ buryhuang/mcp-unipile:latest
调试方式
- 创建新的builder实例(如果需要):
bash docker buildx create --use
- 构建并推送多平台镜像:
bash docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t buryhuang/mcp-unipile:latest --push .
- 验证镜像是否可用于指定平台:
bash docker buildx imagetools inspect buryhuang/mcp-unipile:latest
与Claude Desktop一起使用
{
"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"
]
}
}
}