Twilio MCP Da6d007c

MCP运维云端

提供方 griffinwork40

运维云端 未标注 无需鉴权 社区 / 第三方 Claude

Twilio MCP Server是一个基于AI的短信对话管理服务器,支持发送和接收短信、多媒体消息,并提供智能对话线程管理。

一句话选型结论

按资料字段整理

Twilio MCP Da6d007c 属于运维云端类 MCP 服务器,传输方式未标注,无需鉴权,可直接接入 Claude,没有现成安装命令,需按官方文档接入。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类运维云端 传输方式未标注 鉴权无需鉴权 部署方式支持远程部署
GitHub 星标 1 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

运维云端
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

支持客户端

适用场景

短信服务TypeScript本地部署对话管理AI集成Twilio消息队列

安装与配置

未标注 无需鉴权
上游未给出传输方式
  1. 1
    准备运行环境

    确认你的客户端支持远程端点,并拿到服务地址。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
云资源查询

查实例、存储、账单等云上资源状态。

部署与发布

把部署、重启、回滚这类操作接进对话。

监控与告警

拉取监控指标,异常时让模型帮你判断。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 已适配 Claude,换客户端不用重新研究配置。
  • 资料标注无需鉴权,装好就能连。

先想清楚的地方

  • 远程端点依赖网络与服务方可用性,注意密钥与调用额度。
  • 没有现成安装命令,需要按官方文档自己填启动命令和参数。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在运维云端场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Twilio MCP Da6d007c当前 未标注 未标注 支持远程部署 无 2026-05-17
lobehub 未标注 stdio · 本地进程 本地部署 有 2026-04-11
TrendRadar 未标注 stdio · 本地进程 本地部署 有 2026-04-13
Ui Tars Desktop 8a825770 未标注 stdio · 本地进程 本地部署 有 2026-05-17
ruflo 未标注 stdio · 本地进程 本地部署 有 2026-04-13
FastGPT 未标注 stdio · 本地进程 本地部署 有 2026-04-11

服务器档案

运维云端
字段来自项目仓库与公开索引,中文说明由本站标注
提供方griffinwork40上游标注的维护方 griffinwork40
分类运维云端本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式无需鉴权远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · 未标注本地安装时用到的包标识与运行时
部署类型支持远程部署上游给出的部署形态
最近核验2026-05-17上游最后核验时间

详细介绍

10.0 KB
来自项目仓库与上游目录的原文,未做删改

Twilio MCP Server

A Model Context Protocol (MCP) server for Twilio that enables AI-powered SMS messaging with intelligent conversation management.

Features

  • Send SMS - Send text messages via Twilio with automatic conversation threading
  • Receive SMS - Process inbound messages via webhooks with automatic storage
  • Conversation Management - Track and manage multi-turn SMS conversations
  • Message Status - Check delivery status of sent messages
  • Thread Association - Automatically link messages to conversation threads
  • MMS Support - Send and receive multimedia messages (optional)

Installation```bash

Clone the repository

git clone <repository-url>
cd twilio-mcp

Install dependencies

npm install

Build the project

npm run build


## Configuration

1. Copy the environment template:```bash
cp .env.example .env
  1. Fill in your Twilio credentials in .env:```bash

Get these from https://console.twilio.com

TWILIO_ACCOUNT_SID=ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
TWILIO_AUTH_TOKEN=your_auth_token_here
TWILIO_PHONE_NUMBER=+1234567890

Webhook configuration

WEBHOOK_PORT=3000
WEBHOOK_BASE_URL=https://your-domain.com

Database path

DATABASE_PATH=./data/twilio.db


## Setting Up Webhooks

For the server to receive inbound SMS, you need to configure Twilio webhooks:

### Development (Using ngrok)

1. Install ngrok: https://ngrok.com/download

2. Start the webhook server:```bash
npm run dev
  1. In another terminal, start ngrok:```bash
    ngrok http 3000

4. Copy the HTTPS URL from ngrok (e.g., `https://abc123.ngrok.io`)

5. Configure Twilio webhook:
   - Go to https://console.twilio.com/us1/develop/phone-numbers/manage/incoming
   - Select your phone number
   - Under &quot;Messaging Configuration&quot;:
     - Webhook URL: `https://abc123.ngrok.io/webhooks/twilio/sms`
     - HTTP Method: POST
   - Under &quot;Status Callback URL&quot;:
     - URL: `https://abc123.ngrok.io/webhooks/twilio/status`
   - Save

### Production

Deploy the webhook server to a production environment with HTTPS and configure the Twilio webhook URLs accordingly.

