FM

fabian1710/mcp-intercom

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

8 stars 7 forks 质量 54 趋势 7

Intercom 聊天集成的 MCP 服务器

概览

一个模式背景协议(MCP)服务器,提供访问Intercom聊天和聊天的机会. 此服务器允许 LLMs 以各种过滤选项查询和分析您的Intercom 对话 。 - 有过滤选项的查询 Intercom 对话: - 日期范围(开始和结束日期) - 客户ID - 对话状态 - 使用您的Intercom API 键安全访问 - 丰富的对话数据包括: - 基本对话细节 - 联系信息 - 统计(答复,重开) - 状态和优先信息 1. 将服务器添加到您的 Claude 桌面配置中(~/Library/应用程序支持/Claude desktop config.json on macOS 或%AppData\\Claude desktop config.json on Windows) : 使用可选过滤器搜索Intercom对话. 参数: - CreateAt(可选):带有运算符的对象(如">",""","<","=")和值(UNIX乘以戳),用于通过更新日期过滤. - sourceType (可选):对话的源类型(如"电子邮件","聊天"等).

概述(AI 翻译)

一个模式背景协议(MCP)服务器,提供访问Intercom聊天和聊天的机会. 此服务器允许 LLMs 以各种过滤选项查询和分析您的Intercom 对话 。

□ 特性

  • 有过滤选项的查询对讲:
  • 日期范围(开始和结束日期)
  • 客户身份
  • 对话状态
  • 使用您的Intercom API 密钥安全访问
  • 丰富的对话数据,包括:
  • 基本谈话细节
  • 联系信息
  • 统计(答复,重新开放)
  • 国家和优先信息

□ 安装

  1. 清除储存库:

  2. 安装依赖性:

  3. 建立环境:

  4. 将您的Intercom API 密钥添加到 [[T0] :

  5. 构建服务器:

□ 使用量

QQ 运行服务器

启动服务器 :

与 Claude 一起使用桌面

  1. 在 MacOS 或 Windows [[T2] 上将服务器添加到您的 Claude 桌面配置 :

  2. 重新启动 Claude 桌面

可用的工具

搜索-对话

使用可选过滤器搜索Intercom对话.

参数:

  • createdAt(可选):带有operator的物体(例如.

本页由 AI 翻译,技术细节请以原文为准。

README

MCP Intercom Server

A Model Context Protocol (MCP) server that provides access to Intercom conversations and chats. This server allows LLMs to query and analyze your Intercom conversations with various filtering options.

Features

  • Query Intercom conversations with filtering options:
    • Date range (start and end dates)
    • Customer ID
    • Conversation state
  • Secure access using your Intercom API key
  • Rich conversation data including:
    • Basic conversation details
    • Contact information
    • Statistics (responses, reopens)
    • State and priority information

Installation

  1. Clone the repository:
git clone https://github.com/fabian1710/mcp-intercom.git
cd mcp-intercom
  1. Install dependencies:
npm install
  1. Set up your environment:
cp .env.example .env
  1. Add your Intercom API key to .env:
INTERCOM_API_KEY=your_api_key_here
  1. Build the server:
npm run build

Usage

Running the Server

Start the server:

npm start

Using with Claude for Desktop

  1. Add the server to your Claude for Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %AppData%\Claude\claude_desktop_config.json on Windows):
{
  "mcpServers": {
    "intercom": {
      "command": "node",
      "args": ["/path/to/mcp-intercom/dist/index.js"],
      "env": {
        "INTERCOM_API_KEY": "your_api_key_here"
      }
    }
  }
}
  1. Restart Claude for Desktop

Available Tools

search-conversations

Searches Intercom conversations with optional filters.

Parameters:

  • createdAt (optional): Object with operator (e.g., “>”, “<”, “=”) and value (UNIX timestamp) for filtering by creation date.
  • updatedAt (optional): Object with operator (e.g., “>”, “<”, “=”) and value (UNIX timestamp) for filtering by update date.
  • sourceType (optional): Source type of the conversation (e.g., “email”, “chat”).
  • state (optional): Conversation state to filter by (e.g., “open”, “closed”).
  • open (optional): Boolean to filter by open status.
  • read (optional): Boolean to filter by read status.

Example queries:

  • “Search for all conversations created after January 1, 2024”
  • “Find conversations updated before last week”
  • “List all open email conversations”
  • “Get all unread conversations”

Security

  • The server requires an Intercom API key to function
  • API key should be stored securely in environment variables
  • The server only provides read access to conversations
  • All API requests are made with proper authentication

Development

  1. Start development mode with auto-recompilation:
npm run dev
  1. Run linting:
npm run lint

Contributing

  1. Fork the repository
  2. Create a new branch for your feature
  3. Make your changes
  4. Submit a pull request

License

MIT

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "intercom": { "command": "node", "args": ["/path/to/mcp-intercom/dist/index.js"], "env": { "INTERCOM_API_KEY": "your_api_key_here" } } } }