MCP Intercom Server
用于集成对讲聊天的MCP服务器。
概述
MCP 互传服务器允许大型语言模型(LLMs)通过模型上下文协议(MCP)查询和分析您的互传对话,支持多种过滤选项。
安装设置
# 1. 克隆仓库
git clone https://github.com/fabian1710/mcp-intercom.git
cd mcp-intercom
# 2. 安装依赖
npm install
# 3. 配置环境
cp .env.example .env
# 在.env文件中添加: INTERCOM_API_KEY=your_api_key_here
# 4. 构建服务器
npm run build
# 5. 启动服务器
npm start
与 Claude for Desktop 集成
编辑 Claude 配置文件 (~/Library/Application Support/Claude/claude_desktop_config.json
在 macOS 或 %AppData%Claude\claude_desktop_config.json
在 Windows):
{
"mcpServers": {
"intercom": {
"command": "node",
"args": ["/path/to/mcp-intercom/dist/index.js"],
"env": {
"INTERCOM_API_KEY": "your_api_key_here"
}
}
}
}
重启 Claude for Desktop 应用。
使用方法
可用工具: get-conversations
检索互传对话,支持以下过滤参数:
startDate
: 开始日期 (ISO 格式)endDate
: 结束日期 (ISO 格式)customer
: 客户 IDstate
: 对话状态 (例如: "open", "closed")
示例查询
- "显示上周所有开放的互传对话"
- "获取客户 ABC123 的互传对话"
- "列出2024年1月所有关闭的互传对话"
开发相关
# 开发模式(自动重新编译)
npm run dev
# 代码检查
npm run lint
详细文档请参考 GitHub 仓库