## Usage with Claude Code

Add this server to your Claude Code MCP configuration:```json
{
  &quot;mcpServers&quot;: {
    &quot;twilio&quot;: {
      &quot;command&quot;: &quot;node&quot;,
      &quot;args&quot;: [&quot;/path/to/twilio-mcp/dist/index.js&quot;],
      &quot;env&quot;: {
        &quot;TWILIO_ACCOUNT_SID&quot;: &quot;ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,
        &quot;TWILIO_AUTH_TOKEN&quot;: &quot;your_auth_token&quot;,
        &quot;TWILIO_PHONE_NUMBER&quot;: &quot;+1234567890&quot;,
        &quot;WEBHOOK_PORT&quot;: &quot;3000&quot;,
        &quot;WEBHOOK_BASE_URL&quot;: &quot;https://your-webhook-url.com&quot;,
        &quot;DATABASE_PATH&quot;: &quot;./data/twilio.db&quot;
      }
    }
  }
}

MCP Tools

send_sms

Send an SMS message via Twilio.

Parameters:
- to (required): Recipient phone number in E.164 format (+1234567890)
- message (required): SMS content (1-1600 characters)
- from (optional): Sender phone number (uses default if not provided)
- conversationId (optional): UUID of existing conversation

Example:```typescript
{
"to": "+1234567890",
"message": "Hello from Twilio MCP!"
}


**Response:**```json
{
  &quot;messageSid&quot;: &quot;SMxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;,
  &quot;status&quot;: &quot;queued&quot;,
  &quot;to&quot;: &quot;+1234567890&quot;,
  &quot;from&quot;: &quot;+1987654321&quot;,
  &quot;conversationId&quot;: &quot;550e8400-e29b-41d4-a716-446655440000&quot;,
  &quot;timestamp&quot;: &quot;2025-01-15T10:30:00.000Z&quot;
}

get_inbound_messages

Query received SMS/MMS messages from storage.

Parameters:
- from (optional): Filter by sender phone number
- to (optional): Filter by recipient phone number
- conversationId (optional): Filter by conversation UUID
- since (optional): ISO 8601 timestamp to filter messages after this date
- limit (optional): Maximum messages to return (default: 50)

Example:```typescript
{
"from": "+1234567890",
"limit": 10
}


### create_conversation

Initialize a new conversation thread.

**Parameters:**
- `participants` (required): Array of phone numbers in E.164 format (min 2)
- `metadata` (optional): Custom metadata object

**Example:**```typescript
{
  &quot;participants&quot;: [&quot;+1234567890&quot;, &quot;+1987654321&quot;],
  &quot;metadata&quot;: {
    &quot;campaign&quot;: &quot;support&quot;,
    &quot;priority&quot;: &quot;high&quot;
  }
}

get_conversation_thread

Retrieve full conversation history with all messages.

Parameters:
- conversationId (required): UUID of the conversation
- includeContext (optional): Include AI context summary (default: false)

Example:```typescript
{
"conversationId": "550e8400-e29b-41d4-a716-446655440000",
"includeContext": true
}


### get_message_status

Check the delivery status of a sent message.

**Parameters:**
- `messageSid` (required): Twilio message SID

**Example:**```typescript
{
  &quot;messageSid&quot;: &quot;SMxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&quot;
}

Response:```json
{
"messageSid": "SMxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"status": "delivered",
"timestamp": "2025-01-15T10:31:00.000Z",
"to": "+1234567890",
"from": "+1987654321"
}


## Conversation Threading

The server automatically creates and manages conversation threads:

1. **Outbound Messages**: When sending an SMS:
   - If `conversationId` is provided, the message is linked to that conversation
   - If not provided, the server finds an existing conversation by participant pair
   - If no conversation exists and `AUTO_CREATE_CONVERSATIONS=true`, a new one is created

2. **Inbound Messages**: When receiving an SMS via webhook:
   - The server matches by participant pair (from/to numbers)
   - If no conversation exists and `AUTO_CREATE_CONVERSATIONS=true`, a new one is created
   - Messages are automatically stored and linked to the conversation

3. **Participant Matching**: Conversations are identified by normalized participant pairs:
   - `[+1234567890, +1987654321]` matches the same conversation regardless of direction

