Skip to main content
Glama
infobip-mcp

infobip-mcp

by Steph-ux

infobip-mcp v1.0.0

用于 Infobip API 的统一模型上下文协议(MCP)服务器。 将短信、WhatsApp、电子邮件、双因素认证/一次性密码和账户管理整合到一个高性能的本地 MCP 服务器中。

功能特性(5 个统一工具)

  • infobip_sms:发送单条/批量短信,获取投递报告(DLR),并查看消息日志

  • infobip_whatsapp:发送文本、经批准的 Meta 模板以及媒体(图片、文档、视频、音频)

  • infobip_email:发送事务性电子邮件(HTML/纯文本),跟踪投递报告和日志

  • infobip_2fa:生成并发送双因素认证一次性密码(OTP),验证 PIN 码,重新发送 PIN 码,管理双因素认证应用

  • infobip_account:实时查看账户余额和币种

Related MCP server: seven-mcp

快速开始

1. 配置(API 密钥)

将您的 Infobip API 密钥存储在 ~/.secrets/infobip-key.txt 中,或设置环境变量:

export INFOBIP_API_KEY="your-infobip-api-key"
export INFOBIP_BASE_URL="https://xxxxx.api.infobip.com"  # Optional, defaults to https://api.infobip.com

2. 添加到 MCP 客户端(Claude Desktop、OpenCode、Cursor、Windsurf)

选项 1:通过 uvx(即时使用 - 无需手动安装)

{
  "mcpServers": {
    "infobip": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/Steph-ux/infobip-mcp.git", "infobip-mcp"]
    }
  }
}

选项 2:通过 pip install 安装

pip install git+https://github.com/Steph-ux/infobip-mcp.git

然后在您的 MCP 配置中添加:

{
  "mcpServers": {
    "infobip": {
      "command": "infobip-mcp"
    }
  }
}

选项 3:本地克隆

{
  "mcpServers": {
    "infobip": {
      "command": "python",
      "args": ["D:\\Steph\\script\\infobip-mcp\\server.py"]
    }
  }
}

使用示例

1. 发送短信

infobip_sms(
    action='send',
    to='+33612345678',
    text='Your verification code is 482910',
    from_sender='AuthService'
)

2. 发送 WhatsApp 模板消息

infobip_whatsapp(
    action='send_template',
    from_sender='447860099299',
    to='33612345678',
    template_name='order_confirmation',
    language='en',
    placeholders=['John', 'ORDER-9812']
)

3. 发送事务性电子邮件

infobip_email(
    action='send',
    from_email='notifications@yourdomain.com',
    to='customer@example.com',
    subject='Invoice #4912',
    html='<h1>Thank you for your purchase</h1><p>Your order is confirmed.</p>'
)

4. 发送并验证双因素认证 PIN 码

# Step 1: Send PIN
infobip_2fa(
    action='send_pin',
    application_id='APP_ID_123',
    message_id='MSG_ID_456',
    to='+33612345678'
)

# Step 2: Verify PIN
infobip_2fa(
    action='verify_pin',
    pin_id='PIN_ID_789',
    pin='4829'
)

5. 查看账户余额

infobip_account(action='balance')

测试

pytest tests

许可证

MIT

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    C
    maintenance
    Local-first MCP server for agents that need to work across multiple Gmail and Microsoft 365 accounts without cloud token storage.
    6
    -
  • A
    license
    B
    quality
    D
    maintenance
    MCP server for the seven.io API, enabling SMS, voice, RCS messaging, and account management through natural language.
    44
    19 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    MCP server for interacting with the official Meta WhatsApp Business Platform/Cloud API, enabling sending messages, managing contacts, templates, and handling webhook callbacks.
    Apache 2.0
  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server for a local-first messaging workspace that integrates Google Messages, WhatsApp, and Signal. It enables reading, sending, searching messages, and managing conversations through MCP tools.
    71
    -