Skip to main content

A simple unipile MCP server

Project description

Unipile MCP Server

MCP server for using Unipile to access messages across multiple messaging platforms.

Overview

A Model Context Protocol (MCP) server implementation that provides integration with the Unipile messaging platform. This server enables AI models to interact with messages from various messaging platforms (Mobile, Mail, WhatsApp, LinkedIn, Slack, Twitter, Telegram, Instagram, Messenger) through a standardized interface.

For more information about the Model Context Protocol and how it works, see Anthropic's MCP documentation.

Unipile Subscription

To use the Unipile services, a subscription is required. I am not paid by Unipile to do this; I am simply a user who loves using Unipile because it works effectively. For more details on the subscription and features, visit the Unipile Messaging API page.

Communication Capabilities

With Unipile, you can communicate seamlessly across a wide range of social platforms. This includes popular messaging services such as:

  • LinkedIn: Engage with professional contacts, send messages, and manage your LinkedIn interactions directly through the Unipile interface.
  • WhatsApp: Send and receive messages, manage chats, and stay connected with your contacts.
  • Instagram: Interact with followers, respond to direct messages, and manage your Instagram communications.
  • Messenger: Communicate with friends and family through Facebook Messenger.
  • Telegram: Access your Telegram chats and messages effortlessly.

Unipile's integration with these platforms allows for a unified communication experience, making it easier to manage interactions across different services. This is particularly beneficial for users who rely on LinkedIn for professional networking, as it enables them to leverage AI capabilities, such as Claude, to enhance their communication strategies.

Components

Resources

The server exposes the following resources:

  • unipile://messages: A dynamic resource that provides access to messages from connected messaging platforms

Example Prompts

  • Get all messages from a chat:
    Get all messages from chat ID "chat_123"
    

Tools

The server offers several tools for accessing Unipile data:

Message Management Tools

  • unipile_get_chat_messages
    • Retrieve all messages from a specific chat with pagination support
    • Input: chat_id (required), batch_size (optional, default: 100)
    • Returns: Array of message objects

Setup

You'll need a Unipile DSN and API key. You can obtain these from your Unipile dashboard.

Environment Variables

  • UNIPILE_DSN: Your Unipile DSN (e.g. api8.unipile.com:13851)
  • UNIPILE_API_KEY: Your Unipile API key

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

Docker Installation

You can either build the image locally or pull it from Docker Hub. The image is built for the Linux platform.

Supported Platforms

  • Linux/amd64
  • Linux/arm64
  • Linux/arm/v7

Option 1: Pull from Docker Hub

docker pull buryhuang/mcp-unipile:latest

Option 2: Build Locally

docker build -t mcp-unipile .

Run the container:

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

Cross-Platform Publishing

To publish the Docker image for multiple platforms, you can use the docker buildx command. Follow these steps:

  1. Create a new builder instance (if you haven't already):

    docker buildx create --use
    
  2. Build and push the image for multiple platforms:

    docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t buryhuang/mcp-unipile:latest --push .
    
  3. Verify the image is available for the specified platforms:

    docker buildx imagetools inspect buryhuang/mcp-unipile:latest
    

Usage with Claude Desktop

Docker Usage

{
  "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"
      ]
    }
  }
}

Development

To set up the development environment:

pip install -e .

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_honeybluesky_mcp_server_unipile-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_honeybluesky_mcp_server_unipile-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_honeybluesky_mcp_server_unipile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e257bd1452353b1e5c7ec51a655a007708800f8213359a72db1fafab89e9ca97
MD5 57e9a752cdcc27db513500a2228ba4a1
BLAKE2b-256 f9dc9bf38bde47d2b1ffc0fd7c74e71d0091c22f4078b3fe0f051d4bc6dc7691

See more details on using hashes here.

File details

Details for the file iflow_mcp_honeybluesky_mcp_server_unipile-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_honeybluesky_mcp_server_unipile-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_honeybluesky_mcp_server_unipile-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b06b5577b8ed384618c93ecf02fe6efbb2495df77cfe4d7373faf6006e9e170a
MD5 a6f9ca3d7cdb082a313bf8f8ebbee32b
BLAKE2b-256 cd06d68df64a13a463b796a3e3e6f98fc9b86877f8f84638043f04371d4eca43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page