## Architecture```
twilio-mcp/
├── src/
│   ├── index.ts                 # MCP server entry point
│   ├── server.ts                # MCP server with tool registry
│   ├── webhook-server.ts        # Express server for webhooks
│   ├── config/
│   │   └── env.ts               # Environment configuration
│   ├── services/
│   │   └── twilio-client.ts     # Twilio SDK wrapper
│   ├── storage/
│   │   ├── conversation-store.ts # Conversation persistence
│   │   └── message-store.ts      # Message persistence
│   ├── tools/
│   │   ├── send-sms.ts
│   │   ├── get-inbound-messages.ts
│   │   ├── create-conversation.ts
│   │   ├── get-conversation-thread.ts
│   │   └── get-message-status.ts
│   └── types/
│       └── models.ts            # TypeScript type definitions
└── data/                        # SQLite database storage

Development```bash

Run in development mode

npm run dev

Build TypeScript

npm run build

Run tests

npm test

Run tests in watch mode

npm run test:watch

Run tests with coverage report

npm run test:coverage

Type check

npm run lint


## Testing

The project includes a comprehensive test suite using Jest with TypeScript support.

### Test Structure```
tests/
├── setup.ts                    # Test environment setup
├── config/
│   └── env.test.ts             # Environment configuration validation tests
├── services/
│   └── twilio-client.test.ts   # Twilio client service tests
├── storage/
│   ├── conversation-store.test.ts  # Conversation persistence tests
│   └── message-store.test.ts       # Message persistence tests
├── tools/
│   ├── send-sms.test.ts            # SMS sending schema validation
│   ├── create-conversation.test.ts # Conversation creation tests
│   ├── get-conversation-thread.test.ts
│   ├── get-inbound-messages.test.ts
│   └── get-message-status.test.ts
└── webhook-server.test.ts      # Webhook endpoint tests

What's Tested

  • Schema Validation: All MCP tool input schemas are tested for valid/invalid inputs
  • Storage Operations: SQLite conversation and message stores (CRUD operations)
  • Webhook Handlers: Inbound SMS and status callback endpoints with signature validation
  • Environment Config: All environment variable validation rules
  • Twilio Client: Client instantiation and method signatures

Running Tests```bash

Run all tests

npm test

Watch mode for development

npm run test:watch

Generate coverage report

npm run test:coverage
```

Test Environment

Tests use an in-memory SQLite database and mock environment variables configured in tests/setup.ts.

Security

  • No Hardcoded Secrets: All credentials are stored in environment variables
  • Webhook Validation: All Twilio webhooks are validated using signature verification
  • Input Validation: All tool inputs are validated using Zod schemas
  • HTTPS Required: Webhook endpoints must use HTTPS in production

Database

The server uses SQLite for storing conversations and messages:

  • Conversations: Thread metadata, participants, timestamps
  • Messages: SMS/MMS content, delivery status, media URLs

Database file location: ./data/twilio.db (configurable via DATABASE_PATH)

Environment Variables

Variable Required Default Description
TWILIO_ACCOUNT_SID Yes - Twilio Account SID (starts with AC)
TWILIO_AUTH_TOKEN Yes - Twilio Auth Token
TWILIO_PHONE_NUMBER Yes - Your Twilio phone number (E.164 format)
WEBHOOK_PORT No 3000 Port for webhook server
WEBHOOK_BASE_URL Yes - Public HTTPS URL for webhooks
DATABASE_PATH No ./data/twilio.db SQLite database file path
LOG_LEVEL No info Logging level (debug, info, warn, error)
AUTO_CREATE_CONVERSATIONS No true Auto-create conversations for new threads
ENABLE_AI_CONTEXT No true Enable AI context generation
ENABLE_MMS No true Enable MMS support

License

MIT

Support

For issues and questions:
- Twilio Documentation: https://www.twilio.com/docs
- MCP Documentation: https://modelcontextprotocol.io

常见问题

8 问
答案由本站依据条目字段整理,不引用上游原文
Twilio MCP Da6d007c 怎么安装?

资料没有给出安装命令,请到官方仓库或文档按说明接入;这类条目多数是生态应用,或尚未发布可安装包。

Twilio MCP Da6d007c 怎么在 Claude 里配置?

它的传输方式未标注,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

Twilio MCP Da6d007c 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Twilio MCP Da6d007c 需要 API Key 吗?

资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Twilio MCP Da6d007c 支持哪些客户端?

资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

Twilio MCP Da6d007c 能提供哪些能力?

资料显示能力标签包括 对话管理、TypeScript、Claude。具体工具清单以官方文档为准。

Twilio MCP Da6d007c 需要什么运行环境?

属于远程端点,不需要在本地装运行时。

Twilio MCP Da6d007c 是本地还是远程?

它是远程端点,连服务地址即可。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 2026-05-17。