这是一个提供访问Intercom对话和聊天的Model Context Protocol (MCP)服务器。此服务器允许LLMs查询并分析您的Intercom对话,并提供了多种过滤选项。
git clone https://github.com/fabian1710/mcp-intercom.git
cd mcp-intercom
npm install
cp .env.example .env
.env文件中:INTERCOM_API_KEY=your_api_key_here
npm run build
启动服务器:
npm start
~/Library/Application Support/Claude/claude_desktop_config.json,Windows上的路径为%AppData%\Claude\claude_desktop_config.json):{
"mcpServers": {
"intercom": {
"command": "node",
"args": ["/path/to/mcp-intercom/dist/index.js"],
"env": {
"INTERCOM_API_KEY": "your_api_key_here"
}
}
}
}
使用可选过滤器搜索Intercom对话。
参数:
createdAt(可选):用于按创建日期筛选的对象,包含operator(例如">"、"<"、"=")和value(UNIX时间戳)。updatedAt(可选):用于按更新日期筛选的对象,包含operator(例如">"、"<"、"=")和value(UNIX时间戳)。sourceType(可选):对话的来源类型(例如"email"、"chat")。state(可选):用于按对话状态筛选(例如"open"、"closed")。open(可选):布尔值,用于按开启状态筛选。read(可选):布尔值,用于按已读状态筛选。示例查询:
npm run dev
npm run lint
MIT