This MCP-compliant server allows you to retrieve and analyze Intercom customer support tickets from within AI assistants like Claude Desktop and Cline. It provides access to both open and closed tickets with full conversation history, and includes filtering capabilities by date and keywords.
Install the package globally:
npm install -g mcp-server-for-intercom
Set your Intercom API token:
# For Linux/Mac
export INTERCOM_ACCESS_TOKEN="your_token_here"
# For Windows Command Prompt
set INTERCOM_ACCESS_TOKEN=your_token_here
# For PowerShell
$env:INTERCOM_ACCESS_TOKEN = "your_token_here"
Start the server:
intercom-mcp
Add the following to your claude_desktop_config.json
file:
{
"mcpServers": {
"intercom-mcp": {
"command": "intercom-mcp",
"args": [],
"env": {
"INTERCOM_ACCESS_TOKEN": "your_intercom_api_token"
}
}
}
}
Replace "your_intercom_api_token" with your actual Intercom API token.
The MCP Inspector helps with debugging and testing your MCP server implementation.
Install the inspector:
npm install -g @modelcontextprotocol/inspector
Run the inspector with your server:
npx @modelcontextprotocol/inspector node build/index.js
This will:
Retrieves support tickets with conversation history within a specified date range.
Parameters:
Usage Notes:
Example Request:
{
"startDate": "15/01/2025",
"endDate": "21/01/2025",
"keyword": "billing"
}
Example Response:
{
"result": [
{
"ticket_id": "12345",
"subject": "Billing Issue",
"status": "resolved",
"created_at": "2024-03-06T10:15:00Z",
"conversation": [
{
"from": "customer",
"text": "Hey, I was double charged!",
"timestamp": "2024-03-06T10:15:00Z"
},
{
"from": "support_agent",
"text": "We've refunded the duplicate charge.",
"timestamp": "2024-03-06T10:45:00Z"
}
]
}
]
}
If you prefer to run a development version:
Clone the repository:
git clone https://github.com/raoulbia-ai/mcp-server-for-intercom.git
cd mcp-server-for-intercom
Install dependencies:
npm install
Build the project:
npm run build
Configure Claude Desktop:
{
"mcpServers": {
"intercom-mcp-local": {
"command": "npm",
"args": ["run", "dev"],
"env": {
"INTERCOM_ACCESS_TOKEN": "your_intercom_api_token",
"NODE_ENV": "development"
},
"cwd": "/path/to/your/mcp-server-for-intercom"
}
}
}
Replace "your_intercom_api_token" with your actual token and "/path/to/your/mcp-server-for-intercom" with the correct path.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "intercom-mcp" '{"command":"intercom-mcp","args":[],"env":{"INTERCOM_ACCESS_TOKEN":"your_intercom_api_token"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"intercom-mcp": {
"command": "intercom-mcp",
"args": [],
"env": {
"INTERCOM_ACCESS_TOKEN": "your_intercom_api_token"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"intercom-mcp": {
"command": "intercom-mcp",
"args": [],
"env": {
"INTERCOM_ACCESS_TOKEN": "your_intercom_api_token"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect