# Model Context Protocol (MCP)

Learn how to use the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) to enable AI agents to securely access and interact with your Intercom data whenever helpful.

**Region availability**

The Intercom MCP server is available for US and EU hosted workspaces. AU hosted workspaces are not yet supported. Connect using the endpoint that matches your workspace's hosted region — see the connection URLs below.

## What is Model Context Protocol?

MCP is a protocol that enables AI tools and applications to connect with Intercom's data and services in a secure, standardized way. It provides a structured method for AI models to:

- Find and retrieve Intercom data (conversations, contacts, etc.)
- Access specific tools and functionality provided by Intercom
- Maintain context about your Intercom workspace when working with AI assistants

## How MCP Works

Intercom hosts a remote MCP server that follows the authenticated remote MCP specification ([docs](https://modelcontextprotocol.io/specification/2025-03-26/basic/authorization)). This server handles requests from AI tools and provides access to Intercom data through a secure interface.

**Connection URLs:**

Use the endpoint for your workspace's hosted region. You can tell your region from your workspace URL: `app.intercom.com` is US hosted and `app.eu.intercom.com` is EU hosted.

| Region | Streamable HTTP (Recommended) | Legacy SSE (deprecated) |
| --- | --- | --- |
| US | `https://mcp.intercom.com/mcp` | `https://mcp.intercom.com/sse` |
| EU | `https://mcp.eu.intercom.com/mcp` | `https://mcp.eu.intercom.com/sse` |

Requests to the EU endpoint are processed within the EU, in line with Intercom's [Regional Data Hosting](https://www.intercom.com/help/en/articles/6124430-regional-data-hosting) commitments.

When an AI tool or application needs to access Intercom data:

1. The tool connects to Intercom's MCP server
2. Authentication verifies the user's permissions
3. The tool can then access relevant Intercom data and functionality
4. The connection remains live to receive updates as needed

## Benefits of Using MCP

- **Secure Access**: All data access is authenticated and authorized
- **Standardized Interface**: Consistent interaction pattern across different AI tools
- **Contextual Understanding**: AI assistants maintain awareness of your Intercom environment
- **Increased Development Efficiency**: Retrieve and interpret customer data from Intercom via your internal AI tools to be more efficient in your work

## Available Tools

The Intercom MCP Server provides **16 tools** for interacting with the Intercom API. OAuth connections can also get the [Fin Operator tools](#fin-operator-tools).

### Universal Tools

---

#### **search**

Universal search tool for finding conversations and contacts using a query DSL approach.

**Key Features:**

- **Must specify** `object_type:conversations` or `object_type:contacts` to indicate which API to call
- Supports complex field-based queries with operators (eq, neq, gt, lt, contains, etc.)
- Returns summary results with IDs prefixed by type (`conversation_*` or `contact_*`)
- Built-in pagination support with `starting_after` parameter
- Free-text search capability with `q:` parameter

**Example Queries:**

```
object_type:conversations state:open source_type:email
object_type:contacts email_domain:"example.com"
object_type:conversations source_body:contains:"refund" limit:20
object_type:conversations team_assignee_id:15
object_type:conversations admin_assignee_id:6
```

**Pagination:**

- Results are paginated with up to 150 items per page (default 5, set with `limit:` parameter)
- When more results exist, the response includes a `_note` with the cursor to use
- To fetch the next page, add `starting_after:cursor_value` to your query
- Example: `object_type:conversations state:open starting_after:cursor_abc123`

**Response includes:**

- `total_in_page`: Count of results in current page
- `results`: Array of result objects with IDs prefixed by type
- `pages`: Pagination metadata (when available)
- `_note`: Helpful hint when more pages exist (e.g., "More results available. To get the next page, add to your query: starting_after:cursor_abc123")

---

#### **fetch**

Retrieve complete detailed information for specific resources.

**Key Features:**

- Use IDs returned from search results (prefixed with `conversation_`, `contact_`, or `company_`)
- Returns full resource details including metadata, conversation parts, custom attributes
- Includes direct links to Intercom app for easy navigation

### Direct API Tools

---

#### **search_conversations**

Search conversations by specific IDs with advanced filtering options including source type, author details, state, assignment fields (team_assignee_id, admin_assignee_id), and timing statistics.

**Key Filter Parameters:**

- `ids`: Array of conversation IDs
- `source_type`: Filter by source type (email, chat, etc.)
- `source_author_name`, `source_author_email`: Filter by author details
- `state`: Filter by conversation state (open, closed, snoozed)
- `team_assignee_id`: Filter by team assignee ID (string)
- `admin_assignee_id`: Filter by admin assignee ID (number)
- `statistics_time_to_assignment`, `statistics_time_to_admin_reply`, `statistics_time_to_first_close`: Filter by timing statistics with operators (<, >, =, !=, <=, >=)

**Pagination Support:**

- Results are paginated with up to 150 items per page (default 5)
- If more results exist, the response includes a `pages` object with `pages.next.starting_after` cursor
- To fetch the next page, make another request with the SAME search parameters plus the `starting_after` value from the previous response
- Continue until `pages.next` is not present in the response

**Response includes:**

- `total_in_page`: Count of results in current page
- `conversations`: Array of conversation objects
- `pages`: Pagination metadata (when available)
- `_note`: Helpful hint when more pages exist

---

#### **get_conversation**

Retrieve a single conversation by ID with complete details including all conversation parts and metadata.

**Required Parameters:**

- `id`: A raw numeric ID (e.g., `12345`), the prefixed `conversation_12345` form, or an Intercom Inbox URL. Normalized automatically, and must resolve to a numeric conversation ID. Also works for tickets: pass the ticket's id (the number at the end of its Inbox URL) or the Inbox URL itself. A ticket comes back as a conversation with its ticket details: state, type, title and other ticket attributes. The ticket number shown in the Inbox (such as `#123`) is not an id and doesn't find the ticket

---

#### **search_contacts**

Search contacts by IDs, name, email, phone, custom attributes, or email domain with flexible matching options.

**Pagination Support:**

- Results are paginated with up to 150 items per page (default 5)
- If more results exist, the response includes a `pages` object with `pages.next.starting_after` cursor
- To fetch the next page, make another request with the SAME search parameters plus the `starting_after` value from the previous response
- Continue until `pages.next` is not present in the response

**Response includes:**

- `total_in_page`: Count of results in current page
- `data`: Array of contact objects
- `pages`: Pagination metadata (when available)
- `_note`: Helpful hint when more pages exist

---

#### **get_contact**

Get complete contact information including custom attributes, location data, and activity timestamps.

---

#### **list_companies**

List companies with optional filters.

**Key Filter Parameters:**

- `name`: Find a company by exact name match (returns single company)
- `company_id`: Find a company by external company_id (returns single company)
- `tag_id`: Filter companies by tag ID
- `segment_id`: Filter companies by segment ID
- `per_page`: Results per page (default 15, max 60)
- `page`: Page number (default 1)

Uses page-based pagination. Response includes `total_count` and `pages` with `total_pages`.

---

#### **get_company**

Retrieve complete details for a specific company including all custom attributes, segments, and tags.

---

#### **list_articles**

List all articles in the Intercom Help Center.

**Key Parameters:**

- `page`: Page number to retrieve (default 1)
- `per_page`: Articles per page (1-150, default 25)

Uses page-based pagination. Response includes `pages` with `total_pages`.

---

#### **search_articles**

Search for articles in the Intercom Help Center. At least one search parameter must be provided.

**Key Parameters:**

- `phrase`: Free-text search across article title and body
- `state`: Filter by `published` or `draft`
- `help_center_id`: Filter by Help Center ID (numeric)
- `highlight`: When true, returns highlighted matching snippets

---

#### **get_article**

Retrieve complete details for a specific article including full HTML body, metadata, and parent collection information.

**Required Parameters:**

- `id`: The article ID to retrieve

**Optional Parameters:**

- `locale`: Locale code of the translation to return, for example `fr` or `pt-BR`. Omit it for the article's default-locale content. The response lists the article's `available_locales`, and an unknown locale is rejected with that list

---

#### **create_article**

Create a new article in the Intercom Help Center.

**Required Parameters:**

- `title`: The article title

**Optional Parameters:**

- `description`: A short summary
- `body`: Article content in HTML format
- `state`: `published` or `draft` (defaults to draft)
- `parent_id`: Numeric ID of the collection or section to place the article in
- `parent_type`: `collection` or `section`. Ignored by the Intercom API, which places the article by `parent_id` alone
- `ai_chatbot_availability`: Whether Fin AI Agent can use the article. Omit it to keep Intercom's default
- `ai_copilot_availability`: Whether Copilot can use the article. Omit it to keep Intercom's default
- `ai_sales_agent_availability`: Whether the AI Sales Agent can use the article. Omit it to keep Intercom's default
- `audience_ids`: IDs of the Fin audiences to target the article to, as integers or digit-only strings. Get them from `list_audiences`. An unknown ID is rejected with a 404 and nothing is saved. This sets Fin AI Agent targeting only and doesn't change who can see the article in the Help Center

The content is written in the article's default locale. To add translations, create the article first, then call `update_article` with its ID and `locale` once per translation.

The article is attributed to the teammate the connection acts as: the admin who authorized an OAuth connection, or the teammate a Bearer token belongs to. The author can't be set per call.

---

#### **update_article**

Update an existing article. At least one field to update must be provided.

**Required Parameters:**

- `id`: The article ID to update

**Optional Parameters:**

- `locale`: Locale code of the translation to write, for example `fr` or `pt-BR`. With `locale`, the `title`, `description`, `body`, `state`, the three `ai_*_availability` flags and `audience_ids` apply to that translation only, and at least one of them is required. `parent_id` and `parent_type` still apply to the whole article. Omit it to write the article's default-locale content, which may not be English. Writing to a locale the article doesn't have yet creates that translation and needs a `title`. Without one, Intercom rejects the write with a 400 and nothing is saved. Intercom rejects unsupported locale codes, and `get_article` lists the article's `available_locales`
- `title`: Update the article title
- `description`: Update the short summary
- `body`: Update the article content (HTML format)
- `state`: Change to `published` or `draft`. Omit it to leave the publish state unchanged
- `parent_id`: Move the article to a different collection or section (numeric ID)
- `parent_type`: `collection` or `section`. Ignored by the Intercom API, which places the article by `parent_id` alone
- `ai_chatbot_availability`, `ai_copilot_availability`, `ai_sales_agent_availability`: Whether Fin AI Agent, Copilot and the AI Sales Agent can use the article. Without `locale` each one sets the default language's availability, and with `locale` that translation's. Omit them to leave availability unchanged
- `audience_ids`: IDs of the Fin audiences to target the article to, as integers or digit-only strings. Get them from `list_audiences`. Without `locale` this sets the targeting of every translation, so `[]` clears it everywhere. With `locale` it sets that translation's targeting only. An unknown ID is rejected with a 404 and nothing is saved. This sets Fin AI Agent targeting only and doesn't change who can see the article in the Help Center

Each update also sets the author of the content it writes to the teammate the connection acts as: the default-locale content without `locale`, or that translation with it. The author can't be set per call.

---

#### **list_audiences**

List the workspace's Fin audiences: the groups of contacts that Fin content can be targeted to. Use an audience's `id` in `audience_ids` on `create_article` or `update_article`. These aren't Help Center audiences, and they aren't contact or company segments.

**Key Parameters:**

- `page`: Page number to retrieve (default 1)
- `per_page`: Audiences per page (1-50, default 50)

Uses page-based pagination. Response includes `total_count`, `page`, `per_page` and `total_pages`, plus a hint naming the next page while more pages exist.

Each audience has a string `id`, a `name`, and the `predicates` and `role_predicates` rules that define it. `audience_ids` accepts the string `id` as it is. Names come back HTML-escaped, for example `&` as `&amp;`. There's no name or type filter, so page through the list to find an audience by name.

Requires the **Read audiences** permission. If your OAuth connection was made before the Intercom MCP integration had this permission, calls to this tool return an error asking you to reconnect. Disconnect and reconnect the Intercom MCP server to grant it. A Bearer token's app needs it too; without it, calls return Intercom's own 401 error.

---

#### **add_internal_note**

Add an internal note to a conversation. Notes are visible to teammates only — nothing is sent to the customer, and this tool cannot send customer-visible replies. Adding a note never changes the assignee, but a note on a conversation that is snoozed and assigned to someone other than the teammate the connection acts as will unsnooze (reopen) it.

**Required Parameters:**

- `conversation_id`: A raw numeric ID (e.g., `12345`), the prefixed `conversation_12345` form, or an Intercom Inbox URL. Normalized automatically, and must resolve to a numeric conversation ID. Also works for tickets: pass the ticket's id (the number at the end of its Inbox URL) or the Inbox URL itself. The ticket number shown in the Inbox (such as `#123`) is not an id and doesn't find the ticket. A note on a ticket doesn't change its state or assignee
- `body`: The note content in HTML format (plain text is also accepted). Whitespace between block-level tags becomes empty paragraphs and renders as blank space, so emit tags without newlines or indentation between them

The note is attributed to the teammate the connection acts as: the admin who authorized an OAuth connection, or the teammate a Bearer token belongs to. Authorship cannot be set per call.

**Response includes:**

- The conversation ID and the created note part (`id`, `part_type`, `created_at`, `author`) — not the full conversation. A `part_type` of `note_and_unsnooze` means the note reopened the conversation. Use `get_conversation` to read the updated thread

Requires the **Write conversations** permission in addition to read access. If your OAuth connection was made before the Intercom MCP integration had this permission, calls to this tool return an error asking you to reconnect. Disconnect and reconnect the Intercom MCP server to grant it.

A Bearer token also needs the **Read admins** permission to attribute the note. Without it, or without **Write conversations**, calls to this tool return an error asking you to add the missing permission to the app the token belongs to.

---

#### **submit_mcp_feedback**

Send feedback about the Intercom MCP server to Intercom: a tool that's missing, a result that's wrong or confusing, or a flow that takes more calls than it should. Intercom uses it to improve the MCP server. Nothing is written to your workspace: no ticket or conversation is opened, and nobody replies. Don't use it for support requests, for the Intercom product itself, or for other MCP servers.

**Required Parameters:**

- `summary`: A one-sentence headline for the problem or request, in plain English (15-150 characters). A summary that contains a URL, markup, a UUID, a snake_case name or seven or more digits in a row is rejected
- `category`: `missing_capability`, `bug`, `workflow_friction` or `other`
- `feedback`: The full detail: what was missing, what went wrong, or what was harder than it should be (10-4000 characters)
- `task_context`: The wider task the user was working on (up to 1000 characters)
- `source`: `user` when the user asked to send the feedback or raised the problem, or `agent` when the AI client noticed it

**Optional Parameters:**

- `tool_name`: The tool the feedback is about. Only tools listed on your connection are accepted
- `requested_capability`: The operation that was missing, named as the Intercom REST API operation where possible (up to 200 characters)

The server adds the workspace, the teammate, the region and the connection type to each record. These come from your connection, not from the AI client. Don't include customer personal data, conversation contents or secrets.

**Response includes:**

- A receipt with `status` set to `received`, the submission's `id`, and a `note` saying that no reply will be sent

A Bearer token needs the **Read admins** permission to submit feedback. Without it, the response has `status` set to `rejected` and nothing is stored.

### Fin Operator tools

Operator is Fin's internal AI agent. If your workspace has Fin Operator, the Intercom MCP server also lets your AI client ask Operator to do work inside your workspace, read the answers back, and review and apply the changes Operator proposes.

The Fin Operator tools work only when all of the following are true:

- Your workspace has Fin Operator.
- You connected with OAuth. Bearer token connections do not get the Fin Operator tools.
- You can use Operator in Intercom. The tools are authorized as you, so you need the same permission over MCP that you need in the Intercom app.

If you connected with OAuth but your workspace doesn't have Fin Operator, or you don't have permission to use it, the tools can still be listed. Calls to them don't run Operator. Instead, `send_operator_message` returns a short message from Intercom on how to get access, for example by starting a trial, asking an admin, or buying the add-on, and the other four tools say that Operator isn't available yet. The tools start working once you have access.

**Connected before the Fin Operator tools were added?**

If your OAuth connection was made before the **Use Fin Operator** permission existed, the tools are listed but calls to them return an error asking you to reconnect. Disconnect and reconnect the Intercom MCP server to grant it. Reconnecting also keeps every existing tool working.

There are five Fin Operator tools:

- `send_operator_message`: send Operator a message; collect the answer later
- `get_operator_response`: read the latest response from an Operator chat
- `get_proposal_details`: show what each pending proposal would change. Read-only
- `apply_proposals`: apply proposals to your workspace's live configuration
- `reject_proposals`: discard proposals

Only `send_operator_message` uses Operator credits, in the same way as a turn started in Intercom; the other four tools are free.

For parameters, response statuses, tool annotations, a typical workflow, rate limits and troubleshooting, see the [Fin Operator tools guide](/docs/guides/fin-operator-mcp).

## Setting things up

### Authentication Methods

The MCP server supports **two authentication approaches**:

1. **OAuth Flow (Recommended)**: Browser-based authentication with a consent step, described below
2. **Bearer Token**: Direct API token authentication

#### What to expect during OAuth

When you connect a client with OAuth, your browser shows two screens in order:

1. **The Intercom MCP consent page.** This names the application asking to connect, lists what it will be able to do in your workspace, and shows its Client ID and the address it redirects to after you approve. Choose **Allow** to continue or **Cancel** to stop. Cancel grants nothing.
2. **Intercom's authorization screen.** This asks you to authorize access for Intercom MCP, the server, rather than for the application. After you authorize, you are returned to the application.

Intercom's authorization screen can only name the Intercom MCP server, so the consent page is where you see and confirm which application receives access. The application name is supplied by the application itself and is not verified by Intercom.

**Check the redirect address**

Before you choose **Allow**, check that the **Redirects to** address belongs to the application you expect. If you did not start the connection yourself, or you do not recognize the application or the redirect address, choose **Cancel**.

### Configuration Examples

**Configuration Guide**

The examples below are generic templates. **Always refer to your specific LLM provider's official documentation** for the most up-to-date configuration instructions, as setup details may vary between versions and providers.

These examples use the US endpoint. If your workspace is EU hosted, replace `https://mcp.intercom.com/mcp` with `https://mcp.eu.intercom.com/mcp`. See the connection URLs in [How MCP Works](#how-mcp-works).

For **OAuth authentication** (recommended):

```json
{
  "mcpServers": {
    "intercom": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.intercom.com/mcp"
      ]
    }
  }
}
```

For **Bearer token authentication**:

```json
{
  "mcpServers": {
    "intercom": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.intercom.com/mcp",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer YOUR_INTERCOM_API_TOKEN"
      }
    }
  }
}
```

### LLM Provider Setup Guides

Each AI provider has specific setup instructions for MCP servers. Please consult the official documentation for your provider:

- **Claude Desktop**: [MCP setup documentation](https://modelcontextprotocol.io/quickstart/user)
- **Claude Code**: [MCP setup documentation](https://docs.anthropic.com/en/docs/claude-code/mcp)
- **OpenAI**: [MCP integration guide](https://platform.openai.com/docs/guides/tools-remote-mcp)
- **Claude.ai**: The Intercom connector in Claude's directory connects to US hosted workspaces. For an EU hosted workspace, go to Customize > Connectors > + Add > Add custom connector and use `https://mcp.eu.intercom.com/mcp`. On Claude Team or Enterprise, an org Owner adds it under Organization settings > Connectors.
- **Cursor**: [MCP configuration guide](https://docs.cursor.com/context/model-context-protocol)
- **Windsurf**: [MCP setup instructions](https://docs.windsurf.com/windsurf/cascade/mcp)
- **VS Code**: [MCP integration docs](https://code.visualstudio.com/docs/copilot/chat/mcp-servers)

### Connecting your own MCP client

The providers listed above are already on the allowlist. If you're building your own MCP client, OAuth client registration is automatic — the server supports [Dynamic Client Registration](https://modelcontextprotocol.io/specification/2025-03-26/basic/authorization) — but every redirect URI a client registers is checked against an allowlist, which controls where the server will send authorization responses.

What this means for your client:

- **Bearer token authentication** doesn't use a redirect URI, so there's nothing to request.
- **OAuth with a callback on `localhost` or `127.0.0.1`** is already allowed on any port, so you can develop and test locally right away.
- **OAuth with any other callback** needs an allowlist entry before the flow will complete.

Until we've added your redirect URI, registration and authorization fail with one of these errors:

```
Redirect URI https://your-app.example.com/callback is not in the allowlist, reach out to Intercom Customer Support if you believe we should support it
```

```
Invalid request: Redirect URI is not allowed
```

**App Store review is a separate approval**

Submitting your app for review in the Developer Hub doesn't add its redirect URI to the MCP server allowlist, even though you register the URI there. If your app connects to the MCP server with OAuth, request an allowlist entry as well.

#### Requesting an allowlist entry

Contact Intercom Customer Support through the Messenger in the bottom right of this page, and include:

- The name of your client and what it does with Intercom data
- Each redirect URI in full, exactly as your client sends it
- The environment each URI serves: development, staging, or production
- Your workspace ID
- Whether you need a wildcard entry like `https://*.example.com`, and what it needs to cover

We add the narrowest entry that covers your callbacks. For a host you own, that's usually the origin — an entry for `https://app.example.com` covers every path on that host. If your callback runs on a platform shared with other companies, we add the exact path instead, so list every path you use. Wildcards are granted only for domains where you control every subdomain.

One entry covers both `mcp.intercom.com` and `mcp.eu.intercom.com`, so a single request is enough for both regions.

## Working with Pagination

All search and list tools support pagination to handle large result sets efficiently.

**Cursor-based pagination** is used by `search`, `search_conversations`, and `search_contacts` — use the `starting_after` parameter.

**Page-based pagination** is used by `list_articles`, `list_companies` and `list_audiences` — use the `page` parameter.

### Example Pagination Workflow

**1. Initial Search Request**

Using the `search` tool:

```
object_type:conversations state:open limit:50
```

**2. Response with More Results**

If more results exist, you'll receive:

```json
{
  "total_in_page": 50,
  "results": [...],
  "pages": {
    "type": "pages",
    "page": 1,
    "per_page": 50,
    "total_pages": 5,
    "next": {
      "page": 2,
      "starting_after": "cursor_abc123"
    }
  },
  "_note": "More results available. To get the next page, add to your query: starting_after:cursor_abc123"
}
```

**3. Fetch Next Page**

Use the cursor from the response:

```
object_type:conversations state:open limit:50 starting_after:cursor_abc123
```

**4. Continue Until Complete**

Keep paginating until the response no longer includes `pages.next` or `_note`, indicating you've reached the last page.

### Tool-Specific Pagination

For **`search_conversations`** and **`search_contacts`**, use the `starting_after` parameter:

```json
{
  "state": "open",
  "per_page": 50,
  "starting_after": "cursor_abc123"
}
```

The response will include the same pagination metadata to guide you through the result set.

## Required Scopes

The Intercom MCP server requires the following permissions to access your workspace data. When using Bearer token authentication, ensure your access token includes these scopes. [Learn more about OAuth permissions](https://developers.intercom.com/docs/build-an-integration/learn-more/authentication/setting-up-oauth#permissions).

- **Read and list users and companies**: Required for contact and company data access
- **Read conversations**: Required for conversation data access
- **Write conversations**: Required for adding internal notes to conversations (add_internal_note)
- **Read and write articles**: Required for Help Center article access (list, search, get, create, update)
- **Read audiences**: Required for listing Fin audiences (list_audiences). An OAuth connection authorized before the Intercom MCP integration had this permission must be disconnected and reconnected to get it
- **Read admins**: Required for Bearer tokens on the tools that act as you: adding internal notes, creating and updating articles, and submitting feedback (add_internal_note, create_article, update_article, submit_mcp_feedback). OAuth connections need nothing extra for it
- **Use Fin Operator**: Required for the [Fin Operator tools](#fin-operator-tools). Granted through OAuth only; it cannot be added to a Bearer token.

During OAuth, the consent page summarizes these permissions as: view conversations and add internal notes to them, view contacts and companies, view, create and update articles, view Fin audiences, and use Fin Operator. The **Use Fin Operator** permission is requested for every connection, but the tools only work for workspaces that have Fin Operator.

## MCP Inspector for Server Exploration

Test the connection using:

```bash
npx @modelcontextprotocol/inspector
```

Then connect to:

- **Transport Type**: Streamable HTTP
- **URL**: `https://mcp.intercom.com/mcp` (US) or `https://mcp.eu.intercom.com/mcp` (EU), or `/sse` for legacy

## Debugging and Troubleshooting MCP-Remote

1. **Authentication Problems**

  ```bash
  # Kill existing connections
  pkill -f mcp-remote

  # Clear MCP auth cache
  rm -rf ~/.mcp-auth
  ```
2. **Connection Testing**

  ```bash
  # EU hosted workspaces: use https://mcp.eu.intercom.com/mcp instead
  # Test direct connection
  npx mcp-remote https://mcp.intercom.com/mcp

  # With bearer token
  npx mcp-remote https://mcp.intercom.com/mcp --header "Authorization:Bearer YOUR_TOKEN"
  ```
3. **View Active MCP Connections**

  ```bash
  ps aux | grep mcp-remote | grep -v grep
  ```

### Error Handling

- **Invalid queries**: The search tool validates field names and operators, returning specific error messages
- **Authentication failures**: Check token validity or restart OAuth flow
- **Rate limiting**: Intercom API limits apply - reduce request frequency if needed

### Troubleshooting Tips

- Restart AI Agent after configuration changes
- Use the MCP Inspector to verify tool availability
- Check browser console for OAuth-related errors
- Verify Intercom API token permissions for bearer auth
- The consent page expires after 15 minutes. If **Allow** shows "Authorization could not be completed", start the connection again from your client
- Only one connection can be pending per browser. Starting a second connection in another tab before finishing the first makes the first tab's **Allow** fail with the same message. Start the connection again
- An "Invalid redirect URI" error that says the URI does not match any registered URI for this client, shown before the consent page, means the client opened its callback on a port it did not register. Clear the client's saved authentication for the Intercom server (see Authentication Problems above) and connect again, so the client registers its current callback address
- The consent page only appears in the OAuth flow. Bearer token authentication is unchanged
- If you choose **Allow** and Intercom then shows "We're having technical difficulties", you most likely connected using another region's endpoint, for example the US endpoint for an EU hosted workspace. Remove the connection from your client and connect again using the endpoint for your workspace's region (see [How MCP Works](#how-mcp-works)). The MCP server isn't available for AU hosted workspaces.
