Skip to main content
Glama
deshartman

Twilio Messaging MCP Server

by deshartman

Twilio メッセージング MCP サーバー

Twilio API 経由で SMS メッセージを送信できるようにする MCP (Model Context Protocol) サーバー。

特徴

  • Twilio経由でSMSメッセージを送信する

  • Claude DesktopなどのMCPクライアントと統合

  • 環境変数なしで安全な資格情報処理

  • セキュリティ強化のためTwilio APIキーを使用

Related MCP server: Twilio MCP Server

インストール

このサーバーは npx 経由で直接使用できます。

npx twilio-messaging-mcp-server <accountSid> <apiKey> <apiSecret> <number>

または、グローバルにインストールします。

npm install -g twilio-messaging-mcp-server
twilio-messaging-mcp-server <accountSid> <apiKey> <apiSecret> <number>

構成

サーバーには次のパラメータが必要です。

  • accountSid : Twilio アカウントの SID (「AC」で始まる必要があり、検証されます)

  • apiKey : Twilio API キー ('SK' で始まる)

  • apiSecret : Twilio APIシークレット

  • number : メッセージの送信元のTwilio電話番号(E.164形式、例:+1234567890)

セキュリティに関する注意事項

このサーバーは、セキュリティ強化のため、認証トークンではなくAPIキーとシークレットを使用します。このアプローチにより、アクセス制御が向上し、必要に応じて認証情報を失効させることができます。詳細については、 Twilio APIキーのドキュメントをご覧ください。

Claude Desktopでの使用

地域開発

ローカル開発の場合 (パッケージが npm に公開されていない場合)、Claude Desktop 構成ファイル (macOS の場合は~/Library/Application Support/Claude/claude_desktop_config.json 、Windows の場合は%APPDATA%\Claude\claude_desktop_config.json ) に以下を追加します。

{
  "mcpServers": {
    "twilio-messaging": {
      "command": "node",
      "args": [
        "/PATHTONODE/twilio-messaging-mcp-server/build/index.js",
        "your_account_sid_here",
        "your_api_key_here",
        "your_api_secret_here",
        "+1234567890"
      ]
    }
  }
}

値を実際の Twilio 認証情報に置き換えます。

  • 最初の引数: Twilio アカウントの SID (「AC」で始まる)

  • 2番目の引数: Twilio APIキー(「SK」で始まる)

  • 3番目の引数: Twilio APIシークレット

  • 4番目の引数: E.164形式のTwilio電話番号

プロジェクト ディレクトリで次のコマンドを実行すると、絶対パスを取得できます。

# On macOS/Linux
echo "$(pwd)/build/index.js"

# On Windows (PowerShell)
Write-Output "$((Get-Location).Path)\build\index.js"

npmに公開した後

パッケージが npm に公開されると、次の構成を使用できます。

{
  "mcpServers": {
    "twilio-messaging": {
      "command": "npx",
      "args": [
        "-y", 
        "twilio-messaging-mcp-server",
        "your_account_sid_here",
        "your_api_key_here",
        "your_api_secret_here",
        "+1234567890"
      ]
    }
  }
}

利用可能なツール

SMS送信

Twilio 経由で SMS メッセージを送信します。

パラメータ:

  • to : E.164形式の宛先電話番号(例:+1234567890)

  • message : 送信するメッセージの内容

Claude での使用例:

Can you send an SMS to +1234567890 saying "Hello from MCP!"

発達

プロジェクトをビルドするには:

npm install
npm run build

サーバーを手動で実行する

テストのためにサーバーを手動で起動するには (Claude Desktop の外部):

# Run with actual credentials
node build/index.js "your_account_sid_here" "your_api_key_here" "your_api_secret" "+1234567890"

# Or use the npm script (which uses ts-node for development)
npm run dev -- "your_account_sid_here" "your_api_key_here" "your_api_secret" "+1234567890"

サーバーが起動し、MCPクライアントからの接続を待機します。次のような出力が表示されます。

[TwilioMessagingServer] Server started successfully

Claude Desktop と併用する場合、Claude が設定ファイルを読み込むとサーバーが自動的に起動します。手動で起動する必要はありません。

ライセンス

マサチューセッツ工科大学

Related MCP Connectors

  • The Mobile Text Alerts SMS MCP server enables your AI to send SMS messages & manage contacts

  • The Telnyx MCP server is an official implementation of the Model Context Protocol that enables AI clients (like Claude Desktop, Cursor, and OpenAI Agents) to interact with Telnyx's telephony, messaging, and AI assistant APIs. It provides comprehensive capabilities including making and managing phone calls, sending SMS/MMS messages, purchasing and configuring phone numbers, creating AI assistants with custom instructions, managing cloud storage buckets, scraping and embedding website content, and handling integration secrets. The server exists as both a local implementation and a remotely hosted version, allowing developers to integrate real-world communication infrastructure directly into AI applications.

  • Phone, SMS & email for AI agents — one remote MCP endpoint, OAuth login, zero install.

  • WhatsMCP connects Claude and other MCP-compatible AI agents directly to WhatsApp. Send and receive text, images, documents, and voice notes; manage groups (create, add/remove members, promote admins); look up contacts and profiles; follow channels; and read call and message history — all through a standard MCP interface. For voice use cases, WhatsMCP offers SIP-based calling plans (inbound-only, or full inbound/outbound) so AI voice agents can answer and place WhatsApp calls, plus low-latency WebSocket integrations with voice agent providers like ElevenLabs. Multiple WhatsApp accounts can be paired and managed per workspace, with webhook support for real-time inbound message delivery to your own infrastructure.

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    A server that connects Claude AI to Twilio through the Model Context Protocol, enabling prompt-assisted management of Twilio accounts, phone numbers, and regulatory compliance.
    4
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables Claude and other AI assistants to send SMS and MMS messages using Twilio.
    22 npm
    15
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that allows AI agents like Claude to interact with the Aligo SMS API to send text messages and retrieve related information.
    1
    1
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    MCP server for sending SMS via the SMSPM API. Send transactional SMS from Claude Desktop, Cursor, Windsurf, Cline, or any MCP client.
    1
    29 npm
    MIT