An MCP-compliant server for retrieving customer support tickets from Intercom. This tool enables AI assistants like Claude Desktop and Cline to access and analyze your Intercom support tickets.
This project is an independent integration and is not affiliated with, officially connected to, or endorsed by Intercom Inc. "Intercom" is a registered trademark of Intercom Inc.
This project is designed to comply with Intercom's developer terms of service by:
Users of this integration should review Intercom's Developer Terms to ensure their implementation complies with all requirements.
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"
Run the server:
intercom-mcp
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
Set your Intercom API token as an environment variable (see above)
Run the server in development mode:
npm run dev
Run tests with:
npm test
Run tests in watch mode:
npm run test:watch
The MCP Inspector is a useful tool for debugging and testing your MCP server implementation. It provides a web interface to interact with your server and visualize the requests and responses.
The MCP Inspector is available as an npm package:
npm install -g @modelcontextprotocol/inspector
To inspect your MCP server, use the following command:
npx @modelcontextprotocol/inspector node build/index.js
This will:
node
as shown aboveINTERCOM_ACCESS_TOKEN
) are set properlyThe inspector is particularly helpful when:
list_tickets
Retrieves all support tickets with their conversation history within a specific date range.
Request Parameters:
startDate
(DD/MM/YYYY format) – The start date for ticket retrieval (required)endDate
(DD/MM/YYYY format) – The end date for ticket retrieval (required)keyword
(string) – Optional filter to only include tickets containing this textexclude
(string) – Optional filter to exclude tickets containing this textImportant Notes:
Example Request:
{
"startDate": "15/01/2025",
"endDate": "21/01/2025",
"keyword": "billing"
}
Response Format:
{
"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"
}
]
}
]
}
To integrate the MCP Server for Intercom with Claude Desktop:
Get API Tokens: Ensure you have an Intercom API token. You can obtain this from your Intercom account settings.
Configure Claude Desktop:
Add the following configuration 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.
If you've cloned the repository and want to run a local version of the MCP Server for Intercom:
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:
Add the following configuration to your claude_desktop_config.json
file:
{
"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 Intercom API token and "/path/to/your/mcp-server-for-intercom"
with the path to your cloned repository.
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)For questions, feature requests, or bug reports, please open an issue in the Issues section of this repository. You can also reach out to me directly via my GitHub profile.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details. The Apache License 2.0 provides additional protections including patent grants, trademark protection, and modification notices, making it ideal for open-source projects that require more comprehensive legal safeguards.
Seamless access to top MCP servers powering the future of AI integration.