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: TTS-MCP

インストール

このサーバーは 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
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/deshartman/twilio-messaging-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server