Twilio Messaging MCP Server

by deshartman
Verified

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

  • Enables sending SMS messages via the Twilio API using a configured Twilio phone number and account credentials.

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

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

特徴

  • Twilio経由でSMSメッセージを送信する
  • Claude DesktopなどのMCPクライアントと統合
  • 環境変数なしで安全な資格情報処理
  • セキュリティ強化のためTwilio APIキーを使用

インストール

このサーバーは 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 が設定ファイルを読み込むとサーバーが自動的に起動します。手動で起動する必要はありません。

ライセンス

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

-
security - not tested
F
license - not found
-
quality - not tested

ユーザーが自然言語コマンドを使用して、Claude Desktop から直接 Twilio API 経由で SMS メッセージを送信できるようにする MCP (Model Context Protocol) サーバー。

  1. Features
    1. Installation
      1. Configuration
        1. Security Note
      2. Usage with Claude Desktop
        1. Local Development
        2. After Publishing to npm
      3. Available Tools
        1. send-sms
      4. Development
        1. Running the Server Manually
      5. License
        ID: h7onq0z3dt